summaryrefslogtreecommitdiff
path: root/sys/conf/param.c
AgeCommit message (Collapse)Author
2022-07-23make MAXLWP a real option that triggers rebuilds properly.mrg
2020-11-12Set a better default for MAXFILES on larger RAM machines if notsimonb
otherwise specified the kernel config file. Arbitary numbers are 20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or more. TODO: Adjust this and other values totally dynamically.
2019-04-09defparam all of the config variables associated with SYSV IPC stuff.pgoyette
The variables were removed from sys/conf/param.c and moved into the SYSV IPC code, but config options were never propagated via any opt_* file. This should fix an issue reported on netbsd-users list from Dima Veselov. Note that this does not address other parameters included in that report, including CHILD_MAX and NOFILE; this commit only affects items related to the SYSV IPC code. Also note that this does not affect non-built-in sysv_ipc modules, for which you need to update the Makefile to use any non-standard config values - just like any other non-built-in modules which have config params. XXX Pull-up to -8 and -8-0 XXX Note that there are a couple of panic() calls in msginit() which XXX really should be changed to simple printf() and then result in XXX msginit failure. Unfortunately msginit() currently doesn't return XXX a value so we cannot indicate failure to the caller. I will fix XXX this is a future commit.
2015-11-09Whether or not the semaphore code is loaded as a module or built-in, itspgoyette
sysctl data belongs with the module code. Move it from kern/init_sysctl.c to kern/uipc_sem.c While here, add a new sysctl variable kern.posix.semcnt (current count of semaphores) to complement the existing kern.posix.semmax (maximum number of semaphores).
2015-08-24to garnish, dust with _KERNEL_OPTpooka
2015-05-13Create a new sysv_ipc module to contain the SYSVSHM, SYSVSEM, andpgoyette
SYSVMSG options. Move associated variables out of param.c and into the module's source file.
2012-06-09Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. Therechristos
is a global sysctl kern.maxlwp to control this, which is by default 2048. The first lwp of each process or kernel threads are not counted against the limit. To show the current resource usage per user, I added a new sysctl that dumps the uidinfo structure fields.
2010-02-08Remove separate mb_map. The nmbclusters is computed at boot time basedjoerg
on the amount of physical memory and limited by NMBCLUSTERS if present. Architectures without direct mapping also limit it based on the kmem_map size, which is used as backing store. On i386 and ARM, the maximum KVA used for mbuf clusters is limited to 64MB by default. The old default limits and limits based on GATEWAY have been removed. key_registered_sb_max is hard-wired to a value derived from 2048 clusters.
2009-05-03Move dovfsusermount to secmodel_bsd44, where it really belongs.elad
The secmodel code now creates the same knob in two places: both under the secmodel itself, as well as the widely known location. Mailing list references: http://mail-index.netbsd.org/source-changes/2009/05/02/msg220641.html http://mail-index.netbsd.org/tech-kern/2009/05/03/msg005015.html
2009-05-02Move dovfsusermount from vfs_syscalls.c to param.c: secmodel bsd44pooka
depends on it and we can't isolate it in vfs. (no, it doesn't really belong in param.c, but I couldn't figure out a better place for it)
2009-03-06Remove SHMMAXPGS from all kernel configs. Dynamically compute thejoerg
initial limit as 1/4 of the physical memory. Ensure the limit is at least 1024 pages, the old default on most platforms.
2008-11-12Allow the POSIX semaphore code to be loaded as a module.ad
2008-07-12Disable INCLUDE_CONFIG_FILE if compiling with PCC, since PCC cannotgmcgarry
handle 80KB string literals. Documented as hack.
2008-07-02Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.ad
2008-03-27ALIGNBYTES + 1, not ALIGNBYTES in previous.ad
2008-03-27Introduce COHERENCY_UNIT/coherency_unit as proposed on tech-kern.ad
2008-03-15Add a 'maxcpus' global.ad
2007-12-26Merge more changes from vmlocking2, mainly:ad
- Locking improvements. - Use pool_cache for more items.
2007-05-17merge yamt-idlelwp branch. asked by core@. some ports still needs work.yamt
from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
2007-01-20Remove long unused 'ncallout'.ad
2005-12-21defparam NMBCLUSTERS.yamt
2005-12-11merge ktrace-lwp.christos
2004-09-27Disable autonicetime. As discusses in tech-kern.christos
2004-07-01avoid divide-by-zero in adjtime1() in the case of HZ > 6000.yamt
2004-07-01defparam HZ.yamt
2003-12-31s/NBPG/PAGE_SIZE/ in a comment.martin
From Jeff Ito in PR kern/23935.
2003-12-30Replace the traditional buffer memory management -- based on fixed per bufferpk
virtual memory reservation and a private pool of memory pages -- by a scheme based on memory pools. This allows better utilization of memory because buffers can now be allocated with a granularity finer than the system's native page size (useful for filesystems with e.g. 1k or 2k fragment sizes). It also avoids fragmentation of virtual to physical memory mappings (due to the former fixed virtual address reservation) resulting in better utilization of MMU resources on some platforms. Finally, the scheme is more flexible by allowing run-time decisions on the amount of memory to be used for buffers. On the other hand, the effectiveness of the LRU queue for buffer recycling may be somewhat reduced compared to the traditional method since, due to the nature of the pool based memory allocation, the actual least recently used buffer may release its memory to a pool different from the one needed by a newly allocated buffer. However, this effect will kick in only if the system is under memory pressure.
2003-10-30there is no SHMMMNIdrochner
2003-10-21Cache the "adjusted" value of sb_max when sb_max is changed, in orderthorpej
to avoid doing quad math in sbreserve(). Change suggested by Simon Burge, and code inspired by a similar change in FreeBSD.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2001-12-17Provide hooks to include the config file(s) in the kernel binary.atatat
2001-11-08add RCSIDlukem
2001-08-20allow SHMMAX, SHMMIN, SHMMNI and SHMSEG to be specified in the kernel config ↵mrg
file.
2000-11-11Make SHMSEG much larger to accomodate GNOME and imlib.mycroft
It's limited by SHMMAXPGS anyway.
2000-09-24defopt SHMMAXPGS, SEMMNI, SEMMNS, SEMUME and SEMMNUjdolecek
2000-04-15Remove shmsegs declaration from conf/param.c - it doesn't belong here.simonb
Instead, put it in kern/sysv_shm.c.
2000-03-28Declare the SysV IPC *info structures and shmsegs pointer as extern.simonb
Add declaration for shmsegs to param.c after shminfo structure.
2000-03-23New callout mechanism with two major improvements over the oldthorpej
timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
1999-12-04CL* discarding.ragge
1999-05-20remove nbuf, nswbuf. cleanup def of AUTONICE(TIME|VAL)lukem
1999-05-20g.c. now-unneeded variable declarations (cfree, swbuf, utsnamecgd
1999-04-26Add `mblowat' and `mcllowat' low water mark variables for mbufs and mbufthorpej
clusters.
1999-04-25Const msize & mclbytes.simonb
1999-04-25g/c REAL_CLISTS.simonb
1999-04-22Move inclusion of "opt_sb_max.h" from sys/socketvar.h tosimonb
conf/param.c, and move the initialisation of the sb_max variable from kern/uipc_socket2.c to conf/param.c. Now everthing that includes sys/socketvar.h doesn't get recompiled when SB_MAX's value changes.
1998-10-23Compute compile-time value of old-VM parameter MAX_KMAPENT from NPROCjonathan
(2x NPROC plus slop) unless expclitly set. Use current constant value (100) as a lower bound, as suggested by Chuck Cranor. Move NPROC and other parameter definitions from param.c to param.h so they are visible to vm/vm_map.h. Systems with hand-tuned NPROC should now support that many processes.
1998-10-19Defopt SYSVMSG, SYSVSEM and SYSVSHM.tron
1998-02-05initial import of the new virtual memory system, UVM, into -current.mrg
UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some minor portions derived from the old Mach code. i provided some help getting swap and paging working, and other bug fixes/ideas. chuck silvers <chuq@chuq.com> also provided some other fixes. this is the rest of the MI portion changes. this will be KNF'd shortly. :-)
1997-09-20Convert RTC_OFFSET, DEVPAGER, SWAPPAGER and VNODEPAGER to be declaredenami
by defopt.
1997-02-28Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".jonathan
Add code to netstat to use libkvm to for kernel variables "mclbytes" and "msize', and if found, use those for netstat -m rather than compiled-in defaults.