mmap

This is a discussion on mmap within the C++ Programming forums, part of the General Programming Boards category; can i use mmap for a ~3gb binary file .....considering that my ram is low(512mb)...

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    mmap

    can i use mmap for a ~3gb binary file .....considering that my ram is low(512mb)

  2. #2
    Student legit's Avatar
    Join Date
    Aug 2008
    Location
    UK -> Newcastle
    Posts
    156
    3 GIGS! Bloody hell what do you have in there?
    MSDN <- Programmers Haven!

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,270
    Quote Originally Posted by vispi View Post
    can i use mmap for a ~3gb binary file .....considering that my ram is low(512mb)
    Probably not, but not because of lack of RAM. The limiting factor is the amount of VM space reserved for the OS, which on 32-bit systems is commonly 2 gigabytes.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Registered User
    Join Date
    Jul 2009
    Posts
    4
    so you mean its not feasible for large files...
    if do regular disk i/o....it becomes very slow.....
    how can the process be made faster??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. mmap program
    By karthigayan in forum C Programming
    Replies: 1
    Last Post: 04-01-2009, 05:38 AM
  2. BSD mmap for shared memory - am I right?
    By sean in forum Linux Programming
    Replies: 21
    Last Post: 03-09-2009, 02:57 PM
  3. using mmap for copying large files
    By rohan_ak1 in forum C Programming
    Replies: 6
    Last Post: 05-13-2008, 09:12 AM
  4. write a word to file by using lseek and mmap
    By SoFarAway in forum C Programming
    Replies: 1
    Last Post: 03-28-2005, 01:33 PM
  5. mmap() function - Linux
    By mattbrrtt in forum Linux Programming
    Replies: 0
    Last Post: 08-09-2003, 08:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21