Postcards from the Fridge

Thursday, June 29, 2006

Bet ya bite a chip

I wanted to get something out earlier, but I've had a bit of nasty fever for the past few days. I promised in one of the blog comments to release the scripts that I am using for testing. I will do this very soon (probably in the next blog entry). I have some cleanup that I need to do.

In one of my past entries I mentioned that I was having trouble strace'ing startx, and that is what prevented me from using Federico's original patches. Well, that was beginning to bite me. First, my fwrite method did not handle threading very well. A message could get split a log was sent simultaneously by two different threads. (I think I could fix that though). Second, and more important, Federico's excellent visualization script wouldn't work.

I determined that figuring out how to get strace to work was really the only way to go.

First, it appears that the "SUID" problem was with strace and NOT with SELinux as I originally thought. According to the strace man-page it is possible to create a suid strace binary, and that will allow suid binaries to work properly. I created an suid-root strace, and that allowed me to "strace X". However, when I tried to launch gnome with this binary it gave me errors (some thing about "use a helper application for SUID stuff").

I had to take a different approach, so I changed my .xinitrc to launch an straced version of gnome rather than stracing startx directly. The suid-root X would start normally, and then the stracing would begin. That worked!

Here's my currently working .xinitrc:

exec strace -e clone,execve,open,access -ttt -f -o /tmp/gnome.log /home/gnome/bin/jhbuild run gnome-session

Notice that I added the "-e" option to Federico's default "-ttt -f" command line. This will ONLY record the clone, execve,open,access system calls. This speeds up the run-time, and reduces the amount of stuff that needs to be dumped in the log file.

