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
  • coreutils

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content