In need of some help understanding load-modules.sh and the boot proces
umm i was bored a little whiel ago, then i rememberd recent posts about how slow arch boots,,
and also relating the an article in the wiki, about disabling load-modules.sh in variosu ways.
then i got thinking, why remove functionality for just 10 seconds? why not make it faster;;
i know, let's write it in C and see what we can get out of it.
anyway, a couple questions.
i looked in /lib/udev/load-modules.sh; where i encounter these lines;;
depmods="$(/sbin/modprobe -i --show-depends $1)"
depmods="$(echo $depmods \
| sed "s#^insmod /lib.*/\(.*\)\.ko.*#\1#g" \
| sed 's|-|_|g')"
i'm sure i must be missing something. but is $depmods really supposed to be return 1 element, i.e $1. ?
and where does /lib/initcpio/udev/load-modules.sh come into play.
@phrakture:
hmm, i wanna boot the system in dash now... *itch*itch* should i scratch it?
@klixon:
the script works perfectly as-is,
there was an update about an hour ago or something.
the line you refer to, was broken. i was just messing around with it
to see ho much faster i could make it.
i scratched it,
it booted ok,
except when it came boot start the gdm daemon at the end of the daemons array.
i couldn't test if it booted any faster as bootchartd had syntax errors, same as the gdm issue
===========================================================================================
update::
if [ -n "$BLACKLIST" ]; then
depmods="$(/sbin/modprobe -i -q --show-depends $1 | sed -e 's|-|_|g')"
if [ -z "$depmods" ]; then
/usr/bin/logger -p info "cannot find module $1"
#echo "MISSING[ $1 ]"
exit 1
fi
for blackmod in $BLACKLIST; do
if [[ $depmods == *"/$blackmod.ko"* ]]; then
/usr/bin/logger -p info "udev load-modules: $blackmod is blacklisted"
#echo "BLACKLISTED[ $blackmod ]"
exit 1
fi
done
fi
it appears that by doing the search the other way round, i.e
check if there is a blacklisted mod as dependency as opposed to a mod is blacklisted
doing so we can eliminate most of the sensitization
and chain the remaining san. to the modprobe,
long story short
the code above appears to be about 1.6 times faster than the current implementation
Last edited by kumico (2008-03-18 10:53:47)
Similar Messages
-
Need some help understanding the way materialized views are applied through
Hi, I need some help understanding the way materialized views are applied through adpatch.
In patch 1, we have a mv with build mode immediate. When applying it PTS hang due to pool performance of mv refresh.
So we provide patch 2, with that mv build mode deferred, hoping it'll go through. But patch 2 hang too on the same mv.
How does this work? Is that because mv already exists in the database with build immediate, patch 2 will force it to refresh first before changing build mode? How to get over this?
Thanks,
WeiHi Hussein,
Thank you for the response.
Application release is 11.5.10.
Patch 1 is MSC11510: 8639586 ASCP ENGINE RUP#38 PATCH FOR 11.5.10 BRANCH
Patch 2 is MSC11510: 9001833 APCC MSC_PHUB_CUSTOMERS_MV WORKER IS STUCK ON "DB FILE SEQUENTIAL READ" 12 HOURS
The MV is APPS.MSC_PHUB_CUSTOMERS_MV
This happens at customer environment but not reproducable in our internal environment, as our testing data is much smaller.
Taking closer look in the logs, I saw actually when applying both patch 1 and patch 2, MV doesn't exist in the database. So seems my previous assumption is wrong. Still, strange that patch 2 contains only one file which is the MV.xdf, it took 7 hours and finally got killed.
-- patch 1 log
Materialized View Name is MSC_PHUB_CUSTOMERS_MV
Materialized View does not exist in the target database
Executing create Statement
Create Statement is
CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
TABLESPACE "APPS_TS_SUMMARY"
BUILD IMMEDIATE
USING INDEX
REFRESH FORCE ON DEMAND
WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS select distinct
from
dual
AD Worker error:
The above program failed. See the error messages listed
above, if any, or see the log and output files for the program.
Time when worker failed: Tue Feb 02 2010 10:01:46
Manager says to quit.
-- patch 2 log
Materialized View Name is MSC_PHUB_CUSTOMERS_MV
Materialized View does not exist in the target database
Executing create Statement
Create Statement is
CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
TABLESPACE "APPS_TS_SUMMARY"
BUILD DEFERRED
USING INDEX
REFRESH COMPLETE ON DEMAND
WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS select distinct
from dual
Start time for statement above is Tue Feb 02 10:05:06 GMT 2010
Exception occured ORA-00028: your session has been killed
ORA-00028: your session has been killed
ORA-06512: at "APPS.AD_MV", line 116
ORA-06512: at "APPS.AD_MV", line 258
ORA-06512: at line 1
java.sql.SQLException: ORA-00028: your session has been killed
ORA-00028: your session has been killed
ORA-06512: at "APPS.AD_MV", line 116
ORA-06512: at "APPS.AD_MV", line 258
ORA-06512: at line 1
Exception occured :No more data to read from socket
AD Run Java Command is complete.
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
AD Java
Version 11.5.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
AD Worker error:
The above program failed. See the error messages listed
above, if any, or see the log and output files for the program.
Time when worker failed: Tue Feb 02 2010 19:51:27
Start time for statement above is Tue Feb 02 12:44:52 GMT 2010
End time for statement above is Tue Feb 02 19:51:29 GMT 2010
Thanks,
Wei -
Need some help with downloading PDF's from the net.
need some help with downloading PDF's from the net. Each time I try to click on a link from a website, if it takes me to a new screen to view a pdf, it just comes up as a blank black screen? any suggestions?
Back up all data.
Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
In need of some help!! my iphone 4s is not letting me take pictures or videos or even use the flashlight, does anyone know what to do??
Hello Albert3232,
It sounds like you cannot use either camera, nor the LED as a camera. I want to recommend a couple of things here.
First, close all the open and running apps on the phone:
iOS: Force an app to close
http://support.apple.com/kb/ht5137
Double-click the Home button.
Swipe left or right until you have located the app you wish to close.
Swipe the app up to close it.
When you have done that restart the phone:
iOS: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
If the issue persists, I would next backup your device to iTunes, and restore it:
iOS: How to back up and restore your content
http://support.apple.com/kb/HT1766
Thank you for using Apple Support Communities.
All the best,
Sterling -
Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...how can I do it?
Place the iPod in Recovery mode and then restore.
-
I have some days ago started updating of Firefox for Mac OS 10.6.8 under Help but it is paused and the upgrading don´t continue when i start again
Hi Ryan,
I managed to find this reference specifically for restoring on Snow Leopard:
If you are using Mac OS X Snow Leopard, start your computer from the installation disc. Then use the "Restore From Time Machine Backup" utility.
Now that was copied from this more comprehensive reference:
Mac Basics: Time Machine backs up your Mac
You may also find this article helpful:
http://pondini.org/TM/14.html
Finally, I cannot see why Time Machine would leave out your playlists and ratings? Think about it. Why would Time Machine specifically copy everything BUT your playlists and ratings? Ryan, what are your options? I would have to ask you this: Are you certain that you properly did the sync? That is another/different forum altogether: Using iPhone /see subsection on Syncing.
Either way...
Best Regards,
mm
EDIT: For whatever reason I tried three times to edit out one of the redundent adjectives... either different or another which preceeds the word forum, but the advanced editor would (apparently NOT allow me to do so). I hope that it doesn't render without any adjective before the word forum. -
The power comes on. Screen turns white. The start up sound plays, the apple symbol come up the loading bar show up but do not show any sign of loading. The loading circle appears and spins. Then the loading bar disappears and the. The screen goes black and power goes off. I've tried unplugging, command alt escape, and command alt p r, no effect. Any other suggestions???
OS X v10.6- Gray progress bar appears under Apple logo during startup
Install or Reinstall Lion/Mountain Lion from Scratch
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Erase the hard drive:
1. Select Disk Utility from the main menu and click on the Continue button.
2. After DU loads select your startup volume (usually Macintosh HD) from the
left side list. Click on the Erase tab in the DU main window.
3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
the Security button and set the Zero Data option to one-pass. Click on
the Erase button and wait until the process has completed.
4. Quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless. -
my macbook black shutdown during a thunder storm , what do i need to? it won't turn on and the charger light is not on green or on at all..have i fried it?please help a.s.a.p...
Most likely.
You can try to boot from the Install DVD for your Mac and run AHT from there if it boots.
If not it sounds like it is time to take it to Apple for repair.
Allan -
What is the best manual to help me learn Mountain Lion and the Mac?
What is the best manual to help me learn Mountain Lion and the Mac?
The internet is your friend. http://www.apple.com/support/macbasics/, http://www.tuaw.com/tag/mountain%20lion%20101/
-
I have been using Lightroom 4.4 successfully for over 2 years. Just tried to import some new photos after a vacation and the application crashes when I click "import" every time. Tried restarting computer. Version says it is up to date.
How do I get formal support for this from Adobe?Thanks for the response. The application was crashing. A Windows message was displayed showing "Lightroom.exe has stopped working", "Windows can check online for a solution the problem.". Etc.
I just launched Lightroom to check the exact message for this reply - and the Import worked. It had failed dozens of times before. -
I'm trying to prepare some new iPads using Apple Configurator and the download of IOS8 failed.
The error in Apple Configurator is "Unable to download iOS 8.0. The firmware image was corrupted. Please retry the operation."
Is there a way to get the Apple Configurator to try to re-download iOS 8?Apple Support had me delete the image file from the following location:
~/Library/Containers/com.apple.configurator/Data/Library/Caches/com.apple.confi gurator/firmware/
The file name was iPad3,4_8.0_12A365_Restore.ipsw
I deleted this file and ran the prepare again and it download the iOS 8 ok and successfully prepared the iPad. -
Need Some help on Function Module
Hello;
Hello i want to put some data in BAPI's Function Module hard codedly..can anybody give some suggestion..
Thanks and Regards,
Omkar..
Moderator message: please search for available information before asking, do not ask basic or generic questions, warning #4 (this is the last one from my side)
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
locked by: Thomas Zloch on Sep 28, 2010 9:53 AMhI!
I mean coding like this in :
IF fieldname = project definition
select value by 'F4IF_FIELD_VALUE_REQUEST'
save it in global variable
IF fieldname = 'DATE'.
select dates with saved project definition and show values with HELP_VALUES_GET_WITH_TABLE
but it no good solution.
Another way - create seach help with import export parameters and assign to tables fields.
Look at example:
REPORT z_popup .
DATA: BEGIN OF fields OCCURS 1.
INCLUDE STRUCTURE sval.
DATA: END OF fields.
CLEAR fields.
MOVE 'T001L' TO fields-tabname.
MOVE 'WERKS' TO fields-fieldname.
APPEND fields.
CLEAR fields.
MOVE 'T001L' TO fields-tabname.
MOVE 'LGORT' TO fields-fieldname.
APPEND fields.
CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP'
EXPORTING
popup_title = 'test'
TABLES
fields = fields.
it works as you need it. -
Need some help understanding AUR please solved
Still learning the command line here sooooo....
I've read and reread everything recommended regarding AUR.
Somewhere I'm overlooking or missing something.
The AUR users guide says to:
Users can access the AUR [community] repo by adding/uncommenting this line in their pacman.conf file:
Include = /etc/pacman.d/community
Well that line doesn't exist so the guide says to:
If /etc/pacman.d/community does not exist then it should be created and contain the following:
[community]
Server = ftp://ftp.archlinux.org/community/os/i686/
Evidently I might have a pacman.d/community, but when I pull it up with nano, it's a totally blank page which leads me to believe it's there but not actually created.
I can't find anything that tells me what I need to do to make sure I've created a pacman.d/community.
Is a blank page right or shouldn't there be some text in there with comments?
I can and have installed a few things with yaourt, but I know that I've been lucky so far with that as I know something isn't right.
I have to use my user password and then my root password in that order or nothing will finish installing so I've stopped using it until I have a better understanding of it.
Man,, all I wanna do is try out doom3-phantasm,,, for now anyway.
Last edited by windtalker (2008-04-04 00:40:26)windtalker wrote:
Floke:
I tried that, pacman won't synch with that addy.
Brebs;
That's how pacman.conf is set for all the repo's listed. [mirrorlist]
I know phantasm is in unsupported, I'm trying to figure out how to get unsupported added to pacman so I can get it.
Theringmaster:
Yaourt is installed and as I've said I've used it, but, as I also said, each time I use it just before it completes the install it asks for my password, which is fine, but I have to first enter my user password which it refuses, then my root password which it accepts.
It flat wil not settle for me simply using my root password like it should.
I've tried several times and this is something that I'm missing also somewhere somehow.
To my way of thinking, it should be like pacman and accept my root password no questions asked.
I'll also add that I've tried installing phantasm with yaourt.
It found all the depends and compiled the complete package.
When it came to the stage to do the actual install, it asked for a pasword.
I've tried my user pasword followed by my root password and was kicked out.
I've tried just my user password and was rejected.
I've tried my root password and was rejected and when re-entered was kicked out.
Unless things have changed with Arch and the guide is out of date, there should be a way to add unsupported to pacman.
I'll try flokes suggestion of changing the permissions in sudo and see what happens.
Thx guys.
edit: How the heck does one save a change in VI?
you do have to have sudo installed and configured (just a three step process see wiki) to use yaourt properly. to save a change in vi press :wq -
Need some help understanding plugin for Outlook
Testing out the 7.3 plugin for Outlook. I am not clear on how the flagging of spam/not spam etc. works. We have local IronPort devices. We are not cloud based. When a user flags a message as spam in the Inbox, the Admin Guide says Cisco updates the anti-spam filters so the user will not receive emails like this in the future. Not clear how this works. I understand the email is getting submitted to Cisco for analysis but how do they update spam filters for just that one user? I can understand if we were using a cloud device but as I said we have local hardware. Need to understand this process and the Admin Guide falls short of explaining it.
Reporting spam/phish from Outlook via the plug-in only does that. It is packaging up the message and sending the message example off to our @access.ironport.com address for submission from that end-user. The plug-in itself is not actually doing any work to update the anti-spam on your appliance. These submissions are a work by themselves that is submitted and then reviewed from the rules writing process. In time, these submissions are scored, updated, and then written into the current IPAS (IronPort Anti-Spam) rules sets that are published back out to the ESA(s) themselves. So - as long as your ESA is set to get updates (by default, each 5 minutes), then you will get the updated rules --- and these rules are for everyone globally.
Hope that helps! If not - let me know.
-Robert -
Hello,
I've problem with module loading. Currently in my application we load all the modules at the start of the application. so any part of the application if needs a modules it will call using the following method currently
var oModule:IModule = mainApp.getModule('name');
oModule.getSomething('param");
so, the main app has the references to all the modules which are loaded at the start of the application.. but now, we are trying to make the module loading dynamic - load on demand.
So, the mainApp has to load the module which is asked by the app and give the reference back to the oModule(above example) after loading the module. In mean time i would like to show loading page(with flash 'loading' displayed). How do i achieve this?
ThanksUsing a dependency injection framework like Parsley and the Cairngorm 3 module library will help you a lot. You will be able to inject into each module the dependencies (object instances) it needs without having the shell app referencing the module (hence the inversion of control).
Here's what I have implemented to show a loading animation for each module (loaderprocessmc is a Flex component created from Flash CS3 that has animation frames ranging from 1 to 100; it has a nested movieclip called animation):
In each module mxml:
<mx:Module
preloader="com.db.views.ProgressDisplay"
ProgressDisplay.mxml
<?xml version="1.0" encoding="utf-8"?>
<preloaders:DownloadProgressBar xmlns:preloaders="mx.preloaders.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:local="*">
<mx:Script>
<![CDATA[
import flash.events.Event;
import flash.events.ProgressEvent;
import mx.events.*;
import mx.preloaders.Preloader;
import mx.preloaders.DownloadProgressBar;
import mx.core.Application;
private var loader:loaderprocessmc;
override public function set preloader( preloader:Sprite ):void
preloader.addEventListener( ProgressEvent.PROGRESS , SWFDownloadProgress );
preloader.addEventListener( Event.COMPLETE , SWFDownloadComplete );
preloader.addEventListener( FlexEvent.INIT_PROGRESS , FlexInitProgress );
preloader.addEventListener( FlexEvent.INIT_COMPLETE , FlexInitComplete );
loader = new loaderprocessmc();
loader.x = stageWidth / 2 - (loader.width / 2);
loader.y = stageHeight / 2 - (loader.height / 2);
addChild(loader);
loader.animation.stop();
private function SWFDownloadProgress( event:ProgressEvent ):void
var percent:uint = (event.bytesLoaded / event.bytesTotal) * 100;
loader.animation.gotoAndStop(percent);
private function SWFDownloadComplete( event:Event ):void {}
private function FlexInitProgress( event:Event ):void {}
private function FlexInitComplete( event:Event ):void
dispatchEvent( new Event( Event.COMPLETE ) );
]]>
</mx:Script>
</preloaders:DownloadProgressBar>
Maybe you are looking for
-
Auto refresh when opening a workbook
Hi When I open a workbook, I would like the query to auto refresh. In that way the planning user will see the latest planning values and not the ones saved in the workbook. Is there any functionality for running the planning function refresh automati
-
By "headers and footers" I mean the url that gets printed at the top/bottom of the page.
-
Selling an Old version of Photoshop
Buried in the EULA are the parameters to sell an older version of Photoshop (or any CS product). Included in these requirements is a little line that says you must have the original proof of purchase, which, if it was bought at a brick and mortar st
-
IIS7, CF 7 and datasources
Hey guys, I've just finished installing our CF 7 environment on Windows Server 2008. It was a bit of a task but nothing major. What I would REALLY like to see is Adobe step up to the plate to provide support for Windows Server 2008 for ColdFusion 7.
-
T-Mobile Brand different from Sony Brand
Ok the the title might be confusing but, I am curious to know if the Phones we get from our carriers such as T-Mobile are different phones from what actully is made by sony. The reason i say this is that the Box my Xperia Z1s came in was some T-Mobil