diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-02-13 08:27:08 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-02-16 11:11:15 -0500 |
commit | 0f5d8e6ee758f7023e4353cca75d785b2d4f6abe (patch) | |
tree | 836041a22c3b5f5eb6151f27b7b0dec1714ac5fd /Documentation | |
parent | dc2676210c425ee8e5cb1bec5bc84d004ddf4179 (diff) |
dm crypt: add 'submit_from_crypt_cpus' option
Make it possible to disable offloading writes by setting the optional
'submit_from_crypt_cpus' table argument.
There are some situations where offloading write bios from the
encryption threads to a single thread degrades performance
significantly.
The default is to offload write bios to the same thread because it
benefits CFQ to have writes submitted using the same IO context.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/device-mapper/dm-crypt.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/device-mapper/dm-crypt.txt b/Documentation/device-mapper/dm-crypt.txt index 571f24ffc91c..ad697781f9ac 100644 --- a/Documentation/device-mapper/dm-crypt.txt +++ b/Documentation/device-mapper/dm-crypt.txt | |||
@@ -51,7 +51,7 @@ Parameters: <cipher> <key> <iv_offset> <device path> \ | |||
51 | Otherwise #opt_params is the number of following arguments. | 51 | Otherwise #opt_params is the number of following arguments. |
52 | 52 | ||
53 | Example of optional parameters section: | 53 | Example of optional parameters section: |
54 | 2 allow_discards same_cpu_crypt | 54 | 3 allow_discards same_cpu_crypt submit_from_crypt_cpus |
55 | 55 | ||
56 | allow_discards | 56 | allow_discards |
57 | Block discard requests (a.k.a. TRIM) are passed through the crypt device. | 57 | Block discard requests (a.k.a. TRIM) are passed through the crypt device. |
@@ -68,6 +68,14 @@ same_cpu_crypt | |||
68 | The default is to use an unbound workqueue so that encryption work | 68 | The default is to use an unbound workqueue so that encryption work |
69 | is automatically balanced between available CPUs. | 69 | is automatically balanced between available CPUs. |
70 | 70 | ||
71 | submit_from_crypt_cpus | ||
72 | Disable offloading writes to a separate thread after encryption. | ||
73 | There are some situations where offloading write bios from the | ||
74 | encryption threads to a single thread degrades performance | ||
75 | significantly. The default is to offload write bios to the same | ||
76 | thread because it benefits CFQ to have writes submitted using the | ||
77 | same context. | ||
78 | |||
71 | Example scripts | 79 | Example scripts |
72 | =============== | 80 | =============== |
73 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk | 81 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk |