OSDN Git Service

rbd: set io_min, io_opt and discard_granularity to alloc_size
authorIlya Dryomov <idryomov@gmail.com>
Fri, 15 Mar 2019 13:50:04 +0000 (14:50 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 18 Mar 2019 19:30:01 +0000 (20:30 +0100)
commit16d80c54ad42c573a897ae7bcf5a9816be54e6fe
treec2ff54b1c6e1f6867fa25a6bc201dffe77c82a8e
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
rbd: set io_min, io_opt and discard_granularity to alloc_size

Now that we have alloc_size that controls our discard behavior, it
doesn't make sense to have these set to object (set) size.  alloc_size
defaults to 64k, but because discard_granularity is likely 4M, only
ranges that are equal to or bigger than 4M can be considered during
fstrim.  A smaller io_min is also more likely to be met, resulting in
fewer deferred writes on bluestore OSDs.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c