cpu概要
cpuに関係した簡単なメモ.
- CPU
- Central Processing Unit.最近のはコア化されている.
- CPU数の確認コマンド.
$ cat /proc/cpuinfo | grep "physical id" | sort | uniq
- コア
- CPUの中心部.
- コア数の確認コマンド.
$ cat /proc/cpuinfo | grep "core id" | sort | uniq
- ハイパースレッディング
- 物理コアを複数コアに見せる.
- ハイパースレッディングの確認コマンド.
$ cat /proc/cpuinfo | grep "processor"
- キャッシュ
- cpuに近い方からL1, L2, L3とある.メモリ見たいなャッシュだが,CPUに近い分高速にアクセスできる.