SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
about 3 weeks ago i migrated from windows XP to slackware 9.
Currently i am using kernel 2.4.20 (bare.i) i have a pretty fast machine, athlonXP 1500, and 512mb (okay not the fastest on earth or anything, but still..)
Anyway i am curious, is it usefull to upgrade to the latest kernel? does it improve performance or anything, since i have to install quite some applications again, i would like to know if it is worth the effort, or that i should wait.
I'm pretty sure that there was a bug fix in the scheduler in 2.4.21 so its probably worth doing if you have the time. I wouldn't expect to see any massive difference though as IIRC the bug was pretty small, especially to have not been noticed sooner.
If you do upgrade the kernel you shouldn't need to recompile any applications, the only exception being custom kernel modules. I tend to upgrade if there is a specific change that will support new hardware that I have or fix a bug that affects me, apart from that I tend to take the view that the effort probably won't out weight the gains. (IMHO).
When I recompile my stock 2.4.20 kernel specifically for my Athlon XP I definitely notice a performance increase. Its not my imagination I am sure as I time the kernel compiles :-)
Originally posted by reclusivemonkey When I recompile my stock 2.4.20 kernel specifically for my Athlon XP I definitely notice a performance increase. Its not my imagination I am sure as I time the kernel compiles :-)
Thanks all for the replies. Where can i find info on comiling the kernel specially for the ahtlonXP?
There is only one option for your specific processor under 'Processor type and features' .Select whatever applies to your box.And forget about exotic gcc flags.They are not used when you compile the kernel.You can make it use them but nobody will be able to help you if things go wrong then.
I suggest compiling the kernel at the console. Whether or not thats good practice, I don't know but it feels right. I am sure it is quicker than in X too, but I may be wrong.
1. Download the 2.4.21 kernel source. You can get it from many places, I am sure you can find it.
2. Save the file to /usr/src
3. Unpack the kernel source. It will unpack to a directory called linux-2.4.21
4. Create a symlink to the file
ln -s linux-2.4.21 linux
5. cd into /usr/src/linux
6. Type make menuconfig and tweak away! To see what options were included in your install, check the /boot/config file for reference.
7. The particular area you are interested in is Processor type and features, then Processor family. Choose Athlon/Duron/K7.
8. Once you have done tweaking, save the config with a meaningful name (2.4.21-test), and exit, saving the setup.
9. Type the following
date >> kernel.timer; make dep; make clean; make bzImage; make modules; make modules_install; date >> kernel.timer
and go make a cup of tea :-) By using the date >> kernel.timer
line, you can see how long it took to compile. You can then compile again with the new kernel, without having to choose all the options again. and see how long it takes. You don't have to do anything with it once you have compiled again, its just a test :-)
10. Once you have finsihed compiling the new kernel, copy it to /boot with a more meaningful name:
image = /boot/bzImage-2.4.21-test
root = /dev/hda6 [this should be the same as your existing one]
label = Test
read-only
save, and run lilo (just type lilo), you should see test added.
15. Reboot and pray! Because you are using a new kernel version you don't have to worrry about backing up your old modules, but if ever you want to recompile a new kernel but preserve your old modules in cases you need to boot back into your original state, then cp /lib/modules/2.4.21 /lib/modules/2.4.21.bak
16. If it fails, you only need to link System.map back to System.map-ide-2.4.20
Originally posted by reclusivemonkey I suggest compiling the kernel at the console. Whether or not thats good practice, I don't know but it feels right. I am sure it is quicker than in X too, but I may be wrong.
1. Download the 2.4.21 kernel source. You can get it from many places, I am sure you can find it.
2. Save the file to /usr/src
3. Unpack the kernel source. It will unpack to a directory called linux-2.4.21
4. Create a symlink to the file
ln -s linux-2.4.21 linux
5. cd into /usr/src/linux
6. Type make menuconfig and tweak away! To see what options were included in your install, check the /boot/config file for reference.
7. The particular area you are interested in is Processor type and features, then Processor family. Choose Athlon/Duron/K7.
8. Once you have done tweaking, save the config with a meaningful name (2.4.21-test), and exit, saving the setup.
9. Type the following
date >> kernel.timer; make dep; make clean; make bzImage; make modules; make modules_install; date >> kernel.timer
and go make a cup of tea :-) By using the date >> kernel.timer
line, you can see how long it took to compile. You can then compile again with the new kernel, without having to choose all the options again. and see how long it takes. You don't have to do anything with it once you have compiled again, its just a test :-)
10. Once you have finsihed compiling the new kernel, copy it to /boot with a more meaningful name:
image = /boot/bzImage-2.4.21-test
root = /dev/hda6 [this should be the same as your existing one]
label = Test
read-only
save, and run lilo (just type lilo), you should see test added.
15. Reboot and pray! Because you are using a new kernel version you don't have to worrry about backing up your old modules, but if ever you want to recompile a new kernel but preserve your old modules in cases you need to boot back into your original state, then cp /lib/modules/2.4.21 /lib/modules/2.4.21.bak
16. If it fails, you only need to link System.map back to System.map-ide-2.4.20
17. The very best of British!
Hi reclusivemonkey
thanks.. Very detailed info. Thanks to the other people who responded as well.
I will use this "guide" to upgrade. Will do that this evening or tomorrow.
And enter the results here.
Hey thanks for that slipwalker, I'd often seen && used, but never quite knew the difference :-) I know & is used to put a process in the background what does the second one do, just tell the system there is another command?
That directive worked like a charm... thanks recluse!!!
For others attempting: make sure you don't select anything in the configuration that you don't actually have... it kinda tends to fault the compilation.
Originally posted by zsejk For others attempting: make sure you don't select anything in the configuration that you don't actually have... it kinda tends to fault the compilation.
i'm getting ready to compile 2.4.21 using reclusive's directions also. one question: i have a barton, so which processor option should i choose?
i'm using slackware 8.1 kernel 2.4.18.
if i upgrade my kernel to 2.4.21, is that mean my slackware version become 9 ?
btw, i have network issue with my box right now. so i'm thinking to upgrade my kernel.
if i upgrade my kernel, do i have to setup all my hardware again ?
i've lanstreamer network adapter and ac'97 audio. i've read that these two hardware is already supported by the latest kernel.
so, which one will be use, previous driver or from latest kernel ?
and for my configuration like in /etc/rc.d, do i have to setup all again ? thanks.
btw, this guide is the best i've read. simple and easy to follow.
i think it would be easier to learn linux if all howto's document like this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.