差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
memo:memo1 [2022-01-12 08:46] Decomo |
memo:memo1 [2022-08-28 22:52] Decomo |
||
---|---|---|---|
行 1: | 行 1: | ||
====== memo1 ====== | ====== memo1 ====== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ポエム:REALFORCEと私 | ||
+ | |||
+ | 私がREALFORCEを手にしたのは12年と半年前、2009年11月のことだ。以前から知ってはいたものの、その価格と「他にもいいキーボードはあるハズ」という冒険心から、長らく購入を見送っていた。その間に使ってきたキーボードは次のとおりである。 | ||
+ | |||
+ | * Microsoft Natural Keyboard Elite | ||
+ | * IBM KB-8920 (5576-B05) | ||
+ | * Apple Wireless Keyboard (A1016) M9270LL/A | ||
+ | * Apple Keyboard (US) (A1243) MB110LL/A | ||
+ | * FILCO ZERO Tenkyless FKBN87Z/EB | ||
+ | |||
+ | |||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | |||
行 90: | 行 121: | ||
+ | ====== x86_energy_perf_policyのmanの翻訳 ====== | ||
- | NAME | + | https:// |
+ | ===== 名前 ===== | ||
x86_energy_perf_policy - x86モデル固有レジスタを通じたエネルギー対性能ポリシーの管理 | x86_energy_perf_policy - x86モデル固有レジスタを通じたエネルギー対性能ポリシーの管理 | ||
- | SYNOPSIS | + | ===== 書式 ===== |
- | x86_energy_perf_policy [ options | + | x86_energy_perf_policy [オプション] [スコープ] [フィールド値] |
- | scope: --cpu cpu-list | --pkg pkg-list | + | スコープ: --cpu cpu-list | --pkg pkg-list |
cpu-list, pkg-list: # | #,# | #-# | all | cpu-list, pkg-list: # | #,# | #-# | all | ||
- | field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired | + | フィールド: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired |
- | other: (--force | --hwp-enable | --turbo-enable) | + | その他: (--force | --hwp-enable | --turbo-enable) |
- | value: # | default | performance | balance-performance | balance-power | power | + | 値: # | default | performance | balance-performance | balance-power | power |
- | DESCRIPTION | + | ===== 説明 ===== |
- | x86_energy_perf_policyはIntelアーキテクチャプロセッサ固有のエネルギー性能ポリシー設定の表示と更新を行います。 | + | x86_energy_perf_policyはIntelアーキテクチャプロセッサ固有のエネルギー性能ポリシー設定の表示と更新を行います。Linuxのcpufreqサブシステムの有効・無効を問わず、設定はモデル固有レジスタ(MSR)の更新を通して読み書きされます。 |
- | Settings are accessed via Model Specific Register | + | |
- | MSR_IA32_ENERGY_PERF_BIAS (EPB)のポリシーは、ハードウェアがどれくらい積極的にCPU待機ステート(C-State)とプロセッサ性能ステート(P-State)を行き来するかといった、広範なハードウェア裁定に影響する可能性があります。 | + | MSR_IA32_ENERGY_PERF_BIAS (EPB)のポリシーは、ハードウェアがどれくらい積極的にCPU待機ステート(C-State)とプロセッサ性能ステート(P-State)を行き来するかといった、広範なハードウェア裁定に影響する可能性があります。このポリシーヒントはOSの明確なC-State, |
- | このポリシーヒントはOSの明確なC-State, | + | |
- | 正確に言えば、ヒントはこれら選択の実行をどの程度積極的に行うかをハードウェアに伝えます。 | + | |
- | さらに、 | + | |
+ | Hardware P-States (HWP)は、ハードウェアPステート制御を日和見的なTurbo Mode Pステート範囲から利用可能なPステートの全範囲を含むよう拡張したもので、事実上のPステート制御を行います。Broadwell XeonのHWPの初期実装では、EPBがHWPに作用します。この作用は後続世代では削除され、2つの専用MSR、MSR_IA32_HWP_REQUESTとMSR_IA32_HWP_REQUEST_PKG内のEnergy_Performance_Preference (EPP)フィールドに移されました。 | ||
- | Policy in MSR_IA32_ENERGY_PERF_BIAS (EPB) may affect a wide range of hardware decisions, such as how aggressively the hardware enters and exits CPU idle states (C-states) and Processor Performance States (P-states). This policy hint does not replace explicit OS C-state and P-state selection. Rather, it tells the hardware how aggressively to implement those selections. Further, it allows the OS to influence energy/ | + | EPPはHWPモードの最も一般的な制御弁ですが、MSR_IA32_HWP_REQUESTはQoSのための最小周波数の指定、および消費電力上限のための最大周波数の指定をユーザーに許可します。 |
+ | MSR_IA32_HWP_REQUESTはCPU毎に定義されます。 | ||
- | Hardware P-States (HWP) are effectively an expansion of hardware P-state control from the opportunistic turbo-mode P-state range to include the entire range of available P-states. On Broadwell Xeon, the initial HWP implementation, | + | MSR_IA32_HWP_REQUEST_PKGはMSR_IA32_HWP_REQUESTと同一の能力を持ちますが、パッケージ内の全CPUに対しデフォルトポリシーを同時に設定可能です。 |
+ | CPU毎のMSR_IA32_HWP_REQUEST内のビットは、MSR_IA32_HWP_REQUEST_PKGによって上書きされたのか、あるいは除外されるのかどうかを示します。 | ||
- | EPP is the most commonly managed knob in HWP mode, but MSR_IA32_HWP_REQUEST also allows the user to specify minimum-frequency for Quality-of-Service, | + | MSR_HWP_CAPABILITIESはMSR_IA32_HWP_REQUESTフィールドのデフォルト値を示します。 |
+ | It is displayed when no values are being written. | ||
- | MSR_IA32_HWP_REQUEST_PKG has the same capability as MSR_IA32_HWP_REQUEST, | + | スコープオプション |
- | + | ||
- | MSR_HWP_CAPABILITIES shows the default values for the fields in MSR_IA32_HWP_REQUEST. It is displayed when no values are being written. | + | |
- | + | ||
- | SCOPE OPTIONS | + | |
- | + | ||
- | -c, --cpu Operate on the MSR_IA32_HWP_REQUEST for each CPU in a CPU-list. The CPU-list may be comma-separated CPU numbers, with dash for range or the string " | + | |
+ | ? -c, --cpu | ||
+ | : CPUリストの各CPUに対しMSR_IA32_HWP_REQUESTを操作します。CPUリストはコンマ区切りの番号で、ダッシュでレンジ指定や文字列" | ||
+ | ? -p, --pkg | ||
+ | : | ||
-p, --pkg Operate on the MSR_IA32_HWP_REQUEST_PKG for each package in the package-list. The list is a string of individual package numbers separated by commas, and or ranges of package numbers separated by a dash, or the string " | -p, --pkg Operate on the MSR_IA32_HWP_REQUEST_PKG for each package in the package-list. The list is a string of individual package numbers separated by commas, and or ranges of package numbers separated by a dash, or the string " | ||
- | VALUE OPTIONS | + | 値オプション |
- | normal | + | ? //normal |
+ | : 性能とエネルギー効率が一般的なバランスのポリシーに設定します。プロセッサは、重大なエネルギー節約の潜在的な可能性に対し、いささかの性能妥協を容認します。これは大半のデスクトップやサーバマシンにとって合理的な初期設定です。" | ||
+ | ? // | ||
+ | : 最大性能ポリシーに設定します。エネルギー効率上の恩恵に対し、一切の性能上の犠牲を受け入れません。 | ||
+ | ? // | ||
+ | : 性能優先ポリシーに設定します。性能を重視しますが、エネルギー効率の恩恵を受けるために、いくつかの性能ロスを許します。 | ||
+ | ? // | ||
+ | : 性能と電力がバランスしたポリシーに設定します。これがデフォルト設定です。 | ||
+ | ? //power// | ||
+ | : 最大エネルギー効率ポリシーに設定します。エネルギー効率最大化のため、プロセッサは目に見える性能上のインパクトを受け入れます。 | ||
- | performance Set a policy for maximum performance, | + | 下表は上記設定値と実際のMSRの値の対応表です。このマッピングはLinuxカーネルのヘッダmsr-index.hで定義されています。 |
- | balance-performance | + | ^ 設定値 |
+ | | performance | ||
+ | | balance-performance | ||
+ | | normal, default | ||
+ | | balance-power | ||
+ | | power | 15 | 255 | | ||
- | balance-power Set a policy where the performance and power are balanced. This is the default. | + | MSR_IA32_HWP_REQUEST性能フィールド(--hwp-min, --hwp-max, --hwp-desired)について、その値の単位は100MHzとなり、例えば12は1200MHzを示します。 |
- | power Set a policy where the processor can accept a measurable performance impact to maximize energy efficiency. | + | フィールドオプション |
- | The following table shows the mapping from the value strings above to actual MSR values. This mapping | + | ? -a, --all 値文字列 |
+ | : 値文字列に対応する値で、すべてのEPBとEPP、およびHWPリミットフィールドを設定します。加えて、ターボモードとHWPモードが無効化されていた場合、有効にします。Thus "--all normal" | ||
+ | ? -B, -epb | ||
+ | : コア単位またはパッケージ単位でEPBを設定します。前述の表の値文字列をご覧ください。 | ||
+ | ? -d, --debug | ||
+ | : デバッグ情報の冗長度を増やします。By default x86_energy_perf_policy is silent for updates, and verbose for read-only mode. | ||
+ | ? -P, --hwp-epp | ||
+ | : コア単位またはパッケージ単位でHWP.EPPを設定しいます。前述の表の値文字列をご覧ください。 | ||
+ | ? -m, --hwp-min | ||
+ | : コア/ | ||
+ | ? -M, --hwp-max | ||
+ | : コア/ | ||
+ | ? -D, --hwp-desired | ||
+ | : request HWP ' | ||
+ | ? -w, --hwp-window | ||
+ | : specify integer number of microsec in the sliding window that HWP uses to maintain average frequency. This parameter | ||
+ | |||
+ | その他オプション | ||
- | VALUE STRING | + | ? -f, --force |
- | performance | + | : 指定値を境界値チェックをせずに書き込みます。 |
- | balance-performance 4 128 | + | ? -U, --hwp-use-pkg (0 | 1) |
- | normal, default 6 128 | + | : when used in conjunction with --cpu, indicates whether the per-CPU MSR_IA32_HWP_REQUEST should be overruled (1) or exempt (0) from per-Package MSR_IA32_HWP_REQUEST_PKG settings. The default is exempt. |
- | balance-power 8 192 | + | ? |
- | power | + | : HardWare-P-state (HWP)モードを有効にします。一度有効にすると、無効にするにはシステムの再起動が必要です。 |
+ | ? -t, --turbo-enable | ||
+ | : ターボモードを有効(1)または無効(0)にします。 | ||
+ | ? -v, --version | ||
+ | : バージョンを表示し終了します。 | ||
- | For MSR_IA32_HWP_REQUEST performance fields (--hwp-min, --hwp-max, --hwp-desired), | + | ポリシー変更を伴わないリクエストが行われた場合、デフォルト能力を含むシステムの状態の読み取りと表示を行います。 |
- | FIELD OPTIONS | + | WARNING |
- | -a, --all value-string Sets all EPB and EPP and HWP limit fields | + | 本ユーティリティはモデル固有レジスタを直接書き換えます。 |
+ | There is no locking or coordination should this utility be used to modify | ||
- | -B, --epb set EPB per-core or per-package. See value strings in the table above. | + | that intel_pstate' |
+ | intel_pstateのsysfs属性が同じMSRSにアクセスする | ||
- | -d, --debug debug increases verbosity. By default x86_energy_perf_policy is silent for updates, and verbose for read-only mode. | + | --hwp-desiredと--hwp-windowは実験的扱いと見なされる点に留意してください。将来のバージョンのLinuxは、これらフィールドに内部的にアクセスする権利を有し、ユーザースペースからのアクセスと潜在的に競合するかもしれません。 |
- | + | ||
- | -P, --hwp-epp set HWP.EPP per-core or per-package. See value strings in the table above. | + | |
- | + | ||
- | -m, --hwp-min request HWP to not go below the specified core/bus ratio. The " | + | |
- | + | ||
- | -M, --hwp-max request HWP not exceed a the specified core/bus ratio. The " | + | |
- | + | ||
- | -D, --hwp-desired | + | |
- | + | ||
- | -w, --hwp-window | + | |
- | OTHER OPTIONS | + | |
- | + | ||
- | -f, --force writes the specified values without bounds checking. | + | |
- | + | ||
- | -U, --hwp-use-pkg (0 | 1), when used in conjunction with --cpu, indicates whether the per-CPU MSR_IA32_HWP_REQUEST should be overruled (1) or exempt (0) from per-Package MSR_IA32_HWP_REQUEST_PKG settings. The default is exempt. | + | |
- | + | ||
- | -H, --hwp-enable enable HardWare-P-state (HWP) mode. Once enabled, system RESET is required to disable HWP mode. | + | |
- | + | ||
- | -t, --turbo-enable enable (1) or disable (0) turbo mode. | + | |
- | + | ||
- | -v, --version print version and exit. | + | |
- | + | ||
- | If no request to change policy is made, the default behavior is to read and display the current system state, including the default capabilities. | + | |
- | WARNING | + | |
- | This utility writes directly to Model Specific Registers. There is no locking or coordination should this utility be used to modify HWP limit fields at the same time that intel_pstate' | ||
- | |||
- | Note that --hwp-desired and --hwp-window are considered experimental. Future versions of Linux reserve the right to access these fields internally -- potentially conflicting with user-space access. | ||
EXAMPLE | EXAMPLE | ||
+ | < | ||
# sudo x86_energy_perf_policy | # sudo x86_energy_perf_policy | ||
cpu0: EPB 6 | cpu0: EPB 6 | ||
行 205: | 行 247: | ||
cpu3: HWP_REQ: min 6 max 35 des 0 epp 128 window 0x0 (0*10^0us) use_pkg 0 | cpu3: HWP_REQ: min 6 max 35 des 0 epp 128 window 0x0 (0*10^0us) use_pkg 0 | ||
cpu3: HWP_CAP: low 1 eff 8 guar 27 high 35 | cpu3: HWP_CAP: low 1 eff 8 guar 27 high 35 | ||
+ | </ | ||
NOTES | NOTES | ||
- | x86_energy_perf_policy | + | x86_energy_perf_policyはroot権限でのみ実行できます。 |
FILES | FILES | ||