diff options
author | Coly Li <colyli@suse.de> | 2020-01-23 20:01:40 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-23 21:40:02 +0300 |
commit | 125d98edd11464c8e0ec9eaaba7d682d0f832686 (patch) | |
tree | 798b83e0607ec12480b4c68a641b73050c1b2b8e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d44330b7f13e7f243f7d0e0426741219708ff7de (diff) | |
download | linux-125d98edd11464c8e0ec9eaaba7d682d0f832686.tar.xz |
bcache: remove member accessed from struct btree
The member 'accessed' of struct btree is used in bch_mca_scan() when
shrinking btree node caches. The original idea is, if b->accessed is
set, clean it and look at next btree node cache from c->btree_cache
list, and only shrink the caches whose b->accessed is cleaned. Then
only cold btree node cache will be shrunk.
But when I/O pressure is high, it is very probably that b->accessed
of a btree node cache will be set again in bch_btree_node_get()
before bch_mca_scan() selects it again. Then there is no chance for
bch_mca_scan() to shrink enough memory back to slub or slab system.
This patch removes member accessed from struct btree, then once a
btree node ache is selected, it will be immediately shunk. By this
change, bch_mca_scan() may release btree node cahce more efficiently.
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions