summaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert socket structures to be type-stable and add a version number.Garrett Wollman1998-05-151-1/+8
| | | | | | | | | | | | | | | | | | | | | | Define a parameter which indicates the maximum number of sockets in a system, and use this to size the zone allocators used for sockets and for certain PCBs. Convert PF_LOCAL PCB structures to be type-stable and add a version number. Define an external format for infomation about socket structures and use it in several places. Define a mechanism to get all PF_LOCAL and PF_INET PCB lists through sysctl(3) without blocking network interrupts for an unreasonable length of time. This probably still has some bugs and/or race conditions, but it seems to work well enough on my machines. It is now possible for `netstat' to get almost all of its information via the sysctl(3) interface rather than reading kmem (changes to follow). Notes: svn path=/head/; revision=36079
* Raise ncallout from NPROC + 16 to NPROC + 16 + MAXFILES. This sholdGuido van Rooij1998-02-271-4/+5
| | | | | | | | | prevent a possible DOS attack. The proper fix (to dynamically grow the callout list) is in the make. Submitted by: Paul Traina Notes: svn path=/head/; revision=33882
* Removed unused #includes.Bruce Evans1997-06-141-12/+1
| | | | Notes: svn path=/head/; revision=26638
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Removed option EXTRAVNODES. All versions of FreeBSD-2.x have a sysctlBruce Evans1997-01-161-5/+0
| | | | | | | | | variable `kern.maxvnodes' which gives much better control over vnode allocation than EXTRAVNODES (except in -current between 1995/10/28 and 1996/11/12, kern.maxvnodes was read-only and thus useless). Notes: svn path=/head/; revision=21770
* Fix bug related to map entry allocations where a sleep might be attemptedDavid Greenman1997-01-151-2/+2
| | | | | | | | | | | when allocating memory for network buffers at interrupt time. This is due to inadequate checking for the new mcl_map. Fixed by merging mb_map and mcl_map into a single mb_map. Reviewed by: wollman Notes: svn path=/head/; revision=21737
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Add an option "EXTRA_VNODES" to cause an extra number of vnode structuresPeter Wemm1996-05-311-1/+6
| | | | | | | | | | | | | | | | | | | to be allocated at boot time. This is an expensive option, as they consume physical ram and are not pageable etc. In certain situations, this kind of option is quite useful, especially for news servers that access a large number of directories at random and torture the name cache. Defining 5000 or 10000 extra vnodes should cut down the amount of vnode recycling somewhat, which should allow better name and directory caching etc. This is a "your mileage may vary" option, with no real indication of what works best for your machine except trial and error. Too many will cost you ram that you could otherwise use for disk buffers etc. This is based on something John Dyson mentioned to me a while ago. Notes: svn path=/head/; revision=16025
* Allocate mbufs from a separate submap so that NMBCLUSTERS works asGarrett Wollman1996-05-101-4/+6
| | | | | | | expected. Notes: svn path=/head/; revision=15722
* removed:Poul-Henning Kamp1996-05-021-2/+2
| | | | | | | | | | | | CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG Major macro cleanup. Notes: svn path=/head/; revision=15543
* First pass at cleaning up macros relating to pages, clusters and all that.Poul-Henning Kamp1996-05-021-2/+2
| | | | Notes: svn path=/head/; revision=15538
* Merge in Lite2: proc LIST changes.Jeffrey Hsu1996-03-111-27/+2
| | | | | | | Reviewed by: david & bde Notes: svn path=/head/; revision=14526
* Add more options into the conf/options and i386/conf/options.i386 filesPeter Wemm1996-03-021-1/+2
| | | | | | | | | and the #include hooks so that 'make depend' is more useful. This covers most of the options I regularly use (but not all) and some other easy ones. Notes: svn path=/head/; revision=14328
* Convert SYSV IPC to new-style options. (I hope I got everything...)Garrett Wollman1996-01-041-3/+5
| | | | | | | The LKMs will need an extra file, to come later. Notes: svn path=/head/; revision=13226
* Last commit this round: Staticize.Poul-Henning Kamp1995-12-101-3/+1
| | | | | | | | we are now down to about 1146 symbols being global, of which I estimate that about 100 are validly so. Notes: svn path=/head/; revision=12725
* Eliminate sloppy common-style declarations. There should be none left forBruce Evans1995-07-291-6/+11
| | | | | | | the LINT configuation. Notes: svn path=/head/; revision=9759
* Removed "GATEWAY" consideration when calculating number of mbuf clusters.David Greenman1995-06-291-5/+1
| | | | | | | It now always uses the value that was used for the GATEWAY case. Notes: svn path=/head/; revision=9371
* Killed "TIMEZONE" and "DST" options. They have been forced to 0 by configDavid Greenman1995-06-291-3/+2
| | | | | | | for more than a year now. Moved the declaration of 'tz' into kern_time.c. Notes: svn path=/head/; revision=9369
* Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"David Greenman1995-05-251-2/+13
| | | | | | | | | | | | | | | in machdep.c (it should use the global nmbclusters). Moved the calculation of nmbclusters into conf/param.c (same place where nmbclusters has always been assigned), and made the calculation include an extra amount based on "maxusers". NMBCLUSTERS can still be overrided in the kernel config file as always, but this change will make that generally unnecessary. This fixes the "bug" reports from people who have misconfigured kernels seeing the network "hang" when the mbuf cluster pool runs out. Reviewed by: John Dyson Notes: svn path=/head/; revision=8747
* Implement maxprocperuid and maxfilesperproc. They are tunableGuido van Rooij1995-02-201-1/+3
| | | | | | | | | | | | | | | via sysctl(8). The initial value of maxprocperuid is maxproc-1, that of maxfilesperproc is maxfiles (untill maxfile will disappear) Now it is at least possible to prohibit one user opening maxfiles -Guido Submitted by: Obtained from: Notes: svn path=/head/; revision=6577
* Alow overriding of the various SHM* options.Joerg Wunsch1995-02-161-1/+11
| | | | | | | Submitted by: Heikki Suonsivu <hsu@fx7.cs.hut.fi> Notes: svn path=/head/; revision=6492
* Increase maxfiles to NPROC*2. This makes the per-process open file limitDavid Greenman1995-01-121-2/+2
| | | | | | | highly bogus, however, and this needs to be fixed. Notes: svn path=/head/; revision=5530
* These changes embody the support of the fully coherent merged VM buffer cache,David Greenman1995-01-091-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | much higher filesystem I/O performance, and much better paging performance. It represents the culmination of over 6 months of R&D. The majority of the merged VM/cache work is by John Dyson. The following highlights the most significant changes. Additionally, there are (mostly minor) changes to the various filesystem modules (nfs, msdosfs, etc) to support the new VM/buffer scheme. vfs_bio.c: Significant rewrite of most of vfs_bio to support the merged VM buffer cache scheme. The scheme is almost fully compatible with the old filesystem interface. Significant improvement in the number of opportunities for write clustering. vfs_cluster.c, vfs_subr.c Upgrade and performance enhancements in vfs layer code to support merged VM/buffer cache. Fixup of vfs_cluster to eliminate the bogus pagemove stuff. vm_object.c: Yet more improvements in the collapse code. Elimination of some windows that can cause list corruption. vm_pageout.c: Fixed it, it really works better now. Somehow in 2.0, some "enhancements" broke the code. This code has been reworked from the ground-up. vm_fault.c, vm_page.c, pmap.c, vm_object.c Support for small-block filesystems with merged VM/buffer cache scheme. pmap.c vm_map.c Dynamic kernel VM size, now we dont have to pre-allocate excessive numbers of kernel PTs. vm_glue.c Much simpler and more effective swapping code. No more gratuitous swapping. proc.h Fixed the problem that the p_lock flag was not being cleared on a fork. swap_pager.c, vnode_pager.c Removal of old vfs_bio cruft to support the past pseudo-coherency. Now the code doesn't need it anymore. machdep.c Changes to better support the parameter values for the merged VM/buffer cache scheme. machdep.c, kern_exec.c, vm_glue.c Implemented a seperate submap for temporary exec string space and another one to contain process upages. This eliminates all map fragmentation problems that previously existed. ffs_inode.c, ufs_inode.c, ufs_readwrite.c Changes for merged VM/buffer cache. Add "bypass" support for sneaking in on busy buffers. Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=5455
* Added SYSV ipcs.Doug Rabson1994-09-131-1/+44
| | | | | | | Obtained from: NetBSD and FreeBSD-1.1.5 Notes: svn path=/head/; revision=2729
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.Rodney W. Grimes1994-05-251-1/+2
| | | | | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=1549
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+145
Notes: svn path=/head/; revision=1541