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 - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to