]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
MDS: update the mlogger of mds in function check_memory_usage
authordongdong <tdd21151186@gmail.com>
Mon, 3 Jul 2017 15:49:36 +0000 (23:49 +0800)
committerdongdong <tdd21151186@gmail.com>
Sun, 9 Jul 2017 14:37:55 +0000 (22:37 +0800)
commit27e7cda322547b820cc5c0b5443c3dbbb4897e80
tree785d593f3f1118a5e457885d76483f297c530b0e
parentb08b485ce8b2af9e3a15fb655e694f0e8b52bcec
MDS: update the mlogger of mds in function check_memory_usage

If we don't update the mlogger here, we will encounter following bug:
suppose we first create 10000 inode in mdcache, then we trimmed it to 1000
but the "ceph daemon mds.* perf dump" will not show the correct inode number, it still shows 10000.
because for now we only update the mlogger at MDSRank::_dispatch.
check_memory_usage is called right after "mdcache trimming" at every mds tick interval
so this change will keep "ceph daemon mds.* perf dump" got the right number for "mds_mem".

Signed-off-by: dongdong tao <tdd21151186@gmail.com>
src/mds/MDCache.cc
src/mds/MDSRank.cc
src/mds/MDSRank.h