Subject: Re: mmap eats memory
To: Andrew Kilpatrick <>
From: Chuck Silvers <>
List: tech-kern
Date: 02/19/2001 23:30:03
funny you should mention this just now...

I'm going to check in some changes to -current in the next few days
which will provide a way to control mmap's memory usage.
right now there is no way to prevent the problem you're seeing.


On Tue, Feb 20, 2001 at 01:24:59AM -0500, Andrew Kilpatrick wrote:
> Hi,
> I'm using mmap to provide access to very large audio
> files. (possibly 300-600 megs) When I scan through an
> entire file, the resident size of my process grows 
> and grows until the RAM on the machine is full and all 
> other processes are swapped to disk. 
> Is this normal? And is there any way of preventing 
> huge memory usage while still giving simple memory-mapped 
> access to very large files? 
> Any comments would be appreciated.
> Andrew Kilpatrick