免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1148 | 回复: 0
打印 上一主题 下一主题

Linux Kernel Testing (from a foreigner) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-28 09:51 |只看该作者 |倒序浏览

Building and performance testing 2.6-rc the latest release candidate kernel on Ubuntu Feisty
It started when
Henry
passed me a
good guide.
about testing and performance
I did the following:
ian@lawrence:~/Dev/Indt/Kernel/$ sudo apt-get install bootchart ketchup
Bootchart
is a tool for performance analysis and
visualization of the GNU/Linux boot process.
Ketchup
is a little command-line tool to manage
your Linux kernel sources.
If you're one of the weirdos, who is still
compiling his kernel manually for whatever
reason (like I do), I can only recommend it.
Ketchup nicely eases up the entire process of
checking for updates and applying them to
your system.
Configure and Compileian@lawrence:~/Dev/Indt/Kernel/$ mkdir tree; cd treeian@lawrence:~/Dev/Indt/Kernel/tree$ ketchup 2.6-rc
This downloads the latest "release candidate"
kernel.
You can check if you really have the latest
stable tree by:
$ ketchup -m
2.6.22.3
It's a good idea to use the configuration of
your current working kernel as a basis for
your new kernel. Therefore we copy the
existing configuration to the top of the tree:
ian@lawrence:~/Dev/Indt/Kernel/tree$ sudo cp /boot/config-`uname -r` ./.config
Then we run
ian@lawrence:~/Dev/Indt/Kernel/tree$ make menuconfig
For all possible options on this menu look at:
http://www.tlug.org.za/old/guides/lkcg/lkcg_config.html
When building the kernel to test it, you should
seriously consider setting the options located in
the ”Kernel hacking” menu. At least, you should
set:
  • Kernel debugging
  • Compile the kernel with debug info
    The other options should also be set, if
    possible, because they help debug specific
    function- alities of the kernel, but some of
    them hurt performance, so you may want to
    leave them unset:
  • Debug shared IRQ handlers
  • Detect Soft Lockups
  • Debug slab memory allocations
  • Slab memory leak debugging
  • RT Mutex debugging, deadlock detection
  • Built-in scriptable tester for rt-mutexes
  • Lock debugging: prove locking correctness
  • Lock dependency engine debugging
  • Locking API boot-time self-tests
  • Highmem debugging
  • Debug VM
    Build The KernelTo build the kernel, execute these two commands:
    ian@lawrence:~/Dev/Indt/Kernel/tree$ sudo make-kpkg clean
    and as root:
    root@lawrence:/home/ian/Dev/Indt/Kernel/tree# fakeroot make-kpkg --initrd --append-to-version=-ian kernel_image
    After --append-to-version= you can write any
    string that helps you identify the kernel, but it
    must begin with a minus (-) and must not
    contain whitespace.
    Now be patient, the kernel compilation can
    take some hours, depending on your kernel
    configuration and your processor speed.
    InstallAfter the successful kernel build, you can install
    by
    root@lawrence:/home/ian/Dev/Indt/Kernel# dpkg -i linux-image-2.6.22.3-ian_2.6.22.3-ian-10.00.Custom_i386.deb
    reboot
    This automagically puts an entry in your /boot/grub/menu.lst
    and the bootchart app we installed at the start
    makes a nice visualization of the boot performance
    in /var/log/bootchart when we reboot



    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/97597/showart_1946743.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP