Home page of this blog

Showing posts with label Custom kernel 2.6.39.1 core2 and above. Show all posts
Showing posts with label Custom kernel 2.6.39.1 core2 and above. Show all posts

Thursday, June 23, 2011

Custom kernel 2.6.39.1 ubuntu amd64 packages optimized for core2 and above


This package is created in Ubuntu 11.04 and should install fine in all versions of Ubuntu Linux 11.04 (as well 10.10) and Linux Mint 11 (as well Mint 10) (should as well in debian squeeze but not sure about dkms)

The build is for 64bit core2 and above processors

The following are the configuration settings

  1. Kernel Timer Frequency set to 1000 HZ
  2. Processor is selected as CORE2
  3. main Makefile modified to use -Ofast of gcc 4.6
    see below for the changes
    HOSTCFLAGS   = -Wall -Wmissing-prototypes -Wstrict-prototypes -Ofast -fomit-frame-pointer



    HOSTCXXFLAGS = -Ofast


    ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
    KBUILD_CFLAGS   += -Os
    else
    KBUILD_CFLAGS   += -Ofast
    endif




  4. Makefile and Makefile_32 modified to reflect march settings and mtune settings to core2 (new arch of gcc 4.6)
  5. Scheduled autogroup enabled
  6. Transparent hugepage support enabled
  7. Copied kernel source to /usr/src and built from /usr/src folder 
  8. Used enterprise linux kernel config as the base config and the kernel mostly seems to have no kernel debug prints because of it. Hence it runs considerably faster than stock Ubuntu kernel (well we can feel it) (I extracted the srpm to recreate the el6 config, the el6 srpm can be downloaded from http://ftp.redhat.com/redhat/linux/enterprise/6Workstation/en/os/SRPMS/kernel-2.6.32-131.0.15.el6.src.rpm)

How to install

To install

sudo dpkg -i linux-image-2.6.39.1-core2swift_14.00_amd64.deb linux-headers-2.6.39.1-core2swift_14.00_amd64.deb

followed by (these steps update-initramfs and update-grub are not required for mint10 or maverick, these were required when using Ubuntu Lucid)

sudo update-initramfs -c -k 2.6.39.1-core2swift

and final step of

sudo update-grub

before rebooting.

To test reboot into the newly installed kernel from grub

How to build yourself

follow my blog on how to build kernel in ten steps at


Kernel Source

I downloaded the kernel source tarball from kernel.org

Version: 2.6.39.1


Dropbox Download Links

http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.1-core2swift/CONFIG-CORE2SWIFT
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.1-core2swift/linux-headers-2.6.39.1-core2swift_14.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.1-core2swift/linux-image-2.6.39.1-core2swift_14.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.1-core2swift/Readme.odt
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.1-core2swift/Readme.pdf


SHA256SUMS


ebeb774d9b1037e9c1aee2da37f4a3f077a59fa7ae4fb8b546eeed725a5e3791  CONFIG-CORE2SWIFT
34f226618e52b4adebc27cec189042ab7504e4e77bd1c89ea11445e41da27096  Readme.odt
9144b147265d423cffbf115c4627b3e717eb1a3c761d1f7d66bda5ec9aa03e5b  Readme.pdf
cdcd06167cd6a2a88f5a58c4d2f3eda597d278116dbf6632b0ed8264d8112041  linux-headers-2.6.39.1-core2swift_14.00_amd64.deb
c99827ddd927d65dd30704f3bf8168f4032917012ffe5dff666a3c25eb7ddce9  linux-image-2.6.39.1-core2swift_14.00_amd64.deb


MD5SUMS


d02d52d124f4e876f4805cc36d55cf3d  CONFIG-CORE2SWIFT
6eadb25e6ea652445a7c8c6721407b87  Readme.odt
4c769e74062a2a185840a464ee36af2a  Readme.pdf
fdec875cc4b03278668126b73f109015  linux-headers-2.6.39.1-core2swift_14.00_amd64.deb
a12b39f6de8e2f2448b9e6c9e7413d56  linux-image-2.6.39.1-core2swift_14.00_amd64.deb