Michael C. Toren on 21 Nov 2003 15:08:02 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Why am I running out of memory?


On Fri, Nov 21, 2003 at 03:00:10PM -0500, Walt Mankowski wrote:
> mmap2(NULL, 737284096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
> 
> That happens 4 times, and then it aborts.
> 
> Anyone have any idea why I can't get to all that swap space?

If you're going to just end up using swap space anyway, perhaps it would be
best to create a 76 gig file full of 0's, and request mmap to map the file
rather than mapping memory with MAP_ANONYMOUS?

-mct
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug