> > Hmm. I remember using a facility like this on the old vaxen. The
> > glitch was if I mapped an entire satellite image (+-400megabytes) the
> > page tables used up so much physical memory that the thing started
> > thrashing again. (There we just settled down to using two 32k buffers
> > and doing NO_WAIT read/writes.)
>
> 400M mmap()-ed file takes ~400K page tables (for every 4K page there is a
> 4 byte descriptor). So this shouldnt be an issue even on low-end machines.
Can kernel use Pentium 4M pages, if process tries to map continuous
large chunks of memory?
-- Best regards, -- Boris.