[lustre-devel] [PATCH 440/622] lustre: llite: Mark lustre_inode_cache as reclaimable
James Simmons
jsimmons at infradead.org
Thu Feb 27 13:15:08 PST 2020
From: Jacek Tomaka <jacek.tomaka at poczta.fm>
This is required for proper kernel memory available accounting.
Without it memory allocated to lustre_inode_cache appears as
SUnreclaim where in reality it should apper as SReclaimable.
This affect MemAvailable as well (it is lower than it should be).
WC-bug-id: https://jira.whamcloud.com/browse/LU-12313
Lustre-commit: b09e63db24e5 ("LU-12313 llite: Mark lustre_inode_cache as reclaimable")
Signed-off-by: Jacek Tomaka <jacek.tomaka at poczta.fm>
Reviewed-on: https://review.whamcloud.com/35790
Reviewed-by: Wang Shilong <wshilong at ddn.com>
Reviewed-by: Neil Brown <neilb at suse.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/llite/super25.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/lustre/llite/super25.c b/fs/lustre/llite/super25.c
index afd51a6..38d60b0 100644
--- a/fs/lustre/llite/super25.c
+++ b/fs/lustre/llite/super25.c
@@ -211,7 +211,11 @@ static int __init lustre_init(void)
rc = -ENOMEM;
ll_inode_cachep = kmem_cache_create("lustre_inode_cache",
sizeof(struct ll_inode_info), 0,
- SLAB_HWCACHE_ALIGN | SLAB_ACCOUNT,
+ SLAB_HWCACHE_ALIGN |
+ SLAB_RECLAIM_ACCOUNT |
+ SLAB_ACCOUNT |
+ SLAB_MEM_SPREAD |
+ SLAB_ACCOUNT,
NULL);
if (!ll_inode_cachep)
goto out_cache;
--
1.8.3.1
More information about the lustre-devel
mailing list