Page 2 of 16 FirstFirst 123412 ... LastLast
Results 11 to 20 of 152

Thread: Improve (potentially halve) login time by using readahead

  1. #11
    Join Date
    Dec 2006
    Location
    around here
    Beans
    215

    Re: Improve (potentially halve) login time by using readahead

    hi jdong,
    i have 2gb of RAM. surely i removed the biggest files as you advised to (there was a few files ranging from 10mb to 35mb), no big deal, though.

    i don't know why there are so many other files cached, especially files i barely use (nvidia-settings, ktorrent for instance). they're not loaded during login so i don't understand why readahead would cache them.
    what goes up must come down...

  2. #12
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Improve (potentially halve) login time by using readahead

    Quote Originally Posted by brazzmonkey View Post
    hi jdong,
    i have 2gb of RAM. surely i removed the biggest files as you advised to (there was a few files ranging from 10mb to 35mb), no big deal, though.

    i don't know why there are so many other files cached, especially files i barely use (nvidia-settings, ktorrent for instance). they're not loaded during login so i don't understand why readahead would cache them.

    That's pretty odd... Are you sure between the time you started readahead-watch and logging in, there wasn't anything running in the background that was accessing the disk? Could just be bad luck and the profiling caught a flurry of background activity.
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  3. #13
    Join Date
    Dec 2006
    Location
    around here
    Beans
    215

    Re: Improve (potentially halve) login time by using readahead

    yes, i'm sure there was no background activity.
    FYI, i use kubuntu 7.04, if that matters.

    attached you'll find the output of the sorting command, for my / (i have a dedicated partition for /home, too).
    you'll see there quite a bunch of files which are to be cached (some are very big, indeed…).

    i suspect some files are already being cached while logging in, that would explain why there are so many references to programs that are not running…

    one advice when caching files from /home : empty your trash bin before caching, or remove any reference to trashed files beforehand.

    just my € 0.02.
    Attached Files Attached Files
    what goes up must come down...

  4. #14
    Join Date
    Apr 2005
    Beans
    1,395

    Re: Improve (potentially halve) login time by using readahead

    I have upgraded to Gutsy and tried this method (in Feisty I just used to do profiling during the boot). In Feisty I could boot up in 35-37 sec but now it is 1 min, even after the optimisation from this thread. I have attached my bootcharts from both Feisty and Gutsy.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	gutsy-20071010-4.png 
Views:	220 
Size:	189.2 KB 
ID:	45912   Click image for larger version. 

Name:	feisty-20070929-11.png 
Views:	150 
Size:	169.2 KB 
ID:	45914  
    ASUS Zenbook 14 Ubuntu 22.10

  5. #15
    Join Date
    Apr 2005
    Beans
    54

    Re: Improve (potentially halve) login time by using readahead

    According to bootchart, readahead actually COSTS me 10 seconds on my desktop using Gutsy. I'll try the process again and hopefully it'll work.

  6. #16
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Improve (potentially halve) login time by using readahead

    Bootchart does not always reflect actual boot times you experience as a user (GDM is spawned at S13, while bootchart is stopped at S99) -- use the old-fashioned stopwatch method to time your bootups
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  7. #17
    Join Date
    Apr 2005
    Beans
    54

    Re: Improve (potentially halve) login time by using readahead

    Yeah I realized after I posted it that I wasn't accounting for post-gdm times. Anyways, this did wonders for my 2 year old laptop, not so much for my pretty new desktop.

  8. #18
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Improve (potentially halve) login time by using readahead

    The faster seek-times your disk has, and the more heuristics your disk has to minimize seeking when given a huge number of IO Requests, the less this hack will do.

    (Note specifically relating to the rc.local hack, bootchart will count all of the GNOME prefetching towards the boottime, which of course will inflate that number)
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  9. #19
    Join Date
    Nov 2006
    Location
    Denmark
    Beans
    83

    Exclamation Re: Improve (potentially halve) login time by using readahead

    I have the same problem as brazzmonkey has.
    No background activity (even prevented tracker from starting and removed all the icons from the desktop) and the file is REALLY BIG. I am using Ubuntu 7.04.
    I have attached the generated file.
    BTW: I have 1GB of RAM.
    Attached Files Attached Files
    Last edited by Hakimio; October 26th, 2007 at 08:34 PM.

  10. #20
    Join Date
    Feb 2007
    Beans
    12
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Improve (potentially halve) login time by using readahead

    Your guide didn't halve my login time. It eliminated it almost entirely. I went from upwards of 10 seconds or more to roughly one second. This is with 2 gigs of RAM.

    Absolutely fantastic.

Page 2 of 16 FirstFirst 123412 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •