Quote:
Code:
bash-4.2$ /sbin/lsmod|grep ext There is probably a better test out there. |
Quote:
Code:
cd /boot If you wanted to run the huge kernel all you would do is remove the existing link and create a new one pointing to huge: Code:
cd /boot Code:
ls -la | grep vmlinuz |
This should tell you whether you're using the generic, huge, or another kernel, assuming the config files in /boot haven't been altered (and I can't think of a valid scenario in which they should be). This will work only for 64-bit Slackware; otherwise you would have to modify the paths to the config files to represent the smp versions.
Code:
if diff <(zcat /proc/config.gz) /boot/config-generic-3.2.29 >/dev/null ; then echo "generic"; elif diff <(zcat /proc/config.gz) /boot/config-huge-3.2.29 >/dev/null; then echo "huge"; else echo "Neither"; fi [edit] This is perhaps a better command in that it is universal (though it ignores the /boot/config symlink): Code:
for i in /boot/config-* ; do if diff <(zcat /proc/config.gz) "$i" >/dev/null; then echo "$i"; fi; done |
>T3Slider: second suggestion seemed to work
>T3Slider
Once I fixed the first line in lilo.conf to refer to the generic kernel, rebooted, then ran the first of your suggestions, I got this output: Code:
[root@MudPark:lebec] # if diff <(zcat /proc/config.gz) /boot/config-generic-3.2.29 >/dev/null ; then echo "generic"; elif diff <(zcat /proc/config.gz) /boot/config-huge-3.2.29 >/dev/null; then echo "huge"; else echo "Neither"; fi Code:
[root@MudPark:lebec] # for i in /boot/config-* ; do if diff <(zcat /proc/config.gz) "$i" >/dev/null; then echo "$i"; fi; done Thanks for the code! And thanks to all respondents. |
Quote:
The other is used to configure an initrd As to speed I don't know, but streamline_config does greatly reduce the size of the kernel. Since not all modules are built, it reduces the time required to build the kernel While initrd reduces the number of modules loaded during initial bootup all modules may still be built with the kernel. Although size may not be an issue, I always think less code less chance of a bug. john |
Quote:
http://ck-hack.blogspot.com/ http://www.algogroup.unimore.it/peop...lo/disk_sched/ |
>Martinus2u
Thanks for the information. Filed away against the rainy day when I might try it. My system is actually purring along and quite adequate to my humble needs. The original question, although inspired by a genuine desire to get generic kernel booted, was out of curiosity rather than pressing practical need for speed. |
All times are GMT -5. The time now is 04:52 AM. |