Date: Wed, 16 Aug 2000 15:56:31 +0300 From: Roman Shterenzon <roman@harmonic.co.il> To: <freebsd-stable@freebsd.org> Message-ID: <966430591.399a8f7f98837@webmail.harmonic.co.il>
next in thread | raw e-mail | index | archive | help
Hi, In the shipping param.c file the maxfilesperproc is made equal to overall maxfiles, e.g. kern.maxfiles=kern.maxfilesperproc. This creates a possibility of DoS, or I'm missing something? Perhaps it's better to leave some minimal window for other processes? Or even make it fraction of maxfiles? --- /usr/src/sys/conf/param.c Mon Aug 14 15:35:51 2000 +++ param.c Mon Aug 14 18:33:45 2000 @@ -68,7 +68,7 @@ int maxproc = NPROC; /* maximum # of processes */ int maxprocperuid = NPROC-1; /* maximum # of processes per user */ int maxfiles = MAXFILES; /* system wide open files limit */ -int maxfilesperproc = MAXFILES; /* per-process open files limit */ +int maxfilesperproc = MAXFILES - 40; /* per-process open files limit */ int ncallout = 16 + NPROC + MAXFILES; /* maximum # of timer events */ int mbuf_wait = 32; /* mbuf sleep time in ticks */ --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?966430591.399a8f7f98837>