Following commands can be used to check total swap space
fdisk -l
Below is sample output of above command. Swap line highlighted in bold.
fdisk -l
Below is sample output of above command. Swap line highlighted in bold.
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1109 8388608 83 Linux
/dev/sda3 1109 1631 4194304 83 Linux
/dev/sda4 1631 48509 376552448 5 Extended
/dev/sda5 1631 1762 1048576 82 Linux swap / Solaris
/dev/sda6 1762 48509 375501824 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1109 8388608 83 Linux
/dev/sda3 1109 1631 4194304 83 Linux
/dev/sda4 1631 48509 376552448 5 Extended
/dev/sda5 1631 1762 1048576 82 Linux swap / Solaris
/dev/sda6 1762 48509 375501824 83 Linux
cat /proc/swaps
Below is sample output of above command.
Filename Type Size Used Priority
/dev/sda5 partition 1048572 0 -1
grep -i swap /proc/meminfo
Above grep command gives total and used swap space details as well.
Below is sample output of above command.
SwapCached: 0 kB
SwapTotal: 1048572 kB
SwapFree: 1048572 kB
Below is sample output of above command.
SwapCached: 0 kB
SwapTotal: 1048572 kB
SwapFree: 1048572 kB
Products to which Article Applies
All Linux OS’s
Search Keywords: memory disk swap swapping space utilization total swapped utilized utilize
Article Author: Tarun Boyella
No comments:
Post a Comment