From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f0be94ea6151b424,start X-Google-Attributes: gidfee84,public From: wrp@alpha0.bioch.virginia.edu (William R. Pearson) Subject: not enough memory for mmap() Date: 1999/10/01 Message-ID: #1/1 X-Deja-AN: 531535643 Organization: University of Virginia Newsgroups: comp.unix.osf.osf1 I am trying to use mmap() to provide better access to some large files of text records. While I am often able to memory map the files, sometimes mmap() fails with the message: : Not enough space Typically this occurs the second time I run a program to map the files, after an earlier program has succeeded. This happens despite the fact that I have 2 GB of physical memory and 4 GB of virtual memory, more than enough for the 10 - 300 Mb files I am trying to map. The program, on the same data, maps fine on an SGI with less physical and virtual memory. I have also renamed (but not removed) the /sbin/swapdefault link. I would appreciate any guidance into what might be happening. Bill Pearson