Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Import M_CANFAIL support from NetBSD, removes a nasty panic during low-mem scenarios, instead generating an ENOMEM backfeed, ok tedu@, prodded by many | 2004-12-30 | 1 | -5/+6 | |
| | |||||
* | bad stuff escaped by accident | 2004-05-23 | 1 | -2/+1 | |
| | |||||
* | according to fork1(9), retval is optional. make it so. | 2004-05-23 | 1 | -1/+2 | |
| | | | | from form@pdp-11.org.ru via mpech. ok millert | ||||
* | make check for too large allocations earlier, instead of fiddling with it. | 2003-12-28 | 1 | -3/+3 | |
| | | | | | less error prone (no wraparound). no real functional change though. ok markus tdeval | ||||
* | remove caddr_t casts. it's just silly to cast something when the function | 2003-07-21 | 1 | -4/+4 | |
| | | | | takes a void *. convert uiomove to take a void * as well. ok deraadt@ | ||||
* | addrmask canbe const | 2003-06-26 | 1 | -2/+2 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | uvm_km_suballoc passes the 'min' argument untouched to uvm_map. uvm_map | 2003-06-01 | 1 | -5/+8 | |
| | | | | | | | | uses it as a hint for where to steal space from the parent map. We've been passing random stack garbage as that hint for ages. It's a wonder it didn't break things until we started working on Hammer. noone objected for at least a week. | ||||
* | string fixes; tedu ok | 2003-05-03 | 1 | -8/+13 | |
| | |||||
* | woah. last commit contained way too much. revert, and apply only the change intended. | 2003-04-10 | 1 | -23/+8 | |
| | |||||
* | off by one bounds check in diag code. ok art. | 2003-04-10 | 1 | -9/+24 | |
| | |||||
* | splvm, not splimp | 2002-06-11 | 1 | -3/+3 | |
| | |||||
* | malloc_roundup to calculate allocation size malloc will use; from netbsd; | 2002-02-12 | 1 | -1/+13 | |
| | | | | okay art@ | ||||
* | Don't include <sys/map.h> when you don't need what's in it. | 2002-01-16 | 1 | -2/+1 | |
| | |||||
* | UBC was a disaster. It worked very good when it worked, but on some | 2001-12-19 | 1 | -3/+3 | |
| | | | | | | | | | 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. | ||||
* | If we assume (just pure speculation) that there will be a pmap sometime in | 2001-12-05 | 1 | -3/+3 | |
| | | | | | | | 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). | ||||
* | make nkmempages dynamic based on memory. okay art@ from netbsd: | 2001-12-05 | 1 | -9/+72 | |
| | | | | | | | | | | | | | | 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. | ||||
* | Sync in more uvm from NetBSD. Mostly just cosmetic stuff. | 2001-11-28 | 1 | -3/+3 | |
| | | | | Contains also support for page coloring. | ||||
* | zap some typedefs. | 2001-11-28 | 1 | -2/+2 | |
| | | | | | | | | 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) | ||||
* | Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. | 2001-11-06 | 1 | -2/+1 | |
| | | | | (Look ma, I might have broken the tree) | ||||
* | merge vm/vm_kern.h into uvm/uvm_extern.h; art@ ok | 2001-09-19 | 1 | -3/+1 | |
| | |||||
* | When this code was imported to NetBSD by Jason Thorpe he did a bunch of | 2001-08-17 | 1 | -7/+1 | |
| | | | | useful changes (and a lot of cleanup). Bring in them. | ||||
* | Sysctl for finding out how many pages there are in kmem_map. | 2001-08-02 | 1 | -1/+5 | |
| | |||||
* | Print "data modified on freelist" sizes in hex. | 2001-07-26 | 1 | -3/+3 | |
| | | | | | I know at least of two cases where people got confused by this and used the wrong size to the malloc debugger. | ||||
* | remove old vm | 2001-06-27 | 1 | -28/+2 | |
| | |||||
* | KNF | 2001-06-22 | 1 | -17/+16 | |
| | |||||
* | Canonicalize panic message | 2001-06-21 | 1 | -2/+2 | |
| | |||||
* | Panic if we free stuff not in malloc region. (ifdef DIAGNOSTIC) | 2001-06-21 | 1 | -1/+7 | |
| | |||||
* | Use lockmgr locks for kern.malloc.kmemstat and | 2001-05-14 | 1 | -5/+10 | |
| | | | | hw.diskstats/hw.disknames. | ||||
* | Be more paranoid about zapping trailing comma. | 2001-05-14 | 1 | -3/+8 | |
| | |||||
* | Use M_SYSCTL, fix a couple of buglets, style. deraadt@ ok | 2001-05-14 | 1 | -22/+13 | |
| | |||||
* | kmemstats, nselcoll, forkstat, and nchstats structures through | 2001-05-11 | 1 | -2/+49 | |
| | | | | sysctl. deraadt@ ok | ||||
* | Remove the cpp magic for finding incorrect MAXALLOCSAVE. | 2001-05-06 | 1 | -12/+2 | |
| | |||||
* | Get rid of CLSIZE and all related stuff. | 2001-05-05 | 1 | -8/+8 | |
| | | | | | | | | | 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. | ||||
* | Typo in comment (henric@aimnet.com) | 2001-04-06 | 1 | -2/+2 | |
| | |||||
* | Latest soft updates from FreeBSD/Kirk McKusick | 2001-02-21 | 1 | -7/+2 | |
| | | | | Snapshot-related code has been commented out. | ||||
* | Add M_ZERO option to malloc. Causes malloc to return a zero'ed buffer. | 2001-02-20 | 1 | -2/+7 | |
| | | | | Used by the new soft updates code | ||||
* | Return a kmembuckets structure, rather than individual items, since they may be | 2001-01-04 | 1 | -25/+7 | |
| | | | | out of sync between consecutive calls of sysctl(3). | ||||
* | sysctl_malloc() | 2001-01-04 | 1 | -1/+64 | |
| | |||||
* | malloc debugging code. Enabled by option MALLOC_DEBUG. | 2000-06-06 | 1 | -1/+22 | |
| | | | | Make sure you read the docs (malloc(9)) before use. | ||||
* | Bring in some new UVM code from NetBSD (not current). | 2000-03-16 | 1 | -5/+5 | |
| | | | | | | | | | - 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. | ||||
* | Use PAGE_SIZE instead of NBPG. | 1999-11-25 | 1 | -8/+8 | |
| | |||||
* | use clrnd(round_page(size)) instead of roundup(size, CLBYTES). | 1999-09-10 | 1 | -2/+2 | |
| | | | | They do the same thing, but the former is noticeably faster on sparc | ||||
* | vm_offset_t -> {v,p}addr_t ; vm_size_t -> {v,p}size_t | 1999-07-15 | 1 | -6/+6 | |
| | |||||
* | apparently we need to have kmemstats in the kernel even if we don't use it. | 1999-06-23 | 1 | -3/+1 | |
| | | | | vmstat will fail if we don't have symbol even when it doesn't need it. XXX | ||||
* | Also define memname if FFS_SOFTUPDATES is defined. FFS_SOFTUPDATES should really only use memname ifdef DIAGNOSTIC but that isn't feasible right now | 1999-06-03 | 1 | -2/+2 | |
| | |||||
* | put a sanity check behind DIAGNOSTIC and give it a better panic message | 1999-05-06 | 1 | -2/+4 | |
| | |||||
* | kmem allocation changes for uvm | 1999-02-26 | 1 | -2/+45 | |
| | |||||
* | put some more stuff behind #ifdef KMEMSTATS | 1999-01-20 | 1 | -1/+5 | |
| | |||||
* | panic prints a newline for you, don't do it in the panic string | 1999-01-11 | 1 | -2/+2 | |
| |