summaryrefslogtreecommitdiff
path: root/fs/locks.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2019-06-28 19:59:52 +0800
committerJens Axboe <axboe@kernel.dk>2019-06-28 07:39:17 -0600
commit1df3877ff6a4810054237c3259d900ded4468969 (patch)
tree487bca56242579ce633defb2bc524fcca96d6e55 /fs/locks.c
parenta231f07a5fe30a522b402011c5190cb936641a66 (diff)
bcache: shrink btree node cache after bch_btree_check()
When cache set starts, bch_btree_check() will check all bkeys on cache device by calculating the checksum. This operation will consume a huge number of system memory if there are a lot of data cached. Since bcache uses its own mca cache to maintain all its read-in btree nodes, and only releases the cache space when system memory manage code starts to shrink caches. Then before memory manager code to call the mca cache shrinker callback, bcache mca cache will compete memory resource with user space application, which may have nagive effect to performance of user space workloads (e.g. data base, or I/O service of distributed storage node). This patch tries to call bcache mca shrinker routine to proactively release mca cache memory, to decrease the memory pressure of system and avoid negative effort of the overall system I/O performance. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions