Different output from "swapon" versus "df -h" for swap
Issue
- Different output from
swaponversusdf -hfor swap -
When using
df -hwhy am I getting 5.9GB when I allocated 12G to a swap partition?tmpfs 5.9G 0 5.9G 0% /dev/shm -
I see 12G when I use
free -m,/proc/swapsorswapon -s
Environment
- Red Hat Enterprise Linux 5.4
- coreutils
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.