Install smemstat by entering the following commands in the terminal:
sudo apt update sudo apt install smemstat
Description:
memory usage monitoring tool
Smemstat reports the physical memory usage taking into consideration shared memory. The tool can either report a current snapshot of memory usage or periodically dump out any changes in memory.
Homepage: http://kernel.ubuntu.com/~cking/smemstat
Version: 0.01.18-1
Section: universe/admin