LXC wrong memory usage stat

sasha181

Member
Apr 5, 2019
3
0
21
43
Can you please tell me how to disable the mounting of container directories in shared memory?
 

Attachments

  • e59bdfc332.png
    e59bdfc332.png
    76.7 KB · Views: 29
Which distribution are you using? The way the memory information that get picked up by the tools varies, and not all are really container aware. The content of /proc/meminfo and what can be found in /sys/fs/cgroup/memory is the more relevant content for that. And the memory management of containers is different and sometimes hard to understand.

About disabling, that matters very much on your distribution. You might want to mask the corresponding mount units in systemd, thought I'm unsure if there might not be significant side issues to that, especially with respect to performance. Why do you want to write bigger files into your /run file structure in the first place?
 
  • Like
Reactions: oguz