summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
AgeCommit message (Collapse)Author
2002-06-11splvm, not splimpArtur Grabowski
2002-02-12malloc_roundup to calculate allocation size malloc will use; from netbsd;Niels Provos
okay art@
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-12-05If we assume (just pure speculation) that there will be a pmap sometime inArtur Grabowski
the future that wants to allocate pv entries for every pmap_enter and wants to allocate those pv entries from kmem_map, it might be a good idea to init the kmem_map before initializing the kmemusage struct (because kmemusage allocates memory).
2001-12-05make nkmempages dynamic based on memory. okay art@ from netbsd:Niels Provos
date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
2001-11-28Sync in more uvm from NetBSD. Mostly just cosmetic stuff.Artur Grabowski
Contains also support for page coloring.
2001-11-28zap some typedefs.Artur Grabowski
vm_map_t -> struct vm_map * vm_map_entry_t -> struct vm_map_entry * simple_lock_data_t -> struct simplelock (uvm not done yet, coming in the next commit)
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-09-19merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okMichael Shalayeff
2001-08-17When this code was imported to NetBSD by Jason Thorpe he did a bunch ofArtur Grabowski
useful changes (and a lot of cleanup). Bring in them.
2001-08-02Sysctl for finding out how many pages there are in kmem_map.Artur Grabowski
2001-07-26Print "data modified on freelist" sizes in hex.Artur Grabowski
I know at least of two cases where people got confused by this and used the wrong size to the malloc debugger.
2001-06-27remove old vmArtur Grabowski
2001-06-22KNFTheo de Raadt
2001-06-21Canonicalize panic messageNiklas Hallqvist
2001-06-21Panic if we free stuff not in malloc region. (ifdef DIAGNOSTIC)Niklas Hallqvist
2001-05-14Use lockmgr locks for kern.malloc.kmemstat andAngelos D. Keromytis
hw.diskstats/hw.disknames.
2001-05-14Be more paranoid about zapping trailing comma.Angelos D. Keromytis
2001-05-14Use M_SYSCTL, fix a couple of buglets, style. deraadt@ okAngelos D. Keromytis
2001-05-11kmemstats, nselcoll, forkstat, and nchstats structures throughAngelos D. Keromytis
sysctl. deraadt@ ok
2001-05-06Remove the cpp magic for finding incorrect MAXALLOCSAVE.Artur Grabowski
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
2001-04-06Typo in comment (henric@aimnet.com)Angelos D. Keromytis
2001-02-21Latest soft updates from FreeBSD/Kirk McKusickConstantine Sapuntzakis
Snapshot-related code has been commented out.
2001-02-20Add M_ZERO option to malloc. Causes malloc to return a zero'ed buffer.Constantine Sapuntzakis
Used by the new soft updates code
2001-01-04Return a kmembuckets structure, rather than individual items, since they may beAngelos D. Keromytis
out of sync between consecutive calls of sysctl(3).
2001-01-04sysctl_malloc()Angelos D. Keromytis
2000-06-06malloc debugging code. Enabled by option MALLOC_DEBUG.Artur Grabowski
Make sure you read the docs (malloc(9)) before use.
2000-03-16Bring in some new UVM code from NetBSD (not current).Artur Grabowski
- Introduce a new type of map that are interrupt safe and never allow faults in them. mb_map and kmem_map are made intrsafe. - Add "access protection" to uvm_vslock (to be passed down to uvm_fault and later to pmap_enter). - madvise(2) now works. - various cleanups.
1999-11-25Use PAGE_SIZE instead of NBPG.Artur Grabowski
1999-09-10use clrnd(round_page(size)) instead of roundup(size, CLBYTES).Artur Grabowski
They do the same thing, but the former is noticeably faster on sparc
1999-07-15vm_offset_t -> {v,p}addr_t ; vm_size_t -> {v,p}size_tArtur Grabowski
1999-06-23apparently we need to have kmemstats in the kernel even if we don't use it.Artur Grabowski
vmstat will fail if we don't have symbol even when it doesn't need it. XXX
1999-06-03Also define memname if FFS_SOFTUPDATES is defined. FFS_SOFTUPDATES should ↵Todd C. Miller
really only use memname ifdef DIAGNOSTIC but that isn't feasible right now
1999-05-06put a sanity check behind DIAGNOSTIC and give it a better panic messageArtur Grabowski
1999-02-26kmem allocation changes for uvmArtur Grabowski
1999-01-20put some more stuff behind #ifdef KMEMSTATSArtur Grabowski
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-02-20Please GCC 2.8 -WallNiklas Hallqvist
1997-12-12Fixed spelling in a comment.gene
1997-03-01prevent warning about unused variable when NO_KMEMSTATS is in effectkstailey
1996-06-20kern_malloc() can fail in canwait case if no more map space; return NULL inTheo de Raadt
that case so that callers can deal with shortage rather than deadlocking.
1996-06-10data structure handling fixTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-19NetBSD 960317 mergeNiklas Hallqvist
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt