Best options for lite 2.6.33 current kernel compile on K7/K8 PC's?
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.
Just wonderin from slacksperts how I can compile kernel for my pc's as generic
with lightest ram,etc possible?
Just to understand you properly: You want to compile a kernel that runs on any i386 based cpu (generic), that includes as few additional features as possible?
Quote:
heres for my K7
Code:
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Athlon(tm) XP 2400+
stepping : 1
cpu MHz : 1997.207
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
bogomips : 3994.41
clflush size : 32
cache_alignment : 32
address sizes : 34 bits physical, 32 bits virtual
power management: ts
and K8
Code:
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 12
model name : AMD Athlon(tm) 64 Processor 3300+
stepping : 0
cpu MHz : 2411.322
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow up
bogomips : 4822.64
clflush size : 64
power management: ts fid vid ttp
You can compile a kernel optimized for K7 and K8. The appropriate options are CONFIG_MK8 and CONFIG_MK7. If you really want the best optimized kernel for your system, go through all options, examine your local hardware and select only options you really need. The best choice does not only depend on the CPU you are using but also on the remaining hardware.
Quote:
I should use non-smp generic yes??
how to optimize for best performance??
thanks
and I need initrd yes?
EDIT: I have no 64 bit distros
should I use a 64bit distro with K8?
You can use SMP on single cpu system. I'm not sure, but I read, that sometimes an SMP enabled kernel runs faster, than a non-smp kernel (on a single cpu system).
You only need an initrd, if the kernel does not include drivers that are necessary to access a filesystem with the additional kernel modules in it. So the kernel either has to have the harddisk driver and filesystem driver built-in or you will need an initrd for sure.
But for a best optimized kernel, you should have those drivers built-in statically.
I'd start with the config file for the normal generic kernel, add support for the root filesystem you are using and use the arch for the exact cpu you have. Any further optimizations will be hard-won as you must try or investigate them pretty much one at a time. There is considerable cruft still in the generic config, but not easy to cull out...
so, I hve now successfully compiled 4 kernels for my K8
1) 2.6.27.31 for my 12.2 install
2) 2.6.32.7 for my Absolute 13.0 install
3) 2.6.29.6 for 13 slackware install
4) 2.6.33 for Current install
was wonderin just how far a kernel can be strippped?
I cut out like toshiba/dell laptop support
hibernate/suspend gone
I made ext3 * for all kernels
took out jfs and reiserfs support
took out -smp thing
thats about it, and made it K8 too of course
I also uncommented some modules in /etc/rc.modules-*
like for fan/thermal,etc
and my fans (HP cool&quiet) do seem to whir up under load
so I guess thats good?
all the kernels work great and it does boot faster
dont really know if I'm saving much in terms of performance
but, its better than a hugesmsp.s or generic setup right??
thanks
It is certainly satisfying to have a roll-your-own kernel. Just looking around and investigating what else might be left out is a good exercise if you want to learn more about the kernel. My kernels are considerably smaller than the generic kernels, but for distributing them, you need to include more general-support items.
Make yourself a file to keep notes in, then go along removing only one or thwo things at a time and writing down which ones they were. When you run acros something that causes your kernel to be non-functional, you'll know what it was and can eliminate that from your list of items to remove. I find that works better than starting from 'scratch' and trying to figure out what all you need to get a 'barely-bootable' configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.