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.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian
scripts
snapcraft
.travis.yml
COPYING
Makefile
README
smemstat.8
smemstat.c

README

smemstat can output data in a JSON format using the -o option.

smemstat -o smemstat.json

An example python parser for this data is available as:
scripts/smemstat-parse.py

..to illustrate how to read and parse this data.