RHEL5.1: Issue on creating OR loading file > 2GB using C/C++
I currently encounter problems as the topic above described. Previously, I run a piece of code/program on RHEL3.0, and everything was fine. what the code doing is creating a 20GB of memory then save to a file. It can also load the 20GB file into memory.
Now, I ported this code to RHEL5.1. When I try to perform the same operations, it can create 20GB of memory (see it from the virtual and resident memory from "top" command), but it can only save 2.0GB of file only. No error message at all. I'm wondering anyone encounter this problem before?
I did include the macro for large file support and set the macro bit offset = 64. I use the following functions:
Anyone there has the same experience and how you solve it?