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
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
