启动分析工具:bootchart

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

启动分析工具:bootchart

#1

帖子 eexpress » 2007-03-27 1:02

Monitoring init performance with bootchart

As you change the landscape of the system boot process, it's useful to understand what changed and how it affects the overall time to boot. Ziga Mahkovec has built a very useful tool called bootchart to visualize the makeup of the boot process. This tool consists of several elements, including a data logger utility and a visualization utility.

The data logger (bootchartd) runs in the place of the init process (usually, specified in the grub or lilo.conf files). After bootchartd has initialized, it surrenders control back to the real init process (typically, /sbin/init). Bootchartd is essentially a profiler that samples the environment at a periodic interval (by default, once every 200 ms). By sampling the environment, I mean that it reads the current CPU statistics, I/O and idle times, disk usage, and information about every active process (through the proc file system). This data is stored in a temporary file (/var/log/bootchart.tgz) for later post-processing.

Bootchart then uses a post-processing tool to transform the raw data into a boot chart. This process can occur locally using a Java™ application (part of the bootchart distribution), but an easier method is through a Web form located at the bootchart home page. An example piece of a boot chart is shown in Figure 2. Note that these charts tend to be quite large (depending on the services and applications started). For links to complete examples, see Resources.

代码: 全选

选中了曾被取消选择的软件包 fastjar。
(正在读取数据库 ... 系统当前总共安装有 194776 个文件和目录。)
正在解压缩 fastjar (从 .../fastjar_1%3a4.1.1-13ubuntu5_i386.deb) ...
选中了曾被取消选择的软件包 libgcj7-jar。
正在解压缩 libgcj7-jar (从 .../libgcj7-jar_4.1.1-14ubuntu7_all.deb) ...
选中了曾被取消选择的软件包 java-gcj-compat。
正在解压缩 java-gcj-compat (从 .../java-gcj-compat_1.0.65-6ubuntu1_i386.deb) ...
选中了曾被取消选择的软件包 librsvg2-bin。
正在解压缩 librsvg2-bin (从 .../librsvg2-bin_2.16.0-0ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 bootchart。
正在解压缩 bootchart (从 .../bootchart_0.9-0ubuntu6_all.deb) ...
正在设置 fastjar (4.1.1-13ubuntu5) ...

正在设置 libgcj7-jar (4.1.1-14ubuntu7) ...
正在设置 java-gcj-compat (1.0.65-6ubuntu1) ...

正在设置 librsvg2-bin (2.16.0-0ubuntu2) ...
正在设置 bootchart (0.9-0ubuntu6) ...
update-initramfs: Generating /boot/initrd.img-2.6.17-11-generic
记录先,等重启再看如何操作。
● 鸣学
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

Re: 启动分析工具:bootchart

#2

帖子 syrano » 2009-10-30 20:54

挖到坟了 :em04

ps: 原来ee也白过.
E=m c^2
头像
kakashan
帖子: 417
注册时间: 2009-04-09 19:43
来自: Tianjin Polytechnic

Re: 启动分析工具:bootchart

#3

帖子 kakashan » 2009-11-01 14:52

这个?EE发的?很好。
庄子曰:相濡以沫,不如相忘于江湖
子曰:不能相濡以沫,不如相忘于江湖
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 启动分析工具:bootchart

#4

帖子 adagio » 2009-11-01 15:00

爱因斯坦很强大,居然还能挖到沙发 :em06
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
回复