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

From: Stephen C. Tweedie (
Date: Sun Sep 03 2000 - 15:06:49 EST


On Thu, Aug 31, 2000 at 01:42:28PM -0600, Evan Jones wrote:
> I hope this has not been discussed before. I think I have searched the
> archive fairly exhaustively. This issue may also no longer exist on the
> 2.4 kernel series because I have not tested it on that kernel.
> I have been experimenting with a web server (thttpd) which uses a cache
> of mmaped files to serve requests. It opens a file, mmaps it then closes
> it to avoid running into the perprocess file descriptor limits. Instead,
> 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.

Then increase the system-wide limit in /proc/sys/fs/file-max (just
echo a new value there).

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