diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2014-01-14 01:13:05 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-01-15 05:23:03 +0100 |
commit | 55b082e614e219fb5199a6f93e648ed35d3c96d5 (patch) | |
tree | a2707e62bdd914e9651e78cde6cb55a5f0b88d7f /drivers/md/dm-sysfs.c | |
parent | dm snapshot: use dm-bufio (diff) | |
download | linux-55b082e614e219fb5199a6f93e648ed35d3c96d5.tar.xz linux-55b082e614e219fb5199a6f93e648ed35d3c96d5.zip |
dm snapshot: use dm-bufio prefetch
This patch modifies dm-snapshot so that it prefetches the buffers when
loading the exceptions.
The number of buffers read ahead is specified in the DM_PREFETCH_CHUNKS
macro. The current value for DM_PREFETCH_CHUNKS (12) was found to
provide the best performance on a single 15k SCSI spindle. In the
future we may modify this default or make it configurable.
Also, introduce the function dm_bufio_set_minimum_buffers to setup
bufio's number of internal buffers before freeing happens. dm-bufio may
hold more buffers if enough memory is available. There is no guarantee
that the specified number of buffers will be available - if you need a
guarantee, use the argument reserved_buffers for
dm_bufio_client_create.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-sysfs.c')
0 files changed, 0 insertions, 0 deletions