| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
unload case of modules that use their own zones.
It has been tested with the nfs module.
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
- <sys/mutex.h> now requires <sys/systm.h>
- <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
- have zalloc() and zfree() always lock the vm_zone.
- remove zalloci() and zfreei(), which are now redundant.
Reviewed by: bmilekic, jasone
|
|
|
|
|
|
|
| |
have the code calling these be compiled with the same setting for
INVARIANTS and SMP.
Reviewed by: dillon
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
discussed on -hackers.
Introduce 'KASSERT(assertion, ("panic message", args))' for simple
check + panic.
Reviewed by: msmith
|
| |
|
|
|
|
| |
cleanups.
|
|
|
|
| |
required. Fixed everything that depended on the pollution.
|
|
|
|
|
|
| |
look too great with 'more' etc.
Approved by: dyson (with a minor grumble :-)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
profiling. Since it doesn't really improve perf much, I have backed it
out.
|
|
|
|
| |
counts the number of allocations.
|
|
|
|
|
| |
the initialization parameters of some zones in VM map. This contains
only optimizations and not bugfixes.
|
| |
|
|
|