• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

いつも、ふと忘れてmanコマンドで確認するのですが、ちょっとメモ書き・・・。

書いて覚えることにします。

最近のCPUはマルチコアになっていますが、topコマンドでCPUの状況を確認するとデフォルトではCpu(s)と1つにまとめられています。

そうでなくて、コア毎のCPUの状況を見るには、

manで確認すると・・・

'1' :Toggle_Single/Separate_Cpu_States -- On/Off

This command affects how the 't' command's Cpu States portion is shown. Although this toggle exists primarily to serve massively-parallel SMP machines, it is not restricted to solely SMP environments.

When you see 'Cpu(s):' in the summary area, the '1' toggle is On and all cpu information is gathered in a single line. Otherwise, each cpu is displayed separately as: 'Cpu0, Cpu1, ...'

ってことで、topコマンドを実行しているときに1を押すとCpu0, Cpu1, ...という風にコア毎に表示されます。

ちなみに、topコマンドでマルチコアが見れるようになった状態で、W(大文字のW)を入力すると、この状態が~/.toprcに保存されます。

これで、もう忘れないはず!!(機械が覚えてくれたので)

posted by Png y_tsuda on Tue 16 Jun 2009 at 16:37
Contents
topコマンドでのCPUコア毎の表示
Comments
Aleksey: The uname check is only due to a somewhat slopp... '11-2
Yu Tsuda: あぁ、そうですね、、syncすると戻ってしまいますね・・・。 ご指摘ありがとうございます!! '09-7
ursm: /usr/portage 以下のファイルは更新のたび元に戻ってしまうので、/etc/porta... '09-7
Yu Tsuda: 見た目だけでも、わざわざGentooをこういうリストに入れてるのがすごいなぁと思ったりしたので... '09-3
Leonard Chin (レオ): ただし、VirtualBoxで「Gentoo」などを選択しても、別にどのOSを入れても大丈夫だ... '09-3
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