lsm_file_cache memory usage high

Asked by norman shen

Hello,

I have found an unusual large amount of memory usage by `lsm_file_cache` which seems to be patched back to ubuntu 18.04.

after running slabtop, it is showing

1210374840 1210374840 100% 0.02K 7119852 170 28479408K lsm_file_cache

which should imply that 20GB is used by lsm_file_cache while the virtual machine only gets 40GB..

the virtual machine has been running for 443 days

root@mgt05:~# w
 08:43:50 up 475 days,

and by the time the command executed, there are around 1million files opened

So what should I do if I want to release some of this slab? thank you.

Best,
Norman

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
norman shen (jshen28) said (last edit ):
#1

fyi, looks like system is fragmented?

~# cat /proc/buddyinfo
Node 0, zone DMA 1 0 0 0 2 1 1 0 1 1 3
Node 0, zone DMA32 2386 1214 2294 780 877 433 265 33 0 0 0
Node 0, zone Normal 4723 7684 1924 118 0 0 0 0 0 0 0

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Is this still the same system and kernel version as question https://answers.launchpad.net/ubuntu/+question/696014 ?

Revision history for this message
norman shen (jshen28) said :
#3

Ah, yes it is。。 Sorry, I've searched for it before posting this...

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Ok, sorry also from my side, I still have no idea what to answer for your questions (except recommending a reboot, what I guess is something that you want to avoid).

Revision history for this message
norman shen (jshen28) said :
#5

do you think a compact_memory could work?

Can you help with this problem?

Provide an answer of your own, or ask norman shen for more information if necessary.

To post a message you must log in.