Ubuntu10.10 upgrade the stable kernel to 2.6.38.2 kernel + BFS patch

Source: Internet
Author: User
Step 1: Download the kernel source code wgethttp: // response

Step 1: Download the kernel source code

Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.2.tar.bz2

Step 2: Download the legendary BFS patch, 2.6.37-sched-bfs-363.patch

Wget http://ck.kolivas.org/patches/bfs/2.6.38/2.6.38-sched-bfs-363.patch

Step 3: Install the compilation tool

Sudo apt-get install build-essential kernel-package libncurses5-dev

Step 4: unzip the kernel and install the BFS patch

Tar-jxf linux-2.6.38.2.tar.bz2
Cd linux-2.6.38.2

Patch-p1 <../2.6.32-sched-bfs-363.patch

Step 5: Make sure that the code source is "clean" and can be omitted

Make mrproper

Step 6: load the current kernel module configuration, which will save a lot of time for the subsequent Configuration

Make localmodconfig

During this period, you will be prompted to select a project (new function) that has not been configured. Enter "? "You can see the description.
Prompt (N/y /?) N off (the vast majority );
Prompt (Y/n /?) You 'd better take a look at it first. For example, if the first question is "whether to enable BFS", select Y;

For some uncertain options, you can select "m" to compile it into a module, but not all options have "m" options. Some options will prompt you to enter a value, the default value is generally provided as a reference.

Step 7: START detailed configuration

Make menuconfig

Pay attention to the BFS patch.
* Processor type and features-> Tickless System (Dynamic Ticks) left blank (not selected)
* Processor type and features-> Preemption Model-> select Preemptible Kernel (Low-Latency Desktop)
* Processor type and features-> Timer frequency-> select 1000Hz
(Here I think we can select Hz, but we don't know the difference between Hz and Hz, while Hz will make the CPU generate more heat. For the notebook, the power consumption increases significantly. I am using an old machine. I hope I can look at myself if I don't want to do anything about it)

Step 8: Clean Up

Sudo make-kpkg clean

Step 9: Compile

Sudo make-kpkg -- initrd -- append-to-version-lis kernel_image kernel_headers

-Lis: your own
Before compilation, it is best to turn off unused programs or even log out. Press Ctrl + Alt + F1 to enter the command line interface (Alt + F7 back to the graphic interface)
You can use fakeroot to replace sudo. I am too lazy and use sudo directly on my machine. It takes about one hour to compile sudo.

Step 10: Installation and restart take effect

Cd ..

Sudo dpkg-I linux *. deb

Sudo reboot

The usage of the new kernel in Ubuntu 10.10 has significantly improved the speed. It is also very smooth when the compiz 3D special effect is enabled, without the original card phenomenon, something else is being discovered .......

I hope you can try it out.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.