LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-04-2006, 01:51 PM   #1
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Rep: Reputation: 15
boot time


Hey. On P4 512 RAM, SuSE 10.1 takes 1,3 minutes to boot since LILO screen to KDE usable. Slackware takes 24 seconds and Windows XP 57 seconds.

How could I make SuSE boot faster?
 
Old 10-04-2006, 03:08 PM   #2
Thomas Lemmens
Member
 
Registered: Sep 2006
Location: European Union (BE)
Distribution: Ubuntu, Slackware
Posts: 49

Rep: Reputation: 16
Remove all unnecessary software and daemons (via yast)
Disable apparmour (via yast)
Disable the bootsplashtheme (via yast) and boot up in text mode
Have a look at you firewall configuration
...

Another solution is to stretch your patience-ability...
 
Old 10-04-2006, 03:48 PM   #3
Sp1t
Member
 
Registered: Jan 2005
Distribution: Suse 10.2
Posts: 68

Rep: Reputation: 15
Recompile your kernel so only modules applicable to your hardware are loaded.
 
Old 10-04-2006, 03:53 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by Sp1t
Recompile your kernel so only modules applicable to your hardware are loaded.
More specifically, recompile your kernel such that there are as few modules as possible (make options specifically applicable to your hardware built-in instead); try to make it so there is no need for an initial ramdisk.
 
Old 10-04-2006, 03:56 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Another thing you could do is try init-ng (or some other efficient, parallel init replacement). On one of my machines (a pretty simple one) it takes 7.3 seconds from GRUB prompt to text-login, with the greatest delay presented by DHCP (since its speed depends on the server).
 
Old 10-05-2006, 11:31 AM   #6
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Original Poster
Rep: Reputation: 15
init-ng would overwrite which initialization system I have on SuSE?

On a compiled-kernel, apparmor disabled and all the changes above, how many second +/- would it take to boot? For me, 35 seconds is more than good, although less time to boot is always good.
 
Old 10-05-2006, 12:28 PM   #7
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
1) paralel initialization is a default setting in suse
2) re-compiling kernel will not help much (unless you upgade it to the newer version that has some enhancements or you will disable nonresponding/slow responding devices)
3) built-in vs modules in terms of speed is mostly wrong. If you build device into kernel, then irrelevant of device status, kernel will try to load it. When build as a module, it will not start unless active.
4) initng scripts are designed for gentoo, you may try runit if you really want to experiment.

so what you can do?
1) change fs from reiser to xfs. Another very fast is jfs however this requires some tweaking as jfs is not supported as boot fs.
reiser is the slowest fs from all available in linux in terms of mounting device.
2) definitely tweak fstab
3) kill system services (not used)
4) kill DE services (not used)
5) re-compiling kernel may save up to 5-8 sec, but you can get vanilla, patch it will performance patches and this way improve GUI responsiveness
6) hmmm.. switch to BSD? (slackware is using similar init)

obviously lightweight GUI would help too.
 
Old 10-05-2006, 06:34 PM   #8
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Original Poster
Rep: Reputation: 15
The idea is not to change the distribuition, since I am used to SuSE and its programs and ways of doing things.


re-compiling kernel may save up to 5-8 sec, but you can get vanilla, patch it will performance patches and this way improve GUI responsiveness

What is vanilla?? What I am supposed to do?

I'll re-compile the kernel
I'll use XFS.
Disable apparmour

How many seconds +/- I would save up doing things above?
 
Old 10-05-2006, 07:31 PM   #9
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
here you will find vanilla:
http://www.kernel.org/

however for nonexperienced user this is a lot of work.

I would suggest small steps. If something will go wrong, it would be much easier to troubleshoot.

Start with obvious: services.
Next learn how to compile kernel. This is my small howto (a little bit updated):
http://forums.suselinuxsupport.de/in...0&#entry176917
and the rest of it:
http://forums.suselinuxsupport.de/in...howtopic=13698


