【问题标题】:How much data can be fetched by submit_bio() at a timesubmit_bio() 一次可以获取多少数据
【发布时间】:2011-10-14 09:54:33
【问题描述】:

这是我的局域网结构

我想从 samba 服务器下载一个 258.6MB 的 .zip 文件,同时在下载前开始对路由器的 linux 堆栈进行分析。

完成后,停止分析,我在分析报告中发现了这个

samples   %       image name  app name  symbol name
...
16        0.0064  vmlinux     smbd      submit_bio
...

采样率为 100000,事件为 CPU_CYCLES。

因为这是第一次下载文件,也就是说它不在页面缓存中,所以 submit_bio() 应该很忙。因此,我不明白为什么 submit_bio() 的部分很少。这是否意味着每次调用 submit_bio 时,我们都会获取大约 (258.6/16)MB 的数据?

谢谢

【问题讨论】:

    标签: linux profiling kernel


    【解决方案1】:

    这是统计抽样。这意味着分析器对系统进行采样的 x 次,其中 16 次碰巧发现 CPU 在 submit_bio() 中运行。它确实意味着 submit_bio() 被调用了 16 次。

    【讨论】:

      猜你喜欢
      • 2014-08-26
      • 2013-05-21
      • 1970-01-01
      • 2015-02-23
      • 1970-01-01
      • 2015-06-01
      • 1970-01-01
      • 2012-03-18
      • 2021-10-20
      相关资源
      最近更新 更多