From owner-freebsd-current Sat Oct 6 12:38:18 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 7690A37B40B for ; Sat, 6 Oct 2001 12:38:13 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f96JcDM66966 for ; Sat, 6 Oct 2001 12:38:13 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id D4C3A3808; Sat, 6 Oct 2001 12:38:12 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: tlambert2@mindspring.com Cc: Kris Kennaway , Nate Williams , Lyndon Nerenberg , Bernd Walter , current@FreeBSD.ORG Subject: Re: PATCHES for Kris Kennaway to commit In-Reply-To: <3BBF584B.BA87E7ED@mindspring.com> Date: Sat, 06 Oct 2001 12:38:12 -0700 From: Peter Wemm Message-Id: <20011006193812.D4C3A3808@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > After that, you can commit the patches to /sys/conf/param.c to > make maxfiles and maxfilesperproc tunable at boot time, and the > patches to login.c to make it possible to rebadge the "login:" > and "password:" prompts, and the patches to /sys/netinet/udp_usrreq.c > to make it so you can tune for a large number of TCP sokets > without tuning for a large number of UDP sockets. BZZZT!! Try again. peter@overcee[12:35pm]~/releng_4/sys/conf-110> ls param.c ls: param.c: No such file or directory param.c was moved to kern/subr_param.c and is fully dynamic, and already has these changes. TUNABLE_INT_DECL() should be TUNABLE_INT() and is using the old syntax. If you're going to submit stuff, please at least do us the courtesy to make sure it is relative to recent source trees. This change was made quite some time ago on both -current and RELENG_4. FYI: kern/subr_param.c: ... int maxprocperuid; /* max # of procs per user */ int maxfiles; /* sys. wide open files limit */ int maxfilesperproc; /* per-proc open files limit */ int ncallout; /* maximum # of timer events */ ... /* The following can be overridden after boot via sysctl */ maxproc = NPROC; TUNABLE_INT_FETCH("kern.maxproc", &maxproc); maxfiles = MAXFILES; TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles); maxprocperuid = maxproc - 1; maxfilesperproc = maxfiles; ... > *************** > *** 67,74 **** > #endif > int maxproc = NPROC; /* maximum # of processes */ > int maxprocperuid = NPROC-1; /* maximum # of processes per user */ > ! int maxfiles = MAXFILES; /* system wide open files lim it */ > ! int maxfilesperproc = MAXFILES; /* per-process open files lim it */ > int ncallout = 16 + NPROC + MAXFILES; /* maximum # of timer events */ > int mbuf_wait = 32; /* mbuf sleep time in ticks * / > > --- 69,78 ---- > #endif > int maxproc = NPROC; /* maximum # of processes */ > int maxprocperuid = NPROC-1; /* maximum # of processes per user */ > ! int maxfiles = 0; /* system wide open files limit */ > ! TUNABLE_INT_DECL("kern.maxfiles", MAXFILES, maxfiles); > ! int maxfilesperproc = 0; /* per-process open files limit */ > ! TUNABLE_INT_DECL("kern.maxfilesperproc", MAXFILES, maxfilesperproc); > int ncallout = 16 + NPROC + MAXFILES; /* maximum # of timer events */ > int mbuf_wait = 32; /* mbuf sleep time in ticks * / Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message