32-bit RHEL6 kernel sees only 4k of swap, or encounters a swapon failure

Solution Verified - Updated -

Issue

  • 32-bit RHEL6 kernel registers swap space of 4 KiB only regardless of the actual swap area size.
  • 32-bit RHEL6 kernel encounters "Invalid argument" (-EINVAL) error from swapon command (systemcall).

Environment

  • Red Hat Enterprise Linux 6 (32-bit only)
  • kernel version 2.6.32-754.3.5 and newer

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