Follow these steps to capture an interesting memory status from /proc/meminfo:
- Obtain basic memory states with the following command:
grep -A3 MemTotal /proc/meminfo
- Execute this command to extract dirty memory buffers and pending writes:
grep -A1 Dirty /proc/meminfo
- View the state of various memory caches with the following command:
grep -A1 Active /proc/meminfo
- Show swap usage with the following command:
grep Swap /proc/meminfo