これで各コアの共有状態を把握する事ができる。
shared_cpu_list と同じディレクトリにある type で種類を確認する事ができる。Instabul では次のようになっている。
index0 : L1 'Data' cache
index1 : L1 'Instruction' cache
index2 : L2 cache
index3 : L3 cache
index3 を確認する事で、同一ソケット上のコア番号を取得する事ができる。
$ for i in {0..23} for j in {0..3} cat /sys/devices/system/cpu/cpu$i/cache/index$j/shared_cpu_listL1 cache memory は各コア専有のものを所持しているはずなので、これが share されているのであれば、Hyper Threading が ON になっていると予想される。
shared_cpu_list と同じディレクトリにある type で種類を確認する事ができる。Instabul では次のようになっている。
index0 : L1 'Data' cache
index1 : L1 'Instruction' cache
index2 : L2 cache
index3 : L3 cache
index3 を確認する事で、同一ソケット上のコア番号を取得する事ができる。