]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: use 'no workqueue' options with dmcrypt
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 8 Nov 2023 16:43:46 +0000 (16:43 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Fri, 26 Jan 2024 21:05:30 +0000 (22:05 +0100)
commit0985e201342fa53c014a811156aed661b4b8f994
treed5cbc274ced58638e9e0135576eff3d43d07ec0f
parent37d5d931b0be2231b571c34fab61d106946b8944
ceph-volume: use 'no workqueue' options with dmcrypt

CloudFlare engineers made some testing and realized that using
workqueues with encryption on flash devices has a bad effect.

See [1] for details.

With this patch it will make ceph-volume call crypsetup with
`--perf-no_read_workqueue` and `--perf-no_write_workqueue` options
when the device is not a rotational.

[1] https://blog.cloudflare.com/speeding-up-linux-disk-encryption/

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
Co-Authored-by: Stefan Kooman <stefan@kooman.org>
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
ceph.spec.in
src/ceph-volume/ceph_volume/__init__.py
src/ceph-volume/ceph_volume/devices/lvm/activate.py
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/devices/raw/common.py
src/ceph-volume/ceph_volume/util/arg_validators.py
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/encryption.py