Results 1 to 5 of 5

Thread: Question About Kernel Size

  1. #1
    Join Date
    Aug 2005
    Location
    USA
    Beans
    378
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Question About Kernel Size

    Is there really a great speed difference between customizing a new kernel to your architecture (changing the pre-emption, timer, processor arch, etc..) and customizing the kernel to your arch and removing all the stuff that do you dont need in the kernel (video drivers, network drivers, various supports that you will never need, etc...) ?

    I always try to do the latter since thats how I learned it but it usually takes me about an hour to go through and disable all the stuff that I dont need, then after I install the kernel and begin using it I find out that I disabled something that I needed. My deb package for the kernel image is usually around 10mb.

    Will leaving all this (unneeded) stuff in really effect the speed of the kernel (other than compile time)?

  2. #2
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Question About Kernel Size

    Download and install bootchart:
    Code:
    sudo apt-get install bootchart
    And test it with both kernels yourself

    Although, tbh. I would expect compiling it to be optimised with your hardware would be much quicker than a bloated kernel with a massive load of modules in.

    ...

    This script prints out all modules that you are using. You can look them up in the kernel make-menuconfig list
    Code:
    for i in `find /sys/ -name modalias -exec cat {} \; 2>/dev/null`; do /sbin/modprobe --config /dev/null --show-depends $i 2>/dev/null; done | rev | cut -f 1 -d '/' | rev | sort | uniq
    Regards
    Iain

  3. #3
    Join Date
    Aug 2005
    Location
    USA
    Beans
    378
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Question About Kernel Size

    sweet thanks

  4. #4
    Join Date
    Aug 2005
    Location
    USA
    Beans
    378
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Question About Kernel Size

    it didnt change the boot time at all but the amount of reading and writing did decrease significantly with a smaller kernel

  5. #5
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Question About Kernel Size

    I think that the idea of a custom compiled kernel increasing boot speed is probably not accurate. It probably does cause the machine to boot faster but, probably not by an amount a human would notice. Fiddling with the timer, preemption and processor optimizations may make a difference depending on your workload but, again, it's likely to be so subtle for day to day operations that you wouldn't notice. Really, I would only recommend using a custom kernel if you need it for hardware support, you want to apply special patches or you simply find it entertaining to do.
    Don't try to make something "fast" until you are able to quantify "slow".

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •