Designing an ultra fast Linux Desktop system

benliong

Golden Member
Jun 25, 2000
1,153
0
0
I have a P II 400 running Redhat 7.2. I want to do something to the kernel so that not only would the bootup time decrease significantly, but also make it more "real time" when watching DVDs and divx :)

Any ideas?

Also, I was thinking of getting a IDE interfaced Compact Flash to hold the Linux Main system and set that FS to read-only. Any suggestion on that?
 

Colt45

Lifer
Apr 18, 2001
19,720
1
0
You could try a lightweight WM, like blackbox. KDE and Gnome are kind of heavy on the RAM.

other than that, im not hardcore enough to know what to suggest to remove from the kernel. (yet at least ;))
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
To speed up boot time, simply head to /etc/rc.d/rc.(1,3,5) and trim away anything you know you don't need. For example, you can remove things like Apache if you don't need a web server, squid if you don't need a proxy server, smbd if you don't need to share files with windows comps, and so on. Use man if you're confused by something.

To make a more efficient kernel:
1. Get the Linux 2.4.18 source. Save it to /usr/src.
2. Delete the /usr/src/linux directory. As strange as it sounds, this is a step I never skip.
3. Unpack the tarball you downloaded in step 1.
4. Download the Preemptive Multitasking and Lock Breaking patches to /usr/src.
5. Apply them the the kernel source.
6. Enter the /usr/src/linux directory and run "make menuconfig" if you're not in X, or "make xconfig" if you are.
7. Go through the options, checking every device you have and every feature you want. Make sure to select "Preemptible kernel" and "Lock breaking" in the CPU options menu. Those options enable the patches I told you to download.
8. time make dep modules modules-install bzImage
9. Go do something else, that's gonna take some time.
10. cp arch/i386/boot/bzImage /boot/kernel
11. Edit /etc/lilo.conf (if you're using lilo. I know nothing about grub) and add an entry for your new kernel, using the entry that looks like it's for your Linux system as a template.
12. Run /sbin/lilo
13. Reboot, and select the entry for your new kernel. Be amazed at how fast your system boots now.
14. Worship me as your god, and pray every night for more useful tips.

Just kidding about #14 :)


I hope this has been helpful.
 

Finite

Member
Apr 2, 2002
71
0
0
What exactly is the format of the multitasking and lock breaking files. Are they tar GZips rpm's what? Or are they simply text docs. I am in window right now and when I click the links all I get is the script. I had to right click and save target as. Thanks for the links though :D
 

Athlex

Golden Member
Jun 17, 2000
1,258
2
81
benliong,
Coyote linux is designed for embedded systems and might be what you're looking for if you want to boot from a flash card.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
What exactly is the format of the multitasking and lock breaking files. Are they tar GZips rpm's what?

They are kernel source patches, you have to download a fresh kernel source (or most likely you can use one you already have, long as it's the right version) and apply the patch then recompile the kernel.
 

benliong

Golden Member
Jun 25, 2000
1,153
0
0
Thanks all for your input. I though that the current kernel already have Preemptive scheduling in place. Guess I was wrong.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I'm not sure if the preemptive kernel patches (note this is different than preemptive user-space process scheduling) will ever make it into 2.4.x officially because ideally only fixes and new drivers should get in, they are in 2.5 officially though I believe.