この手順では、Oracle Solaris オペレーティングシステムを使用してコアをアクティブまたは非アクティブにします。これは、アプリケーションの実行中に必要な回数行うことができます。
始める前に
このタスクには、root 権限が必要です。
エラスティックコンピューティングでは、BIOS 設定ユーティリティーの「Advanced」-「CPU Power Management Configuration」画面で有効または無効にできる Intel Speed Step が必要です。この設定はデフォルトで有効になっています。
次の例は、4 ソケットサーバーでの出力を示しています。
# psrinfo -vp The physical processor has 18 cores and 36 virtual processors (0-18 72-89) continue conversion here... The core has 2 virtual processors (0 90) Socket 0, core 0, VPs (0, 72) The core has 2 virtual processors (1 91) The core has 2 virtual processors (2 92) The core has 2 virtual processors (3 93) The core has 2 virtual processors (4 94) The core has 2 virtual processors (5 95) The core has 2 virtual processors (6 96) The core has 2 virtual processors (7 97) The core has 2 virtual processors (8 98) The core has 2 virtual processors (9 99) The core has 2 virtual processors (10 100) The core has 2 virtual processors (11 101) The core has 2 virtual processors (12 102) The core has 2 virtual processors (13 103) The core has 2 virtual processors (14 104) The core has 2 virtual processors (15 105) The core has 2 virtual processors (16 106) The core has 2 virtual processors (17 107) Socket 0, core 14, VPs (14, 74) x86 (GenuineIntel 306E7 family 6 model 62 step 7 clock 2793 MHz) Intel(r) Xeon(r) CPU E7-8895 v3 @ 2.60GHz... To conserve space, physical processors 1 and 2 are not shown here The physical processor has 18 cores and 36 virtual processors (72-89 105-119) The core has 2 virtual processors (72 144) Socket 3, core 0, VPs (72, 144) The core has 2 virtual processors (73 145) The core has 2 virtual processors (74 146) The core has 2 virtual processors (75 147) The core has 2 virtual processors (76 148) The core has 2 virtual processors (77 149) The core has 2 virtual processors (78 150) The core has 2 virtual processors (79 151) The core has 2 virtual processors (80 152) The core has 2 virtual processors (81 153) The core has 2 virtual processors (82 154) The core has 2 virtual processors (83 155) The core has 2 virtual processors (84 156) The core has 2 virtual processors (85 157) The core has 2 virtual processors (86 158) The core has 2 virtual processors (87 159) The core has 2 virtual processors (88 160) The core has 2 virtual processors (89 161) Socket 3, core 15 VPs (89, 161) x86 (GenuineIntel 306E7 family 6 model 62 step 7 clock 2793 MHz) Intel(r) Xeon(r) CPU E7-8895 v3 @ 2.60GHz
コア番号を取得するには、最初の仮想プロセッサ番号を 18 で除算します。
商がソケット番号です。
残りがコア番号です。
コアを非アクティブにするには、psradm -f を使用して個々の仮想プロセッサを非アクティブにします。
ハイパースレッドが有効になっているときにコアを非アクティブにするには、ターゲットコアに関連付けられた両方の仮想プロセッサを非アクティブにする必要があります。
例:
psradm -f 71 143 は仮想プロセッサ 71 および 143 を非アクティブにするため、コア 71 は非アクティブになります。
コアと仮想プロセッサをアクティブにするには、psradm -n コマンドを使用します。
あるコアに関連付けられたいずれかの仮想プロセッサをアクティブにすると、そのコアがアクティブになります。
psradm -n 71 143 は、コア 71 に関連付けられた両方の仮想プロセッサをアクティブにします。
関連項目