read() and write() with 2GB buffers are truncated on RHEL

Solution Verified - Updated -

Issue

  • The implementation of write() and read() in the Linux kernel prevents one from writing/reading >2GB at a time.
  • read()/write() system calls limit buffers to (2^31 - pagesize) (2147479552 bytes on x86).

Environment

  • Red Hat Enterprise Linux 5, 6

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