On Thu, Jun 03, 2010 at 10:26:57AM -0400, William Schaub wrote:
| I may not want every process on the system sucking up 1GB or more
| but I sure want to be able to work with more memory in a single
| process if I need to. (what if you want to mmap a file larger than
| 1GB?)

Well .. then you mmap a file larger than 1GB. What of it ? Have you
tried mmap(2)'ing a file larger than 1GB ? I'm guessing you haven't...

For fun (no profit) I just mmap'ed a file that is larger than 8GB on
my amd64 workstation (MAXDSIZ is 8G on amd64, ulimit was the default
for staff, 524288K). I could read each and every byte from this file
(takes ~3.5 minutes and really thrashes my lowly SATA disk).

So, yeah, you can mmap files bigger than MAXDSIZ just fine.

Cheers,

Paul 'WEiRD' de Weerd

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                http://www.undeadly.org/                 

Reply via email to