Different output from "swapon" versus "df -h" for swap

Solution Unverified - Updated -

Issue

  • Different output from swapon versus df -h for swap
  • When using df -h why 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/swaps or swapon -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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.