Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Startup / boot time
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
int2str
Guru
Guru


Joined: 29 Sep 2003
Posts: 362

PostPosted: Thu Jan 22, 2004 7:34 pm    Post subject: Startup / boot time Reply with quote

Hey guys!

I run Gentoo no my Compaq Presario 2100 notebook. It has a Athlon 2400+ with 512kb L2 cache and 512mb of ram. The hard drive is a generic (read slow) notebook hd.

Current setup:
- Gentoo 1.4
- Kernel 2.6.1
- KDE 3.2 rc1

Now, since suspend/resume doesn't work on that machine, is there any way I can speed up booting?

I checked with a stopwatch - it takes 1:30min from power-on until KDE ready (logged in and all - took me 13 secs to log in). That isn't too bad I guess, but still annoying.

What I did so far:
- only 1 module (radeon) everything else in the kernel (bare minimum)
- "parallel init" flag set /etc/conf.d/rc
- ifplugd to start networking later (when the machine is already booted up)
- tweaked hdparm to be as good as it gets (I think) on that notebook
- /tmp is using tmpfs

Now I know the notebook is not the fastest, period. But are there any more things I could do?

The keep hold up seems to be the init phase - even so I have no unecessary services start up.

Cheers,
Andre
Back to top
View user's profile Send private message
teknomage1
Veteran
Veteran


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Thu Jan 22, 2004 7:44 pm    Post subject: Reply with quote

I'm a big kde fan but you might consider dropping that. On my desktop I use kde but on my laptop I use black box and that has really sped up my boot time. Of course your laptop has better stats than my desktop so your mileage may very....
Back to top
View user's profile Send private message
int2str
Guru
Guru


Joined: 29 Sep 2003
Posts: 362

PostPosted: Thu Jan 22, 2004 9:02 pm    Post subject: Reply with quote

Well, for me KDE isn't really the problem. I'll hold the stopwatch at it again later tonight, but I feel that the pre-X part takes more time than it should, not so much the X/KDE part (though if that can be made faster as well, lemme know ;) ).

Cheers,
André
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Jan 23, 2004 2:16 am    Post subject: Reply with quote

int2str wrote:
Well, for me KDE isn't really the problem. I'll hold the stopwatch at it again later tonight, but I feel that the pre-X part takes more time than it should, not so much the X/KDE part (though if that can be made faster as well, lemme know ;) ).


Well, what you should probably do is shift all the unecessary-to-X inits until after the ones needed for X. That way you could probably get it into KDM/KDE after 3-4 init [OK]s and then the rest will hum away in the background.

That'll probably take more tweaking and research than you might think.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
ewan.paton
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1219
Location: glasgow, scotland

PostPosted: Fri Jan 23, 2004 3:48 am    Post subject: Reply with quote

thats pretty slow for a pretty hefty spec machine, i dont restart my laptop that often but its seems faster than that [1] what services are you running on boot. also are you sure hdparm has dma enabled, you could also consider a ramdisk and copying a bunch of progs to it on load so they start faster, its doubtfull you need that much ram for actual progs.

[1] its a 850mhz dell
_________________
Giay tay nam | Giay nam cao cap | Giay luoi
Back to top
View user's profile Send private message
int2str
Guru
Guru


Joined: 29 Sep 2003
Posts: 362

PostPosted: Fri Jan 23, 2004 8:43 am    Post subject: Reply with quote

Thanks for your replies, guys!

Starting xdm (kdm) earlier seems like a good idea. But I looked through the init script and it makes a point about xdm needing to be started after the getty's... So I don't think that will work.

Yes, DMA is enabled. The hard drive is as good as it gets (I think). Here's the output for hdparm /dev/hda:
Code:
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 58140/16/63, sectors = 58605120, start = 0


Here are the enabled services (rc-update -s output):
Code:
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
         consolefont | boot
              hdparm | boot
            hostname | boot
             hotplug | boot
             ifplugd |      default
             keymaps | boot
               local |      default nonetwork
          localmount | boot
             modules | boot
              net.lo | boot
            netmount |      default
              pcmcia | boot
           rmnologin | boot
              serial | boot
            sysklogd |      default
             urandom | boot
               vcron |      default
                 xdm |      default


Some of the init things which take the longes are "calculating module dependancies" (why is this done at startup anyway?) and "calculating service dependancies".

I held the stopwatch next to the notebook today again. I was actually wrong - X does take a moment to start. ~20secs to be exact. This gets you to KDM. Another ~20secs after logging in to get KDE fully up and running.

If I don't stat xdm at boot, it takes about 30seconds to get to the login prompt.

Am I even close to most of you guys or is this all pretty bad?

Cheers,
André
_________________
Adpot an unanswered post today!
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Jan 23, 2004 11:20 am    Post subject: Reply with quote

Looking at the above, xdm can be started before:

consolefont
net.lo
netmount
pcmcia
vcron

And probably a couple of others.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
markfl
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 240
Location: Kent, UK

PostPosted: Wed Feb 11, 2004 1:43 pm    Post subject: Reply with quote

how do you change the order in which services start then?

markfl
_________________
Life it seems, will fade away
Drifting further every day
Back to top
View user's profile Send private message
Gelfling
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2003
Posts: 106
Location: Avenel, NJ

PostPosted: Sat May 08, 2004 10:03 pm    Post subject: Reply with quote

On my system, I'm using hdparm -d1 -c3 -u1 -m16 -a64 -A1 /dev/hde & /dev/hdg since it doesn't work if I apply hdparm to /dev/md0 and here's my results:

hdparm -tT /dev/md0

/dev/md0:
Timing buffer-cache reads: 128 MB in 0.18 seconds =703.40 MB/sec
Timing buffered disk reads: 64 MB in 0.52 seconds =123.10 MB/sec
_________________
Phanbox64: MSI K8N Neo2, AMD Athlon64 3500+, ATI Radeon 9800XT, Corsair TwinX1024-3200C2 1024MB SDRAM, 2 WD 74GB Raptors & 120GB SATA HD, Audigy2 ZS, Plextor PX-708A DVD-/+RW, Pioneer DVD-106S DVD-ROM, CoolerMaster WaveMaster Case
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum