Share your knowledge at the LQ Wiki.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 08-03-2008, 11:31 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Question RHEL5.1: Issue on creating OR loading file > 2GB using C/C++

Hi all,

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:
1. open64(...)
2. write(...)
3. read(...)

Anyone there has the same experience and how you solve it?

Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating RHEL5 cdrom for 64 bit machine VG1 Linux - Enterprise 6 04-13-2011 07:58 PM
RHEL5 just recognize 2GB after upgrade to 8GB RAM phuongtqh Red Hat 10 09-14-2009 04:27 PM
Creating a test/junk file around 2gb jeriryan Red Hat 4 06-11-2008 05:21 AM
ReiserFS 2Gb maximum file size limit? Cannot copy files bigger than 2Gb ihtus SUSE / openSUSE 2 10-26-2007 10:21 AM
Creating files larger than 2GB Nerox Programming 11 08-03-2007 07:09 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration