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: signature.asc
Description: OpenPGP digital signature

Reply via email to