Ah ha!
A whole bunch has happened since I blogged last....
For the most part, I figured out why nautilus startup time is so slow AND so variable.
Nautilus is basically yields the CPU again and again as it starts up. Even if nautilus is one of the first components launched, other components (ie, the panel, applets and more) will interrupt it, and prevent it from drawing the first icon on the screen. Sometimes nautilus has the CPU for most of the time, and the startup times are very good. However sometimes it will yield the CPU, and it will be seconds before it starts running again.
First Blind Alley
As you can see is some of my last posts, I knew that nautilus was yielding the CPU. However, I thought it was doing this because it was waiting for threads/components that weren't yet running. (In particular the gnome-vfs-daemon).
I initially thought that nautilus also relied on gnome-volume-manager since gnome-volume-manager's execution was often interleaved with nautilus's startup. However, I found one run where this didn't happen, and nautilus started up just fine.. Therefore it can't be a dependency. (I also discovered gnome-volume-manager was being launched by one of the gnome startup scripts)
I modified the trash applet to preload the vfs-daemon before nautilus started up. I modified gnome-session to call this hacked applet, wait 2 seconds, and then finally start nautilus. This guaranteed that gnome-vfs-daemon was started before nautilus started. This worked, sort-of, as nautilus start-up times were much more reproducible (as long as the panel wasn't running). It is an imperfect solution, because that sleep is really unacceptable, but it could tell me if dependencies were the problem.
The interesting thing to note is that nautilus blocked several times from when executing main to the icon-painting. Nautilus did some handshaking with various threads, and this caused things to block.
Nice-i-ness
With this fix in place, I went for broke and turned on the panel. The reproducible startup times that I had, were then completely shot to hell. All of the blocking of the main nautilus process provided opportunities for the panel & applet to run. Once they started, nautilus might not execute again for a couple of seconds.
So, on a whim, I decide to run the gnome-panel with a nice value of 19. This worked pretty well. Most of the nautilus startup times were on the order of 0.5 seconds. However, every so often, the times would jump. This was because other non-panel processes (such as gnome-volume-manager) started running when nautilus blocked.
What is Next?
I'm currently trying to figure out if I can reduce he amount of blocking that nautilus is doing.
First, I have to figure out exactly what it is waiting on.
For the most part, I figured out why nautilus startup time is so slow AND so variable.
Nautilus is basically yields the CPU again and again as it starts up. Even if nautilus is one of the first components launched, other components (ie, the panel, applets and more) will interrupt it, and prevent it from drawing the first icon on the screen. Sometimes nautilus has the CPU for most of the time, and the startup times are very good. However sometimes it will yield the CPU, and it will be seconds before it starts running again.
First Blind Alley
As you can see is some of my last posts, I knew that nautilus was yielding the CPU. However, I thought it was doing this because it was waiting for threads/components that weren't yet running. (In particular the gnome-vfs-daemon).
I initially thought that nautilus also relied on gnome-volume-manager since gnome-volume-manager's execution was often interleaved with nautilus's startup. However, I found one run where this didn't happen, and nautilus started up just fine.. Therefore it can't be a dependency. (I also discovered gnome-volume-manager was being launched by one of the gnome startup scripts)
I modified the trash applet to preload the vfs-daemon before nautilus started up. I modified gnome-session to call this hacked applet, wait 2 seconds, and then finally start nautilus. This guaranteed that gnome-vfs-daemon was started before nautilus started. This worked, sort-of, as nautilus start-up times were much more reproducible (as long as the panel wasn't running). It is an imperfect solution, because that sleep is really unacceptable, but it could tell me if dependencies were the problem.
The interesting thing to note is that nautilus blocked several times from when executing main to the icon-painting. Nautilus did some handshaking with various threads, and this caused things to block.
Nice-i-ness
With this fix in place, I went for broke and turned on the panel. The reproducible startup times that I had, were then completely shot to hell. All of the blocking of the main nautilus process provided opportunities for the panel & applet to run. Once they started, nautilus might not execute again for a couple of seconds.
So, on a whim, I decide to run the gnome-panel with a nice value of 19. This worked pretty well. Most of the nautilus startup times were on the order of 0.5 seconds. However, every so often, the times would jump. This was because other non-panel processes (such as gnome-volume-manager) started running when nautilus blocked.
What is Next?
I'm currently trying to figure out if I can reduce he amount of blocking that nautilus is doing.
First, I have to figure out exactly what it is waiting on.
44 Comments:
Hi,
Good work, you are on the right way !
Thanks for this blog.
By Mariot Chauvin, at 12:08 AM
Ja das ist fantastish!
buy viagra
cheap viagra online
G'night
By Anonymous, at 7:55 AM
Wazzup, nice design.
my home page [url=http://viagra-store.info/]viara[/url].
Buy http://viagra-store.info#viagra best.
G'night.
By Anonymous, at 4:54 PM
Hurra, cool design.
Visit me at [url=http://www.jahk.org/forum/topic.asp?TOPIC_ID=113]viagra[/url].
Buy http://www.jahk.org/forum/topic.asp?TOPIC_ID=113#viagra best.
Bye-bye.
By Anonymous, at 5:56 PM
Hi
Very good sites for credit
[url=http://mortgage-rate-calculator.irt8o.info/]mortgage rate calculator[/url]
[url=http://mortgage-rate.pkj8e.info/]mortgage rate[/url]
[url=http://bad-credit-mortgage.ffe8d.info/]bad credit mortgage[/url]
[url=http://mortgage-application.pkj8e.info/]mortgage application[/url]
[url=http://personal-debt-consolidation-loan.jrg8h.info/]personal debt consolidation loan[/url]
[url=http://second-mortgage.erw8e.info/]second mortgage[/url]
[url=http://instant-cash-loan.arw8m.info/]instant cash loan[/url]
[url=http://bad-credit-loan-mortgage.liu8s.info/]bad credit loan mortgage[/url]
[url=http://texas-home-equity-loan.dre8o.info/]texas home equity loan[/url]
[url=http://sallie-mae-student-loan.dre8o.info/]sallie mae student loan[/url]
[url=http://well-fargo-home-loan.liu8s.info/]well fargo home loan[/url]
[url=http://mortgage-financing.edx8r.info/]mortgage financing[/url]
[url=http://direct-student-loan.erw8e.info/]direct student loan[/url]
[url=http://home-loan-interest-rate.irt8o.info/]home loan interest rate[/url]
[url=http://student-loan-refinancing.puy8p.info/]student loan refinancing[/url]
[url=http://loan-til-payday.jrg8h.info/]loan til payday[/url]
[url=http://interest-only-mortgage.jrg8h.info/]interest only mortgage[/url]
[url=http://student-loan-consolidations.jrg8h.info/]student loan consolidations[/url]
[url=http://refinance-student-loan.irt8o.info/]refinance student loan[/url]
[url=http://education-loan.ffe8d.info/]education loan[/url]
[url=http://loan-till-payday.puy8p.info/]loan till payday[/url]
[url=http://first-mortgage.dre8o.info/]first mortgage[/url]
[url=http://residential-mortgage.puy8p.info/]residential mortgage[/url]
[url=http://current-mortgage-interest-rate.edx8r.info/]current mortgage interest rate[/url]
[url=http://student-loan-consolidation.irt8o.info/]student loan consolidation[/url]
[url=http://mortgage-washington.ffe8d.info/]mortgage washington[/url]
[url=http://bad-credit-home-loan.jrg8h.info/]bad credit home loan[/url]
[url=http://mortgage-banking.jrg8h.info/]mortgage banking[/url]
[url=http://refinance-mortgage-rate.liu8s.info/]refinance mortgage rate[/url]
[url=http://equity-mortgage.dre8o.info/]equity mortgage[/url]
[url=http://interest-only-home-loan.dre8o.info/]interest only home loan[/url]
[url=http://debt-consolidation-loan.erw8e.info/]debt consolidation loan[/url]
G'night
By Anonymous, at 4:40 AM
Hey, you have a great blog here! I'm definitely going to bookmark you!
I have a wealth daily site/blog. It pretty much covers ##KEYWORD## related stuff.or go to
Come and check it out if you get time :-)
wealth dailyand check ou the great discountsyou recieve onwealth daily
By Anonymous, at 12:40 AM
You are welcome Free submit your sites to growing web links directory .
Thanks
By Anonymous, at 3:07 PM
Cool web...
balance hoodia
cheap viagra
Buy cialis
By Anonymous, at 10:56 AM
viagra online without prescription viagra online guide - buy viagra online in mumbai
By Anonymous, at 4:55 AM
buy soma order soma drug - soma intimates bras reviews
By Anonymous, at 3:57 PM
buy tramadol online generic for tramadol medication - tramadol highest dosage
By Anonymous, at 12:03 AM
Medication Errors Compensation cheap cipro online - cipro antibiotic http://www.cheapcipromed.net/#cipro-antibiotic , [url=http://www.cheapcipromed.net/#ciprofloxacin-500mg ]ciprofloxacin 500mg [/url]
By Anonymous, at 1:35 AM
Medication Origins generic finasteride no prescription - buy cheap propecia http://www.propeciahowtosave.net/#buy-cheap-propecia , [url=http://www.propeciahowtosave.net/#buy-finasteride-5mg ]buy finasteride 5mg [/url]
By Anonymous, at 2:45 AM
buy tramadol online tramadol addiction time - how to buy tramadol online
By Anonymous, at 2:51 PM
Blogger: Postcards from the Fridge - Post a Comment cost of celebrex - celebrex without prescription http://www.celebrexgenericsale.net/#celebrex-without-prescription , [url=http://www.celebrexgenericsale.net/#celebrex-online-no-prescription ]celebrex online no prescription [/url]
By Anonymous, at 4:30 PM
r, cheap generic accutane - accutane without rx http://www.isotretinoinprices.net/#accutane-without-rx , [url=http://www.isotretinoinprices.net/#buy-roaccutane ]buy roaccutane [/url]
By Anonymous, at 3:45 PM
buy tramadol online no prescription cod tramadol withdrawal in cats - tramadol 50 mg vs norco 10
By Anonymous, at 1:04 AM
cheap alprazolam safe order xanax online - 2mg xanax high
By Anonymous, at 11:34 AM
alprazolam xanax xanax drug fact sheet - xanax dosage before flight
By Anonymous, at 4:08 PM
buy xanax 1mg order cheap xanax no prescription - buy xanax online with paypal
By Anonymous, at 10:36 PM
xanax online extract xanax quotes - xanax 57
By Anonymous, at 3:49 AM
xanax online xanax 0.25 high - xanax overdose amount alcohol
By Anonymous, at 2:48 PM
cheapest cialis cialis price walmart pharmacy - cialis coupon daily
By Anonymous, at 4:35 AM
http://landvoicelearning.com/#30896 tramadol 50 mg purchase - tramadol overdose amount
By Anonymous, at 8:53 AM
20000 :) Cheap Azithromycin - order zithromax http://www.zithromaxhowtobuy.net/#azithromycin-no-prescription, [url=http://www.zithromaxhowtobuy.net/#cheap-azithromycin]Order Zithromax[/url]
By Anonymous, at 2:51 PM
http://buytramadolonlinecool.com/#56411 tramadol for purchase - buy tramadol online eu
By Anonymous, at 10:42 AM
buy tramadol online tramadol for dogs long term use - tramadol dosage compared vicodin
By Anonymous, at 1:40 AM
buy klonopin online dosage of klonopin for anxiety - klonopin while breastfeeding
By Anonymous, at 7:49 PM
buy cheap tramadol tramadol online no prescription cheap - buy tramadol overnight with mastercard
By Anonymous, at 9:47 PM
03 generic lorazepam - purchase ativan http://www.ativanonlinenorx.net/#ativan-online-pharmacy, [url=http://www.ativanonlinenorx.net/#ativan-cost]ativan cost[/url]
By Anonymous, at 2:21 AM
buy tramadol tramadol withdrawal paws - buy tramadol medication
By Anonymous, at 3:48 PM
4, propecia sale - buy finasteride 5mg http://www.propeciasaleonline.net/#propecia-sale, [url=http://www.propeciasaleonline.net/#propecia-sale]cheap propecia 5mg[/url]
By Anonymous, at 4:11 PM
all, Biology Assignments - http://www.onlinewritinghelp101.com/biology.html#biology-assignments, Biology Online
By Anonymous, at 8:08 PM
http://www.integrativeonc.org/adminsio/buyklonopinonline/#3081 generic klonopin pictures - many 2mg klonopin get high
By Anonymous, at 3:31 AM
oZzy moved away earlier, I miss his cock, for always hungry
for making love.
FUCK MY PUSSY!
Here is my blog post :: hcg injections
By Anonymous, at 3:08 PM
carisoprodol 350 mg carisoprodol maximum daily dosage - side effects taking carisoprodol
By Anonymous, at 8:19 PM
Hi, buy ativan online no prescription - lorazepam online no prescription http://indiarss.net/, [url=http://indiarss.net/]ativan online pharmacy [/url]
By Anonymous, at 8:01 AM
Li, gabapentin without rx - neurontin 300mg http://www.neurontinonlineprice.net/, [url=http://www.neurontinonlineprice.net/]generic gabapentin [/url]
By Anonymous, at 12:50 AM
4, Lunesta Price - lunesta cost http://www.lunestasleepaid.net/, [url=http://www.lunestasleepaid.net/] Eszopiclone Price[/url]
By Anonymous, at 2:13 PM
12, Generic Accutane Cost - accutane cost http://www.benefitsofisotretinoin.net/, [url=http://www.benefitsofisotretinoin.net/]Cheap Accutane[/url]
By Anonymous, at 3:09 PM
I muѕt thank you fοr the еffοrts уou have
put in ωriting thiѕ blog. I rеаlly hope to see the sаme hіgh-gгаde blog
posts from уou lаter οn as well.
In fact, your creative wгiting abilіties has encouragеd mе to get
my verу own blog now ;)
Look into my homeρage; clenbuterol side effects
By Anonymous, at 6:25 AM
buy tramadol cash on delivery buy tramadol cod - buy tramadol without prescriptions
By Anonymous, at 5:41 PM
играть в казино гранд or казино рояль онлайн hd or казино онлайн без регистрации or казино онлайн черный список or европейская рулетка онлайн играть or можно ли играть в рулетку
By Anonymous, at 2:20 PM
Buy Priligy Online buy priligy and viagra - buy priligy safe
By Anonymous, at 4:03 PM
Post a Comment
<< Home