LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 08-03-2008, 10:31 AM   #1
tcnew1
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.
 
  


Reply


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 06:58 PM
RHEL5 just recognize 2GB after upgrade to 8GB RAM phuongtqh Red Hat 10 09-14-2009 03:27 PM
Creating a test/junk file around 2gb jeriryan Red Hat 4 06-11-2008 04:21 AM
ReiserFS 2Gb maximum file size limit? Cannot copy files bigger than 2Gb ihtus Suse/Novell 2 10-26-2007 09:21 AM
Creating files larger than 2GB Nerox Programming 11 08-03-2007 06:09 PM


All times are GMT -5. The time now is 03:47 AM.

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