Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HowTo Speed Up Boot & Increase Responsiveness (Desktop)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
jalu
Posts: 1389
Joined: 2008-11-19 23:26

#46 Post by jalu »

it wouldn`t hurt if that would be a sticky

(like you said: its about 10 minutes of work and, as far i can tell,
the system seems to be much more solid now
+ one is getting interested in the 'problem/topic'
+ its important for everyone).
thanks for that jalu

User avatar
Hadret
Posts: 354
Joined: 2007-07-19 13:04
Location: Berlin

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#47 Post by Hadret »

What about Upstart? It's in Sid repository, does anybody use that? Is it fast? (:

User avatar
lbm
Posts: 494
Joined: 2009-05-16 09:24
Location: Denmark

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#48 Post by lbm »

Nice and usefull post. I have a couple of things to try thats for sure.

hameau
Posts: 257
Joined: 2008-11-13 17:42
Location: France

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#49 Post by hameau »

I have been a satisfied user of CONCURRENCY=shell since the end of last year, running Lenny (when it was testing) and subsequently Squeeze.

I'm pretty sure that it was recent updates to sysvinit (v2.86.ds1-63) that broke my system, boot stopping with a flashing cursor and no further action (further details below). Commenting the CONCURRENCY=shell line in /etc/default/rcS restored booting.

Interestingly, the difference between with and without CONCURRENCY=shell in the current Squeeze is almost too small to notice, though it certainly made a bigger difference when I first used it.

=====

For the sake of those Googling later, these were the significant lines from the boot process (not the full output):
getpt: no such file or directory
could not get pty for /etc/rcS.d/S02hostname.sh
could not get pty for /etc/rcS.d/S02mountkernfs.sh

The final line to appear before the boot process stopped indefinitely:
Waiting for /dev to be fully populated ... done
<flashing cursor>
Nick.

User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#50 Post by dbbolton »

I would like to mention, for those so inclined, that after installing insserv and setting the concurrency variable, I could not boot into my system. After removing the package and commenting out the concurrency line, I could once again boot: http://forums.debian.net/viewtopic.php? ... 53#p243853

Luckily this was on an experimental system. I know I would get to keep both pieces.
GitHub | zsh docs in Letter PDF
Telemachus wrote:Put down the CGI.

Stian1979
Posts: 316
Joined: 2007-07-29 14:57

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#51 Post by Stian1979 »

Hadret wrote:What about Upstart? It's in Sid repository, does anybody use that? Is it fast? (:
I use it and it was originaly developed for ubuntu I belive, when it made it into squeeze and has ben used also for fedore I think it should be quite stable by now.
I mean I got some improvements with it.
Installed it on 3 computers and did not have any problems despite the warnings.
Image
Debian Bullseye

Stian1979
Posts: 316
Joined: 2007-07-29 14:57

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#52 Post by Stian1979 »

julian67 wrote:

Code: Select all

# echo 'CONCURRENCY=shell' >> /etc/default/rcS
I have used this one in the past and working well.
Now it make my system not boot. populating dev and that's it.
How can I have it undone?
Image
Debian Bullseye

User avatar
julian67
Posts: 4633
Joined: 2007-04-06 14:39
Location: Just hanging around
Been thanked: 7 times

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#53 Post by julian67 »

Stian1979 wrote:
julian67 wrote:

Code: Select all

# echo 'CONCURRENCY=shell' >> /etc/default/rcS
I have used this one in the past and working well.
Now it make my system not boot. populating dev and that's it.
How can I have it undone?

Code: Select all

# echo 'CONCURRENCY=none' >> /etc/default/rcS
Wisdom from my inbox: "do not mock at your pottenocy"

User avatar
patrick
Posts: 35
Joined: 2007-06-10 14:57
Location: Holland Massachusetts U.S.A.
Contact:

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#54 Post by patrick »

julian67 wrote:
Stian1979 wrote:
julian67 wrote:

Code: Select all

# echo 'CONCURRENCY=shell' >> /etc/default/rcS
I have used this one in the past and working well.
Now it make my system not boot. populating dev and that's it.
How can I have it undone?

Code: Select all

# echo 'CONCURRENCY=none' >> /etc/default/rcS
I Changed mine to

Code: Select all

# echo 'CONCURRENCY=startpar' >> /etc/default/rcS
It works fine.
Debian Lenny/Squeeze
Journeyman Plumber Massachusetts U.S.A.
If i can learn Linux any person can. I'm just a Plumber ya know.

Stian1979
Posts: 316
Joined: 2007-07-29 14:57

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#55 Post by Stian1979 »

patrick wrote: I Changed mine to

Code: Select all

# echo 'CONCURRENCY=startpar' >> /etc/default/rcS
It works fine.
Me too and it worked quite well.
I can now get into my desktop invironment in less then 1 minute.
I doubt it posible to get it any faster without disabling things I use and trow out the ultra slow 5400rpm hardisk.
Image
Debian Bullseye

User avatar
Hadret
Posts: 354
Joined: 2007-07-19 13:04
Location: Berlin

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#56 Post by Hadret »

Is there any easy way of managing scripts in /etc/rc?.?? Cause I have some I need to disable and wondered if there's any simpler way than renaming symlinks starting with S to start with K and than launching update-rc.d script defaults...

[edited]

Got it -- *sysv-rc-conf* (:

Also, is there any place that explains how Debian is booting and which /etc/rc's are launched in what time?

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#57 Post by oOarthurOo »

My normal boot was 48.8 seconds. Of that, 6 is for the bios, 4 is for Grub2. So, let's say an even 10 seconds is something other than the system booting up.

Normal boot is therefore 38.8 seconds.

Installed readahead-fedora (readahead just points at this I believe), rebooted twice to allow it to profile the boot. Third reboot was 33.5, so about 5 seconds saved.

Then I tried to install insserv and found it was already installed, strange, but I set concurrency to shell. Reboot was timed again and came in at a slightly faster 32.2, so saved about 1 second with that.

That's right to a useable gnome desktop by the way, with network manager up and running and all panels and wallpapers brought up and ready. It's roughly 10 seconds from GDM to ready desktop, though I never timed that part.

Oh and I've got a pretty slow 7200 rpm hard-drive, because I like things quiet rather than super speedy.

Update
Created a bit of a problem here. Made some changes to /etc/readahead.conf and so wanted to regenerate my profile. Removed the four custom files under /etc/readahead.d and rebooted, thinking it would regenerate. But that is how ubuntu's readahead operates. Oops.

Reinstalling doesn't fix it. Though i haven't tried purging then reinstalling. Can't touch /etc/readahead/profile-once, because that directory doesn't exist. Touch /etc/readahead.d/profile-once doesn't work either. Gonna look for a solution, but if you know of one before I post back please clue me in.

Cheers,

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#58 Post by Rolling Stone »

If you're the sole user and use autologin you can save a few megabytes of RAM by replacing gdm with nodm.

[I run Trisquel these days (a FSF approved Debian derivative via Ubuntu) so your mileage may vary. No refunds.]

nodm is an autologin display manager. When you install the nodm package, gdm will be removed. Then you will want to edit /etc/X11/default-display-manager to point to nodm instead of gdm and then edit /etc/default/nodm to first enable nodm and then you probably want to login as somebody else besides root. (If you don't edit these files, you can funk your .Xauthority file. Ask me how I know...)

Should you logout, you will be automagically login again at once. Restarts and reboots work just like they used to.

User avatar
Grimnar
Posts: 173
Joined: 2008-03-30 16:24

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#59 Post by Grimnar »

Since this is a desktop version, how about a server version? Not that booting is that relevant, but I bet there are some other stuff to disable and such.

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#60 Post by Rolling Stone »

I never boot these days, I only hibernate. A custom kernel with the TuxOnIce patch makes it really smooth and quicker than anything else out there. :)

I guess you all knew that already but since it wasn't mentioned in the thread...

User avatar
Branimir
Posts: 29
Joined: 2010-06-06 23:09

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#61 Post by Branimir »

After installing readahead and after using this command:

Code: Select all

touch /etc/readahead/profile-once
I get:

Code: Select all

touch: cannot touch `/etc/readahead/profile-once': No such file or directory
No google results on this one.
If you scoop, it sounds like poop!