next (before re-formating) try kernel 2.6.19x
It has new improvements that should definitely speed up reiser boot. If you will be satisfied, no need to reformat

remember that fs can be additionally speed up by adding extra flags to /etc/fstab.


hope this help.

how much faster? it depends on your hardware and how well you will optimize OS.
Hope this will help a little.
 
Old 10-06-2006, 10:01 AM   #10
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by tzbishop
init-ng would overwrite which initialization system I have on SuSE?

On a compiled-kernel, apparmor disabled and all the changes above, how many second +/- would it take to boot? For me, 35 seconds is more than good, although less time to boot is always good.
Init-ng and regular inits can co-exist on the same system. All you have to do is pass a boot parameter at the lilo prompt (init=/sbin/initng or init=/sbin/init, depending on which one you want to make the default). The executables are mutually exclusive, as are the configuration files (although init-ng setup scripts will try to learn as much about your current init scripts as they can).
 
Old 10-06-2006, 10:10 AM   #11
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by broch
2) re-compiling kernel will not help much (unless you upgade it to the newer version that has some enhancements or you will disable nonresponding/slow responding devices)
3) built-in vs modules in terms of speed is mostly wrong. If you build device into kernel, then irrelevant of device status, kernel will try to load it. When build as a module, it will not start unless active.
But most default distro kernels (AFAIK) have almost everything compiled as a module. This often requires an initrd, which takes up a lot of time. Of course such things as USB storage, etc. should be built as modules and configured with udev.

It all depends on your situation, but (at least for me) there are many things that will not change on my desktop system, yet might be built as modules in a distribution. Using modprobe to load modules from within init scripts (even if done in "parallel") is slower than having khelper/kthread load the same code at startup.
 
Old 10-06-2006, 10:35 AM   #12
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
Actually I had two kernels:
modules enabled and all in kernel. No difference in terms of speed.

initrd has not much to do with general module setup. It contains only info about disk and fs to allow loading kernel (you need these before kernel boots obviously) if fs and disk are build as a modules.

this is what my initrd contains:
Driver modules: ide-core ide-disk scsi_mod sd_mod piix libata ahci processor thermal fan ata_piix
Filesystem modules: xfs
Including: initramfs fsck.xfs


in other words if I would build kernel without initrd only the above would have to be build in the kernel (in my case -> specific hardware/fs setup). The rest can still be build as modules.

So to load initrd, you need very little time.

linux kernel is slow in terms of boot time when compared to BSD or windows (I assume some basic knowlege about windows).

For example default timeouts are quite long:

e.g. known issue with EHCI. If BIOS fail to handout EHCI to kernel, system waits 5 secs before timeout/giving up. This is super slow.

There is a lot of stuff that is pretty conservative (time wise). In some cases, this is good, in the other not so much.
 
Old 10-06-2006, 01:40 PM   #13
tzbishop
LQ Newbie
 
Registered: Oct 2006
Location: São Paulo - Brazil
Distribution: SuSE 10.1, Slackware 11
Posts: 28

Original Poster
Rep: Reputation: 15
How could I install that init-ng on SuSE 10.1??

I will compile the kernel (I have the .config I used to use on Slackware so it won't be a hard task ) and see how much it will get faster?

Is it difficult to install init-ng? RPM, compile, how-to?
Do you have a perspective of boot time on SuSE with init-ng

Thanks in advance!!
tzbishop2k
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
At boot time WayneS SUSE / openSUSE 3 09-07-2006 11:21 AM
"Starting System Logger" during boot time, stopping boot process. quickNitin Linux - Newbie 1 06-08-2006 01:31 PM
kernel compile time and boot time lordofring Programming 1 11-13-2005 02:04 AM
Stop boot script at boot time!! kmiles2 Linux - Newbie 1 02-23-2004 10:04 PM
boot time SonKun Linux - General 4 08-21-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration