Linux Kernel boot Time analysis

Source: Internet
Author: User

Reprint: http://blog.csdn.net/yimiyangguang1314/article/details/8807096

1. First modify the kernel Bootargs and add the following in Bootargs:

    1. printk.time=y Initcall_debug

The Bootargs I used was modified as follows :

    1. Setenv Bootargs "Root=/dev/mtdblock2 rootfstype=yaffs2 init=/init console=ttysac2,115200 printk.time=yInitcall_ Debug"

This way the kernel will print out the startup time for each module when it starts:

printk.time=y represents the kernel print information that contains timestamps, how your kernel is not configured:

  1.   Kernel Hacking
  2.        --on printks

    can be added printk.time=y  kernel parameters, printing time information, If the option above is configured, you can add printk.time=y parameter.

Printk.time=y is suitable for viewing boot time information without recompiling the kernel.

initcall_debug The various module information loaded by the kernel, this option allows you to see the order in which the kernel loads each module, which modules are loaded by the kernel, which can be seen from the information. If your kernel system does not need to use a module, try not to load it, so that the kernel occupies the storage space, you can also speed up the kernel boot process.

        kernel provides a "Show_delta" script, You can use this script to help us analyze the time-consuming situation of each module during kernel startup. Use the following method:

      1. $kernel/scripts/show_delta log_file > Boot_time_info

Linux Kernel boot Time analysis

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.