Why does /proc/swaps show incorrect value of size if swap is greater than 4TiB?

Solution Verified - Updated -

Issue

  • Why does /proc/swaps show incorrect value of size if swap is greater than 4TiB?
# free
              total        used        free      shared  buff/cache   available
Mem:       65550584     4263592    60050176       21484     1236816    60721832
Swap:    4294971388           0  4294971388

# cat /proc/swaps 
Filename                Type        Size    Used    Priority
/dev/dm-1           partition       4092        0      -2                                                       

Environment

  • Any RHEL release.

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