Tweaking and pushing Slackware12.1-what now?
Hello.
Since i am familiar with windows for a long time, i always tried everything possible, to make a system faster, more secure and more flat. Of course, i don't want to make a lfs now, but i still try to manage this now under my sw12.1 with conventional methods. During the installation there are several options(daemons) , which one can check or uncheck, that's already ok. But i want more tweaking. - - Could someone do me a favour and reply to this by giving some small hints, how to tweak effectively my system? My primary aims look like that: - - faster bootup - boot up debug screen shall only be visible, until x and my vga are ready, then the gui login screen shall appear, although dmesg still is running in the back. - deactivating uneccesary daemons ( already done by setup, but what else is possible ?) - that's all for the time being! - - I'm already reading the LinuxSysAdmin Guide, the Securing and configuring the Linux-Kernel-the ultimate solution and two other documents now, and i will follow their hints, but only for completion, i'm now asking here in the forum, what else could be made. THX! |
Quote:
Break-out a text editor of your choice and edit /etc/lilo.conf Change the following area: # Timeout before the first entry boots. # This is given in tenths of a second, so 600 for every minute: timeout = 1200 To a lower number (here's mine): # Timeout before the first entry boots. # This is given in tenths of a second, so 600 for every minute: timeout = 600 To edit lilo.conf you could use nano which is an easy_to_use editor #nano /etc/lilo.conf |
Already got that
Thanks for that hint.
I think, i already have done that. My slackware boot logo flickers for about 1 second, just to show every noob, what i'm running. I mean after that i see the dmesg-boot screen scrolling ( at leat i think it is dmesg too, what is happening then). I want to shorten this procedure. |
Quote:
|
Quote:
Quote:
Code:
# Default runlevel. (Do not set to 0 or 6) Code:
# Default runlevel. (Do not set to 0 or 6) Code:
# These are the standard console login getties in multiuser mode: Quote:
|
One of the things you can do is recompile your kernel with everything you need in the kernel. Use no modules at all. Then make /etc/rc.d/rc.udev not executable. This will turn off hot pluging and also prevent module loading. If you need some module, I do believe that some video for linux stuff only runs from modules, you can't do this.
You could also hack the start up scripts and background things so the script continues while other things go on in the background. This will take a little work and some knowledge of what need to run before other things start. For example, and maybe the only thing, rc.inet1 needs to complete before rc.inet2 starts. If you are adventurous you might want to fold inet2 into inet1, good luck. As for disabling dmesg at boot up I would suggest against it. It doesn't take much, if any at all, time for it to run and when something BAD happens it usually is your only information as to what is the trouble. So don't blind yourself for a millisecond of boot time. |
Do you really want to speed up the boot procedure?
I have lilo waiting 0 seconds - so that's as fast as that part of booting can get.
I use ranish partition manager as a boot manager so if I want to change the boot partition or which partitions are available I use that. Normally I don't, so I just hit enter. What slows down booting are the periodic file system checks and probing for new hardware. If you really wanted to speed up the boot procedure those would be the two areas to concentrate on - and I would advise against it and pose the question how much time are you really saving? With Linux you do not have to re-boot very often at all, unlike with versions of Microsoft OS's. You boot once maybe in the morning - saving max 1 minute in booting time will cost you a lot of work. The hardware testing seems tedious but compared to the difficulties you would have if you installed new hardware or if you got problems with your file systems, I'd say that slight delay is worth it. I would definitely say that you should turn off daemons that you don't use - if not for speed then for security reasons. For example, don't have cups and apache running when in fact they aren't being used. If you think you need to re-boot, check out the telinit command and what sighup does. |
Quote:
The biggest gains are from not using the huge kernel, turning off services you don't need, and making sure you don't have errors at bootup. If you have trouble getting an IP from DHCP, for instance, that can particularly slow things down. Of course hacking the init scripts is necessary to go the extra mile, and only you can decide if it is worth it. |
Thanks very much!
Ok, all those hints are exactly what i supposed, to get.
Thanks! - - It is right, that most linux systems are started once and that the little amount of time does not count comparing to the usage of almost a whole day. - - The computer i'm trying to tweak is the one of my cousin. I tweaked his old wxp up to the most possible performance. After having still many problems with intrusion and infection by malicious scripts, i decided to lift his mind into the devine spheres of linux. - Better for me than coming every three weeks and reinstalling everything! - Now he misses the 11 seconds start-up, as he had before with windows. He uses his computer only for internet, printing, multimedia. - So now I have many ideas posted by you and i will try some things first on my slackware before doing this for my cousin. - And, it is right, that the DHCP procedure and the udev-triggering take the most time while boot-up. And, i think, for an usb, i need udev, or not? |
Quote:
This thread, Boot time Slackware and Debian, might interest you as well. It shows an example of speeding up the boot a little by pushing some of the actions to a cron job. I don't think ldconfig, fc-cache, update-mime-database, or update-desktop-database need to be included in such a "house-cleaning" cron job. These are/can be run as a background process during boot so they should not slow the boot down. Here is my shortened /etc/cron.daily/house-cleaning Quote:
|
Quote:
|
Quote:
|
Quote:
|
I wrote a decent post on how do speed up boot time in 12.0, much of it should still apply to 12.1, user discretion is advised, as not all things may match:
http://www.linuxquestions.org/questi...ml#post2921723 When I upgrade to 12.1, I'll write a new one, maybe on my site where it will be more accessible. |
Quote:
Regardless of all of this, however, you can never cut as much as you can with Linux, because Windows is not truly modular like Linux is. I can get my Slackware system to boot in a few seconds if I want to by simply just hacking the init scripts. I think the next versions of Windows are moving towards a more modular style, because M$ is realizing not everyone wants bloated software like Vista. |
All times are GMT -5. The time now is 11:31 AM. |