I am trying to determine if a problem I am experiencing is a bug or if
there is something I am missing. Last week I found that 15GB of my
32GB RAM was used by shared memory, causing my system to fill swap.
After about 1hr of trying to discover the reason for this, the only
thing I could find was that `df` was indicating that space was being
used by tmpfs mounted on /tmp, but I could not find files that came
anywhere close to this size.

Now I am inspecting my system after a few days of uptime and have
found that shared memory is slowly growing again. It's currently up to
almost 4GB:

jmetzmeier@localhost:/tmp $ free -m
              total        used        free      shared  buff/cache   available
Mem:           32065        9493        2185        3920       20386       18204
Swap:           8191        2114        6077


When I check df, what's reported as used on /tmp is pretty close to my
shared memory usage:

jmetzmeier@localhost:/tmp $ df -hT /tmp
Filesystem     Type   Size  Used Avail Use% Mounted on
tmpfs          tmpfs   16G  3.5G   13G  22% /tmp

However, `du` does not show 3.5GB of files inside:

jmetzmeier@localhost:/tmp $ sudo du -sh ./
32K     ./

Does anyone know what could be happening here? Does writing a file to
tmpfs and then deleting it cause the tmpfs to retain that allocated
memory until reboot?

My system is running Fedora 34. I have ensured nothing is mounted over
top of /tmp and hiding files.

Thanks,
Jordan Metzmeier
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to