(For the Administration: I didnt know where to put this topic, so if its in the wrong place please move it. Thank you)
Hi folks!
Well I decided to contribute something (I just badly want this shell *joke*). This will be a small tutorial on how to optimize your Linux system.
First of all, here is a quick overview of all the steps needed.
///Update (01.03.2006)
Thanks for the reply. I added an additional section called links. Look there for further information.
Optimization of boot up process
Recompile your kernel
Optimize your hard disk
Additional tips
Links
1.
We gonna start with the first step which is boot up optimization.
Do you install new hardware everyday? Obviously not. So we need to disable the service that is searching for new hardware every time you boot up.
Heres how you do it.
(This are examples for specific distributions, just google this topic if you dont know how to disable services)
///Linux Mandrake///
Mandrake uses a service called Hard drake to search for new hardware. This is how to prevent the system from loading it every time you boot.
--------------------------------------------------------------------------------------------------------------------------------
Go to console and enter the following.
su root (logs you in as root)
Start the program Darkxservices and disable Harddrake.
--------------------------------------------------------------------------------------------------------------------------------
///Linux Red-Hat///
In RedHat you have to disable kudzu (the service that RedHat uses) through the redhat-config-services configuration.
2.
Finished with the first step? Cool. Now lets go on to the second step.
I will not go into detail here. The process of recompiling your kernel has been described on the internet. many times before. I just will tell you why recompiling your kernel is useful.
You might now that your kernel is not optimized for your hardware and as well is not 100% matching your needs.
By recompiling it you set it up for your hardware (for example the CPU values) and you might as well want to disable some services that you dont need and that are eating up additional system resources.
Just google this topic and you will be rewarded with a faster system.
3.
HD optimization is not always needed. But some distributions (old ones as well as new ones) refuse to use the full recourses of your HD.
This is how you fix this problem.
--------------------------------------------------------------------------------------------------------------------------------
Go to the console and type in the following.
hdparm -t /dev/name (this command checks your hard disk for performance. Replace
name with the name of your hard disk, for example sda)
This should return a reasonable value (for example 50 mb/s).
If you got a low figure then you might want to check your hard disk.
Enter the following command in the console.
hdparm /dev/name (dont forget to replace name with your hard disks name)
This command will show the setting of your hard disk. I will not discuss what they mean, this is meant to be a short guide. Just use the man command and read about the values.
To fix the mess with your hard disk just enter the following comand:
hdparm /dev/nameX -d1m8c3u1 (Replace nameX with your disk, for example sda1. Read in the manual about the values.)
Now, if everything worked correctly safe it by typing in the following.
hdparm -k 1 /dev/hda
Now we are done with the hard disk optimization. Enjoy the additional speed.
4.
Its time for some additional tips.
If possible use the ext2 file system
Dont forget to create a swap file (if you dont know how to do it. GOOGLE)
Try to turn off some services that you dont use. This will give you a faster start up and will also free up some additional system memory. (warning: Google this topic)
*lame tip* You might want to turn off some visualisation processes in KDE *lame tip*
5.
This section is called links. You can find additional info here. In case you know some good sites, please post them and Im gonna add them to the guide.
Kernel optimization:
(You should get a general Idea about it)
http://www.digitalhermit.com/linux/Kern ... HOWTO.html
http://www.linuxheadquarters.com/howto/ ... sons.shtml
http://www.redhat.com/docs/manuals/linu ... ernel.html
General service knowledge:
Slackware
http://www.slackware.com/config/init.php
http://www.slackbasics.org/html/init.html
General
http://www.comptechdoc.org/os/linux/sta ... uinit.html
http://www.linuxjournal.com/article/3016
Books
Slackware
http://www.slackware.com/book/
Im a bit lazy right now, this should do it for the beginning.
Well thats it. If you find any mistakes, please let me now. You have any additional tips or techniques on how to speed up Linux, please add them to this topic.
***Remember I dont take any responsibility for your action. If you destroy your system by doing something wrong while following this guide, dont complain. You have been warned.***




