summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_zone.h
Commit message (Collapse)AuthorAgeFilesLines
* Add a zdestroy() function to the zone allocator. This is needed for thetmm2001-08-041-0/+1
| | | | | unload case of modules that use their own zones. It has been tested with the nfs module.
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-011-2/+2
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Catch up to header include changes:jhb2001-03-281-0/+1
| | | | | - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
* Give this code a major facelift:des2001-01-221-12/+15
| | | | | | | | | | | | | | | | | | | | | | | - replace the simplelock in struct vm_zone with a mutex. - use a proper SLIST rather than a hand-rolled job for the zone list. - add a subsystem lock that protects the zone list and the statistics counters. - merge _zalloc() into zalloc() and _zfree() into zfree(), and move them below _zget() so there's no need for a prototype. - add two initialization functions: one which initializes the subsystem mutex and the zone list, and one that currently doesn't do anything. - zap zerror(); use KASSERTs instead. - dike out half of sysctl_vm_zone(), which was mostly trying to do manually what the snprintf() call could do better. Reviewed by: jhb, jasone
* First step towards an MP-safe zone allocator:des2001-01-211-3/+0
| | | | | | | - have zalloc() and zfree() always lock the vm_zone. - remove zalloci() and zfreei(), which are now redundant. Reviewed by: bmilekic, jasone
* Make zalloc and zfree non-inline functions. This avoids having toassar2000-12-271-76/+3
| | | | | | | have the code calling these be compiled with the same setting for INVARIANTS and SMP. Reviewed by: dillon
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* KNFize, by bde.eivind1999-01-101-6/+6
|
* Split DIAGNOSTIC -> DIAGNOSTIC, INVARIANTS, and INVARIANT_SUPPORT aseivind1999-01-081-4/+4
| | | | | | | | | discussed on -hackers. Introduce 'KASSERT(assertion, ("panic message", args))' for simple check + panic. Reviewed by: msmith
* Correct copyright.dyson1998-04-251-10/+3
|
* Slight improvement to the vm_zone stats output. Also, some other superficialdyson1997-12-141-1/+2
| | | | cleanups.
* Don't include <sys/lock.h> in headers when only `struct simplelock' isbde1997-12-051-3/+2
| | | | required. Fixed everything that depended on the pollution.
* Fix some style(9) and formatting problems. tabsize 4 formatting doesn'tpeter1997-09-211-41/+44
| | | | | | look too great with 'more' etc. Approved by: dyson (with a minor grumble :-)
* Change the M_NAMEI allocations to use the zone allocator. This changedyson1997-09-211-5/+28
| | | | | | | | plus the previous changes to use the zone allocator decrease the useage of malloc by half. The Zone allocator will be upgradeable to be able to use per CPU-pools, and has more intelligent usage of SPLs. Additionally, it has reasonable stats gathering capabilities, while making most calls inline.
* The "cutsie" register parameter passing that I had mistakenly used breaksdyson1997-08-101-10/+10
| | | | | profiling. Since it doesn't really improve perf much, I have backed it out.
* More vm_zone cleanup. The sysctl now accounts for items better, anddyson1997-08-071-1/+3
| | | | counts the number of allocations.
* Add exposure of some vm_zone allocation stats by sysctl. Also, changedyson1997-08-061-1/+4
| | | | | the initialization parameters of some zones in VM map. This contains only optimizations and not bugfixes.
* Another attempt at cleaning up the new memory allocator.dyson1997-08-051-32/+59
|
* A very simple zone allocator.dyson1997-08-051-0/+82
OpenPOWER on IntegriCloud