|
|
| version 1.4, 2004/04/21 06:09:52 | version 1.5, 2004/05/03 16:06:26 |
|---|---|
| Line 66 | Line 66 |
| #ifndef NSFBUFS | #ifndef NSFBUFS |
| #define NSFBUFS (512 + maxusers * 16) | #define NSFBUFS (512 + maxusers * 16) |
| #endif | #endif |
| #ifndef MAXPOSIXLOCKSPERUID | |
| #define MAXPOSIXLOCKSPERUID (maxusers * 64) /* Should be a safe value */ | |
| #endif | |
| int hz; | int hz; |
| int stathz; | int stathz; |
| Line 78 int maxprocperuid; /* max # of procs p | Line 81 int maxprocperuid; /* max # of procs p |
| int maxfiles; /* system wide open files limit */ | int maxfiles; /* system wide open files limit */ |
| int maxfilesrootres; /* descriptors reserved for root use */ | int maxfilesrootres; /* descriptors reserved for root use */ |
| int maxfilesperproc; /* per-proc open files limit */ | int maxfilesperproc; /* per-proc open files limit */ |
| int maxposixlocksperuid; /* max # POSIX locks per uid */ | |
| int ncallout; /* maximum # of timer events */ | int ncallout; /* maximum # of timer events */ |
| int mbuf_wait = 32; /* mbuf sleep time in ticks */ | int mbuf_wait = 32; /* mbuf sleep time in ticks */ |
| int nbuf; | int nbuf; |
| Line 122 init_param1(void) | Line 126 init_param1(void) |
| maxbcache = VM_BCACHE_SIZE_MAX; | maxbcache = VM_BCACHE_SIZE_MAX; |
| #endif | #endif |
| TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache); | TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache); |
| maxtsiz = MAXTSIZ; | maxtsiz = MAXTSIZ; |
| TUNABLE_QUAD_FETCH("kern.maxtsiz", &maxtsiz); | TUNABLE_QUAD_FETCH("kern.maxtsiz", &maxtsiz); |
| dfldsiz = DFLDSIZ; | dfldsiz = DFLDSIZ; |
| Line 173 init_param2(int physpages) | Line 176 init_param2(int physpages) |
| maxfilesperproc = (maxfiles * 9) / 10; | maxfilesperproc = (maxfiles * 9) / 10; |
| maxfilesrootres = maxfiles / 20; | maxfilesrootres = maxfiles / 20; |
| maxposixlocksperuid = MAXPOSIXLOCKSPERUID; | |
| TUNABLE_INT_FETCH("kern.maxposixlocksperuid", &maxposixlocksperuid); | |
| /* | /* |
| * Cannot be changed after boot. Unless overriden, NSFBUFS is based | * Cannot be changed after boot. Unless overriden, NSFBUFS is based |
| * on maxusers and NBUF is typically 0 (auto-sized later). | * on maxusers and NBUF is typically 0 (auto-sized later). |