0
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?

More than 1 year has passed since last update.

cpuの使用率を確かめる

0
Posted at

sar

root@*********:/home/vboxuser# sar -P 0 1 1
Linux 5.15.0-100-generic (*******) 	2024年05月14日 	_x86_64_	(1 CPU)

01時34分48秒     CPU     %user     %nice   %system   %iowait    %steal     %idle
01時34分49秒       0      0.00      0.00      0.00      0.00      0.00    100.00
平均値:        0      0.00      0.00      0.00      0.00      0.00    100.00

%idle

プロセッサがアイドル状態で入出力を待っていない時間の割合が表示される

出典

sar -P 0 1 1

-P 0 論理cpu0のデータを採取する意味
次の1 1秒毎
その次の1 1回だけデータを採取する

論理cpuとは

カーネルがcpuとして認識するもの。

論理cpu0とは?

physical id
Linuxが認識しているCPUの番号です。「0」が1個目のCPU、「1」が2個目のCPUを表します。上の表示例の場合は、すべての論理プロセッサーで「physical id」が「0」になっていますので、1個のCPUの中に論理プロセッサーが2個あることを示しています。

出典

出典

感想

いろんなコマンドがあるのか。

0
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
0
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?