From 83f0f2bcadc7f52e4cce6a70b6c8b2cf541b0564 Mon Sep 17 00:00:00 2001 From: xmrig Date: Sat, 20 Jul 2019 23:16:23 +0700 Subject: [PATCH 1/3] Create CPU.md --- doc/CPU.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 doc/CPU.md diff --git a/doc/CPU.md b/doc/CPU.md new file mode 100644 index 000000000..7dd7a00bf --- /dev/null +++ b/doc/CPU.md @@ -0,0 +1,56 @@ +# CPU backend + +All CPU related settings contains in one `cpu` object in config file, CPU backend allow specify multiple profiles and allow switch between them without restrictions. Default auto-configuration create reasonable minimum of profiles which cover all supported algorithms. + +### Example + +Example below demonstrate all primary ideas of flexible profiles configuration: + +* `"rx/wow"` Exact match to algorithm `rx/wow`, defined 4 threads without CPU affinity. +* `"cn"` Default failback profile for all `cn/*` algorithms, defined 2 threads with CPU affinity, another failback profiles is `cn-lite`, `cn-heavy` and `rx`. +* `"cn-lite"` Default failback profile for all `cn-lite/*` algorithms, defined 2 double threads with CPU affinity. +* `"custom-profile"` Custom user defined profile. +* `"*"` Failback profile for all unhandled by other profiles algorithms. +* `"cn/r"` Exact match, alias to profile `custom-profile`. +* `"cn/0"` Exact match, disabled algorithm. + +```json +{ + "cpu": { + "enabled": true, + "huge-pages": true, + "hw-aes": null, + "priority": null, + "asm": true, + "rx/wow": [ + -1, + -1, + -1, + -1, + ], + "cn": [ + 0, + 2 + ], + "cn-lite": [ + { + "intensity": 2, + "affinity": 0 + }, + { + "intensity": 2, + "affinity": 2 + } + ], + "custom-profile": [ + 0, + 2, + ], + "*": [ + -1 + ], + "cn/r": "custom-profile", + "cn/0": false + } +} +``` From 7119e4c64cc1ab3dca646aa6eeadf5097790f22d Mon Sep 17 00:00:00 2001 From: xmrig Date: Sat, 20 Jul 2019 23:23:13 +0700 Subject: [PATCH 2/3] Update CPU.md --- doc/CPU.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/CPU.md b/doc/CPU.md index 7dd7a00bf..ba662d2c7 100644 --- a/doc/CPU.md +++ b/doc/CPU.md @@ -54,3 +54,7 @@ Example below demonstrate all primary ideas of flexible profiles configuration: } } ``` + +### Intensity +This option was known as `low_power_mode`, possible values is range from 1 to 5, for convinient if value 1 used, possible omit this option and specify CPU thread config by only one number: CPU affinity, instead of object. + From c7ba4f8f2fc24391549dc42058909a87c90be2c7 Mon Sep 17 00:00:00 2001 From: xmrig Date: Sat, 20 Jul 2019 23:33:04 +0700 Subject: [PATCH 3/3] Update CPU.md --- doc/CPU.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CPU.md b/doc/CPU.md index ba662d2c7..82c0a752c 100644 --- a/doc/CPU.md +++ b/doc/CPU.md @@ -1,6 +1,6 @@ # CPU backend -All CPU related settings contains in one `cpu` object in config file, CPU backend allow specify multiple profiles and allow switch between them without restrictions. Default auto-configuration create reasonable minimum of profiles which cover all supported algorithms. +All CPU related settings contains in one `cpu` object in config file, CPU backend allow specify multiple profiles and allow switch between them without restrictions by pool request or config change. Default auto-configuration create reasonable minimum of profiles which cover all supported algorithms. ### Example