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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAC288EFC3F818D23A20E01B6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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 =3D MAXFILES;
239         TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles);
240         maxprocperuid =3D (maxproc * 9) / 10;
241         maxfilesperproc =3D (maxfiles * 9) / 10;

Historical reasons?


--------------enigAC288EFC3F818D23A20E01B6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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-----

--------------enigAC288EFC3F818D23A20E01B6--




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