2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/Documentation/admin-guide/device-mapper
LongPing Wei 5c5d0d7050 dm-verity: support block number limits for different ioprio classes
Calling verity_verify_io in bh for IO of all sizes is not suitable for
embedded devices. From our tests, it can improve the performance of 4K
synchronise random reads.
For example:
./fio --name=rand_read --ioengine=psync --rw=randread --bs=4K \
 --direct=1 --numjobs=8 --runtime=60 --time_based --group_reporting \
 --filename=/dev/block/mapper/xx-verity

But it will degrade the performance of 512K synchronise sequential reads
on our devices.
For example:
./fio --name=read --ioengine=psync --rw=read --bs=512K --direct=1 \
 --numjobs=8 --runtime=60 --time_based --group_reporting \
 --filename=/dev/block/mapper/xx-verity

A parameter array is introduced by this change. And users can modify the
default config by /sys/module/dm_verity/parameters/use_bh_bytes.

The default limits for NONE/RT/BE is set to 8192.
The default limits for IDLE is set to 0.

Call verity_verify_io directly when verity_end_io is not in hardirq.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2025-03-28 11:32:55 +01:00
..
cache-policies.rst Documentation: admin-guide: correct spelling 2023-02-02 11:04:42 -07:00
cache.rst
delay.rst dm delay: enhance kernel documentation 2024-08-21 13:12:12 +02:00
dm-clone.rst dm: add clone target 2019-09-12 09:32:31 -04:00
dm-crypt.rst dm-crypt: Document integrity_key_size option. 2025-02-03 14:10:10 +01:00
dm-dust.rst dm dust: add interface to list all badblocks 2020-07-20 11:17:41 -04:00
dm-ebs.rst Documentation: admin-guide: correct spelling 2023-02-02 11:04:42 -07:00
dm-flakey.rst dm flakey: introduce random_read_corrupt and random_write_corrupt options 2023-06-16 18:24:13 -04:00
dm-ima.rst dm ima: update dm documentation for ima measurement support 2021-08-20 16:07:37 -04:00
dm-init.rst dm init: add dm-mod.waitfor to wait for asynchronously probed block devices 2022-12-02 17:37:45 -05:00
dm-integrity.rst dm-integrity: Document Inline mode for storing integrity data 2025-02-03 14:10:10 +01:00
dm-io.rst
dm-log.rst
dm-queue-length.rst
dm-raid.rst Documentation: fix multiple typos found in the admin-guide subdirectory 2020-12-08 10:27:56 -07:00
dm-service-time.rst
dm-uevent.rst
dm-zoned.rst Documentation: admin-guide: correct spelling 2023-02-02 11:04:42 -07:00
era.rst
index.rst dm vdo: add vdo documentation to device-mapper index 2024-02-20 13:43:18 -05:00
kcopyd.rst
linear.rst
log-writes.rst
persistent-data.rst
snapshot.rst
statistics.rst
striped.rst
switch.rst
thin-provisioning.rst
unstriped.rst Documentation: admin-guide: correct spelling 2023-02-02 11:04:42 -07:00
vdo-design.rst dm vdo: add vio life cycle details to design doc 2024-02-20 13:43:18 -05:00
vdo.rst dm vdo: add dmsetup message for returning configuration info 2024-08-21 13:05:56 +02:00
verity.rst dm-verity: support block number limits for different ioprio classes 2025-03-28 11:32:55 +01:00
writecache.rst dm writecache: count number of blocks discarded, not number of discard bios 2022-07-14 15:54:46 -04:00
zero.rst