Hi all, ![]()
I wonder if anyone could help me with a curious problem.
I´ve just installed smem (“Report memory usage with shared memory divided proportionally”) for occasionally taking a closer look at the RAM.
- https://manpages.ubuntu.com/manpages/jammy/man8/smem.8.html
- https://www.howtogeek.com/773161/easily-understand-your-linux-ram-usage-with-smem/ # pretty good introduction to the topic
Running smem however doesn´t seem to provide the correct values. All the values seem to be much too low. ![]()
Example: # I´ve got 4 GB of RAM
smem -k -t
( -k: sizes are shown in megabytes, gigabytes, and so on.)
( -t: adds a totals line)
yields the folowing totals output:
103.0M (swap) 221.3M (USS) 286.6M (PSS) 922.6M (RSS)
whereas with free I get:
env LANG=en_GB:en free -m
total used free shared buff/cache available
Mem: 3850 1626 610 395 1613 1564
Swap: 1023 137 886
Another example: # firefox is running
smem -c pss -P firefox -k -t | tail -n 1
(quick way to find out the RAM consumption of a certain program and its child processes)
yields:
7.2M
…which seems far too low bearing in mind conky says firefox uses 12 percent of RAM (4 GB in total).
So this should be arount 480 MB. ![]()
Has anyone got any ideas what I might be doing wrong here ![]()
Thanks a lot for your help in advance.
Many greetings from Rosika ![]()