* not enough memory for mmap()
@ 1999-10-01 4:00 William R. Pearson
1999-10-02 4:00 ` Peter S. Shenkin
0 siblings, 1 reply; 2+ messages in thread
From: William R. Pearson @ 1999-10-01 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: not enough memory for mmap()
1999-10-01 4:00 not enough memory for mmap() William R. Pearson
@ 1999-10-02 4:00 ` Peter S. Shenkin
0 siblings, 0 replies; 2+ messages in thread
From: Peter S. Shenkin @ 1999-10-02 4:00 UTC (permalink / raw)
William R. Pearson <wrp@alpha0.bioch.virginia.edu> wrote in message
news:kjogejusgd.fsf_-_@alpha0.bioch.virginia.edu...
>
> 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.
How about "limit datasize unlimited" (assuming csh; ulimit otherwise).
-P.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-02 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-01 4:00 not enough memory for mmap() William R. Pearson
1999-10-02 4:00 ` Peter S. Shenkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox