1.
top
2.
cat /proc/meminfo
nvidia@tegra-ubuntu:~/zrj/laneseg_TRT$ cat /proc/meminfo MemTotal: 8042784 kB MemFree: 4201184 kB MemAvailable: 5437588 kB Buffers: 59996 kB Cached: 1162028 kB SwapCached: 0 kB Active: 1912868 kB Inactive: 866116 kB Active(anon): 1560584 kB Inactive(anon): 22472 kB Active(file): 352284 kB Inactive(file): 843644 kB Unevictable: 32 kB Mlocked: 32 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 172 kB Writeback: 184 kB AnonPages: 1557048 kB Mapped: 469944 kB Shmem: 26040 kB Slab: 130796 kB SReclaimable: 82980 kB SUnreclaim: 47816 kB KernelStack: 9808 kB PageTables: 17076 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4021392 kB Committed_AS: 5392076 kB VmallocTotal: 258998208 kB VmallocUsed: 0 kB VmallocChunk: 0 kB NvMapMemFree: 23568 kB NvMapMemUsed: 697160 kB CmaTotal: 65536 kB CmaFree: 48120 kB
3.
sysstat - tools.
how to install :
sudo apt install sysstat
how to use:
eg: sar -r -u 1 500
or sar -r -d -n DEV -u 1 500
end