User avatar
julian67
Posts: 4633
Joined: 2007-04-06 14:39
Location: Just hanging around
Been thanked: 7 times

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#62 Post by julian67 »

Branimir wrote:After installing readahead and after using this command:

Code: Select all

touch /etc/readahead/profile-once
I get:

Code: Select all

touch: cannot touch `/etc/readahead/profile-once': No such file or directory
No google results on this one.
The command is described as

Code: Select all

# touch /etc/readahead/profile-once
The # indicates that this command should be performed as root. If the $ symbol was in its place then you'd be expected to perform the command as regular user. If no symbol is present then either the context should mean it's clear or the author is a lazy so and so.
Wisdom from my inbox: "do not mock at your pottenocy"

User avatar
Branimir
Posts: 29
Joined: 2010-06-06 23:09

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#63 Post by Branimir »

of course, I ran it as root, sorry for the typo
If you scoop, it sounds like poop!

User avatar
julian67
Posts: 4633
Joined: 2007-04-06 14:39
Location: Just hanging around
Been thanked: 7 times

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#64 Post by julian67 »

Perhaps you're running Squeeze? I notice that in Squeeze readahead has been superceded by readahead-fedora which I assume is different (I didn't try it). If so then you should consult the man page on your system in preference to using this howto's readahead info. I've edited the howto accordingly.
Wisdom from my inbox: "do not mock at your pottenocy"

User avatar
debil
Posts: 1336
Joined: 2008-05-11 08:55
Location: Mazes of Menace, surrounded by brown puddings

Re: HowTo Speed Up Boot & Increase Responsiveness (Desktop)

#65 Post by debil »

The error message implies there is no directory named readahead under /etc (which is weird because normally apps take care of those at install or at first run). Maybe create one and try again?
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.

Post Reply