Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2008 20:41:32 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   MAXFILES in subr_param.c
Message-ID:  <ghjt9l$hg3$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

I'm looking at kern/subr_param.c:

 72 #ifndef MAXFILES
 73 #define MAXFILES (maxproc * 2)
 74 #endif



Shouldn't this be at least maxproc*3, for stdin,out,err for every proc?

Also, it looks like MAXFILES is used only once, and in a bit funny way:

238         maxfiles = MAXFILES;
239         TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles);
240         maxprocperuid = (maxproc * 9) / 10;
241         maxfilesperproc = (maxfiles * 9) / 10;

Historical reasons?


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk9eHIACgkQldnAQVacBciUbgCfX6chQ/3yf8+TeRRYLqgHzxqz
+BYAoLanLIAbmknErIpZHECZD5eAddfV
=Oauk
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ghjt9l$hg3$1>