Re: Newbie question: mmap() and file descriptor limits

From: Alexander Viro (
Date: Sun Sep 03 2000 - 15:12:50 EST

On Sun, 3 Sep 2000, Stephen C. Tweedie wrote:

> > it ends up running into the system file descriptor limits which makes
> > the system unusable for anything but the web server process. FreeBSD
> > does it differenly. Files can be mmaped and do not count towards the
> > limit.

FreeBSD unmaps upon close(). Which is a bogus behaviour. If you want them
unmapped - call munmap() explicitly.
> Then increase the system-wide limit in /proc/sys/fs/file-max (just
> echo a new value there).

Depends on what he really wants...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:16 EST