1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

perf topコマンドによるLinuxパフォーマンス分析

Posted at

概要

  • perf topコマンドによるLinuxパフォーマンス分析について

perf topコマンド使用例

システム全体のパフォーマンス分析

コマンド:perf top

topコマンドはプロセス単位で分析するのに対しperf topコマンドは関数単位で分析するため、より精度の高い分析を行うことができる

システム全体の分析
# perf top

特定プロセスに絞ったパフォーマンス分析

コマンド:perf top -p <pid>

特定プロセス分析の例
# yes > /dev/null &
[1] 29741
# perf top -p 29741
Samples: 119K of event 'task-clock:ppp', 4000 Hz, Event count (approx.): 13846101624 lost: 0/0 drop: 0/0
Overhead  Shared Object     Symbol
  33.74%  [kernel]          [k] el0_svc
  27.19%  libc.so.6         [.] write
   9.04%  [kernel]          [k] __fget_light
   7.68%  [kernel]          [k] invoke_syscall
   5.15%  [kernel]          [k] get_random_u16
   2.83%  [kernel]          [k] __arm64_sys_write
   2.36%  [kernel]          [k] __fdget_pos
   2.07%  [kernel]          [k] vfs_write

特定のCPUコアに絞ったパフォーマンス分析

コマンド:perf top -C <cpu core id>

特定のCPUコアに絞る
# perf top -C 0,1

end of main article

フッタ

仲間を募集しています!

ARIではエンジニア・ITコンサルタント・PM職全方位で仲間を募集しております。
カジュアル面談、随時受付中です!
ご興味ある方はこちらをご覧ください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?