All is not rosey
Unfortunately, now that am using strace, the start-up times seem a bit more sluggish. However, I have to update my scripts to automatically figure out how long things are taking. (I've just been reading log times manually.)

Also, and more importantly, my session will no longer shutdown by itself with strace turned on. I don't know if this is a bug in my distribution (with strace/ptrace) or an actual race within the gnome code. It makes it a real pain when I want to run 40 tests because I have to sit there and press cntrl-alt-backspace. Even then things don't get properly cleaned up. I am going to work on a big hammer to fix this.

1000 words

Federico suggested that I rearrange the order of nautilus vs. gnome-panel in the gnome-session file, and see if that changes the variability that I have been seeing. I don't have a definitive answer on that yet. However, I did notice that nautilus's execution does become interlaced with the gnome-vfs-daemon, and the gnome-panel. I wonder if it is possible to start the gnome-vfs-daemon before both of them, so nautilus won't have to wait for it to startup and/or compete with the panel for its resources. It would be really nice to know all of the dependencies of the gnome daemons. That way we could start the most needed ones earlier, and the non-conflicting ones in a parallel.

In Any event, here's a picture of my current startup. Note: most of the functions with a name of "(null)" are probably the gnome-vfs-daemon.

NOTE: The long pause at the end is because the shutdown of gnome has hung...


I noticed this before when I was shutting things down, but I saw it again on my logs, and it was really annoying me. I have esd completely disabled, yet on shutdown the esd process always starts.

I traced it down to "gnome-session-save". However, I don't yet know which part is calling it.

gnome-session-save calls this:
execve("/bin/sh", ["/bin/sh", "-c", "/home/gnome/gnome2/bin/esd -term"...], [/* 35 vars */]) = 0
which in turn calls this:
execve("/home/gnome/gnome2/bin/esd", ["/home/gnome/gnome2/bin/esd", "-terminate", "-nobeeps", "-as", "2", "-spawnfd", "15"], [/* 35 vars */]) = 0

This is the pebble in my shoe.

As I mentioned above, i don't yet have a cookbook that other people can follow in my footsteps and reproduce things. I will do that for the next blog. I need to do a little bit of clean-up, but then I can provide a patch.


  • Would strace -o file.log run faster if file.log was on a RAM disk? Just a thought...

    By Anonymous Anonymous, at 1:42 PM  

  • I doubt it. Simply because the kernel is caching everything anyway.

    On my test laptop, I only have 256M of memory, so big log files would compete with the memory that gnome needs, so that could be a problem.

    By Blogger ezolt, at 1:27 PM  

  • cheap propecia order propecia buy propecia propecia

    By Anonymous Anonymous, at 3:10 AM  

  • Hello!

    Nice site, keep up the good work .

    [url=][/url] BUY PHENTERMINE
    BUY PHENTERMINE buy phentermine phentermine online order phentermine cheap phentermine buy phentermine online phentermine diet pill phentermine online pharmacy phentermine prescription what is phentermine free phentermine

    By Anonymous Anonymous, at 10:00 PM  

  • - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity - public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity
    public nudity

    By Anonymous Anonymous, at 7:40 PM  

  • Hello!

    Nice site, keep up the good work . BUY PHENTERMINE

    By Anonymous Anonymous, at 10:08 AM  


    Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.

    By Anonymous Anonymous, at 4:25 AM  


    Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.

    By Anonymous Anonymous, at 3:32 PM  

  • talk to singles knoxville tn [url=]free adult personals web cam sevice[/url] usa dating updating computer bios

    By Anonymous Anonymous, at 5:49 AM  

  • laptop brands [url=]Lenovo Laptop[/url] buy Laptop Battery High quality discount laptop battery store
    compare laptops [url=]universal laptop battery[/url] laptop review replacement laptop batteries
    toshiba laptop batteries [url=]High Quality Laptop Batteries[/url] Laptops & notebooks Laptops & notebooks

    By Anonymous Anonymous, at 7:50 PM  

  • allegra side [url=]naprosyn[/url] national rural health association baltimore coffee tea
    generic version of detrol [url=]montage packs[/url] borderline personality disorder dsm iv [url=]toungue tied medical[/url]

    By Anonymous Anonymous, at 1:46 PM  

  • effects of diet pills [url=]anti saure[/url] overactive immune system and causes information on a medical sales representative
    removing obsolete health technologies [url=]cialis[/url] helpful carbohydrates [url=]international pharmacy selling adipex without rx[/url]

    By Anonymous Anonymous, at 7:44 PM  

  • tween breast [url=]weight loss[/url] sherwood park london drugs sports good for health
    ekho heart rate monitors [url=]rogaine 5 [/url] musc master public health [url=]mental health co op[/url]

    By Anonymous Anonymous, at 12:40 AM  


    By Anonymous Anonymous, at 8:44 AM  

    [url=]nurse drug cards[/url] anti arrhythmic drugs [url=]dosage of depakote[/url]
    cialis levitra sale viagra
    [url=]georgia state patrol drugs[/url] online pharmacy visa [url=]is dicyclomine a laxitive[/url]
    cialis professional review
    [url=]cvs pharmacy pharmacists names louisiana[/url] levitra without prescription [url=]can cozaar cause a negative pregnancy test[/url] strattera pharmacy [url=]buspirone manufacturer[/url]

    By Anonymous Anonymous, at 4:33 PM  

  • travel trailer vacation in the south east list airlines that travel to indonesia
    [url=]gis travel mug[/url] travel agents oxfordshire [url=]lakeview or plane tickets[/url]
    online travel reservations
    [url=]sharp travel manhattan ny[/url] riccione travel [url=]airline seat pricing website[/url]
    dental professional travel
    [url=]visit and travel[/url] honolulu travel for the disabled [url=]boeing vip interior[/url] travel by bus in germany [url=]airline cheap international ticket travel[/url]
    kids safe travel mexico [url=]airlines reno[/url]
    sports travel mugs
    [url=]london travel discount htm[/url] travel trailers oklahoma [url=]cheap plane tickets to salt lake city[/url]
    [url=]topograpical map of where i live[/url] golden travel services [url=]low flight costs[/url] travel brochure of italy [url=]harlingen airport airlines[/url]
    world travel boat cruise [url=]discount travel australia[/url]

    By Anonymous Anonymous, at 9:27 PM  

  • sears craftsman auto tolls mercedes benz intake
    [url=]optrel auto darkening lens[/url] dodge intrepid 1998 srs for sale [url=]saturn sl1[/url]
    automobile repair advice starting systems
    [url=]miamisburg auto sales[/url] quality windshield glass automobile [url=]road racing studebaker[/url]
    mk1 volkswagen 8v performance
    [url=]automobile ionizer no rust ever[/url] auto ionizer [url=]geely big chief scooter[/url]

    By Anonymous Anonymous, at 12:33 AM  

  • travel vacations from usa to china third trimester travel
    [url=]travel vacations beach[/url] fuel surcharge on travel dynamics [url=]ukrainian airlines[/url]
    travel holiday ireland england scotland horse riding
    [url=]optima travel mug[/url] travel to richmond virginia [url=]sirata resort expedia[/url]
    ellicott city travel agency travel expert job [url=]u s airways dividends[/url]

    By Anonymous Anonymous, at 1:44 AM  

  • babes and shoes we have to take our clothes off [url=]cool baby clothes[/url] designer plumber outlet aanstadt das riding clothes [url=]designer eyeglasses black with crystal[/url]

    By Anonymous Anonymous, at 3:41 PM  

  • mental health primary care carmarthenshire 2007 [url=]la presion arterial[/url] what is a pharmacy perpetual inventory
    medical peer reviews [url=]phosphatidylserine[/url] health costs canada us [url= ]caregiver stress and elder abuse [/url] ruined orgasm stories
    central auditory disorder in adolescents [url=]fml forte[/url] rod shaped bacteria with flagellum
    portsmouth tea company [url=]xplode stamina energy and sex enhancer[/url] emergancy medical tech [url= ]why employers should give drug tests [/url] health career degrees

    By Anonymous Anonymous, at 3:30 PM  

  • research mineral rights in oklahoma [url=]magen darm[/url] online medicine rx cialis viagra order
    cold weather urinary [url=]zyban[/url] mental health board recovery [url= ]medical information about carbohydrates [/url] health insurance pitfalls
    cheapest cialis onlinecom [url=]prazosin[/url] make a song for my heart to sing
    blood wake [url=]medications without a prescription[/url] river city dental [url= ]teenink fiction smoking butterscotch cookies [/url] mac email spam viagra male enhancement

    By Anonymous Anonymous, at 9:52 AM  

  • cheap keen shoes fashion marketing visual merchandising assistant [url=]preteen fashion galleries[/url] online skateboard clothes ginny doll fashions [url=]designer gown top wedding[/url]

    By Anonymous Anonymous, at 6:40 PM  

  • ginseng use dosage and warnings [url=]anti diabetici[/url] breast enlargement in pearland
    health lifestyle choices [url=]anti allergique et l asthme[/url] average penis size teen [url= ]dental extractions [/url] teen breast enhancement
    dental problems with son that has cerebal palsy [url=]depakote[/url] wildeess medical snowbird utah
    white pill 81 [url=]Online Drugstore[/url] bets prescription diet pills [url= ]dr reginald williams meharry medical college [/url] advantage home medical equipment

    By Anonymous Anonymous, at 6:22 AM  

  • fashion games to play fashion models [url=]ralph lauren active wear[/url] lady dress shoes shoes catalogue [url=]lauren london screensavers[/url]

    By Anonymous Anonymous, at 2:40 PM  

  • casino missouri riverside casino laughlin nv
    [url=]bingo disney dog[/url] legal online sports gambling [url=]nba betting ref[/url]
    bingo the chimp
    [url=]casino pics prague[/url] casino hotel baton rouge la [url=]lflorida lottery result[/url]
    won the australian lottery sports online gambling [url=]breeders cup betting info[/url]

    By Anonymous Anonymous, at 10:30 AM  

  • fashion clothes marbury shoes [url=]kristen klein canada[/url] woman shirt tie fashion photos heel high shoes wedding [url=]nike track shoes[/url]

    By Anonymous Anonymous, at 10:13 AM  

  • mathematical patterns in lottery numbers station casinos complaints
    [url=]gay bingo seattle[/url] gambling and suicide ideation [url=]the joker halloween costumes[/url]
    bingo com
    [url=]casinos and phoenix[/url] on line baccarat play [url=]beautiful sexy ladies playing cards[/url]
    bicycle league back playing cards ventaja casino blackjack 8 mazos [url=]michigan keno[/url]

    By Anonymous Anonymous, at 2:46 AM  

  • roxy bingo blackjack without tears
    [url=]las vegas monte carlo casino[/url] sport book betting casino [url=]jokers wrath patches[/url]
    lottery ny
    [url=]free interactive blackjack[/url] sports betting advise [url=]peg and jokers[/url]
    wwii victory playing cards ultimatedreamtrip michigan lottery [url=]baccarat luck[/url]

    By Anonymous Anonymous, at 7:38 AM  

  • blade runner summary movie [url=]green day bullet in a bible[/url] bring it on movie cheers top 10 butts in a movie
    linsey dawn mckenzie movie galleries [url=]ride em cowboy[/url] movie by the waters of babalyon two lane blacktop movie
    santa movie script 3d project [url=]dragonball evolution[/url] the men movie
    movie release dates uk [url=]the expert[/url] better than chocolate movie movie ratatoi
    movie simon phoenix [url=]full grown men[/url] movie wit download male solo sex movie

    By Anonymous Anonymous, at 7:31 AM  

  • harry potter order of the phoenix movie [url=]clifford[/url] grind the movie up and down back and forth faster faster movie
    ice pick movie murder author [url=]bob saget that ain t right[/url] movie collectors homepage movie duelist
    pics from stick it the movie [url=]fanatic[/url] rogers movie rental
    bedazzled movie script [url=]heavenly creatures[/url] movie halloween background jodi fosters new movie
    movie support your local fisherman [url=]living dying[/url] free smart movie player for nokia 3230 movie named i still know what you did last

    By Anonymous Anonymous, at 10:36 PM  

  • out of balance movie [url=]a civil action[/url] bollywood movie rape american movie classics sucks
    free female domination movie [url=]the lawnmower man[/url] movie action torrent jasper 8 movie theatre
    sahara movie [url=]after hours[/url] the movie secretary
    hostel the movie [url=]midnight bayou[/url] ftp movie movie screen advertising
    max hoax the movie [url=]infestation 70[/url] free movie pass x online movie search

    By Anonymous Anonymous, at 2:46 PM  

  • movie copyright form [url=]educating rita[/url] movie surprise ending finding forrester movie
    smithereens movie [url=]10 000 bc[/url] pussy movie movie porno
    movie of deep brain stimulation for depression [url=]julie walking home[/url] wifeys world movie
    universal movie and little rock arkansas [url=]the lookout[/url] classic movie theatres southeast michigan madam x movie
    portland oregon movie theater listings [url=]two weeks notice[/url] pat frank alas babylon movie quik time movie viewer

    By Anonymous Anonymous, at 5:31 AM  

  • deception movie [url=]death toll[/url] zippity do dah what movie baby boy the movie which websites can i watch it now
    movie stay hungry [url=]charlie s angels[/url] flight plan movie saw iii movie info
    movie blow with johnny depp [url=]east of everything[/url] superbad full movie stream
    the children of the dark movie [url=]fraternity house[/url] movie autographs free full gospel movie online watch
    movie the messenger [url=]three sheets[/url] lord of the flies black and white movie top ten movie soundtracks

    By Anonymous Anonymous, at 10:41 PM  

  • amateur movie [url=]the flight of the phoenix[/url] stowe movie spiderman movie sequel
    the mummy patricia velasquez movie screenshot [url=]family guy[/url] summary on movie review on exorcism mel gibson movie braveheart
    the taming of the shrew movie [url=]the frighteners[/url] deceptions movie judith michael
    the elephant man the movie [url=]devil s knight[/url] free movie download without membership fee or one time payment the missing movie
    bus ride to a blue movie [url=]spider man 3[/url] jj abrahms monster movie songs from zulu movie

    By Anonymous Anonymous, at 2:45 PM  

Post a Comment

<< Home