Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-05-27 | change uvm_km_getpage to take waitok argument and sleep if appropriate. | Ted Unangst | |
change both the nointr and default pool allocators to using uvm_km_getpage. change pools to default to a maxpages value of 8, so they hoard less memory. change mbuf pools to use default pool allocator. pools are now more efficient, use less of kmem_map, and a bit faster. tested mcbride, deraadt, pedro, drahn, miod to work everywhere | |||
2004-05-23 | bad stuff escaped by accident | Ted Unangst | |
2004-05-23 | according to fork1(9), retval is optional. make it so. | Ted Unangst | |
from form@pdp-11.org.ru via mpech. ok millert | |||
2004-04-19 | introduce a new km_page allocator that gets pages from kernel_map using | Ted Unangst | |
an interrupt safe thread. use this as the new backend for mbpool and mclpool, eliminating the mb_map. introduce a sysctl kern.maxclusters which controls the limit of clusters allocated. testing by many people, works everywhere but m68k. ok deraadt@ this essentially deprecates the NMBCLUSTERS option, don't use it. this should reduce pressure on the kmem_map and the uvm reserve of static map entries. | |||
2004-04-17 | Don't forget to apply the M_CLUSTER flag when copying flags in m_pullup2(). | Ryan Thomas McBride | |
Fixes pr3740. Confirmed with pb@, ok markus@. | |||
2004-04-01 | use NULL for ptrs. parts from Joris Vink | Ted Unangst | |
2004-01-28 | oh, i'll happily steal the commit. ok henning@, markus@, otto@ (iirc) | Daniel Hartmeier | |
from KOZUKA Masahiro, fixes PR 3651 | |||
2003-08-12 | src argument to m_copyback() can be a const; itojun@ ok | Michael Shalayeff | |
2003-06-02 | Remove the advertising clause in the UCB license which Berkeley | Todd C. Miller | |
rescinded 22 July 1999. Proofed by myself and Theo. | |||
2003-06-01 | uvm_km_suballoc passes the 'min' argument untouched to uvm_map. uvm_map | Artur Grabowski | |
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. | |||
2003-04-23 | Move m_copyback() to uipc_mbuf where it makes some kinda sense; ok dhartmei | Jason Wright | |
2003-02-12 | Remove commons; inspired by netbsd. | Jason Wright | |
2002-07-03 | Change all variables definitions (int foo) in sys/sys/*.h to variable | Miod Vallat | |
declarations (extern int foo), and compensate in the appropriate locations. | |||
2002-03-14 | First round of __P removal in sys | Todd C. Miller | |
2002-02-25 | Make pool_sethardlimit() check that it doesn't decrease the limit below | Daniel Hartmeier | |
the current size of the pool. ok art@ | |||
2002-02-17 | Patch from Daniel Lucq <daniel@lucq.org> | Mats O Jansson | |
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@ | |||
2002-02-05 | Zero-ize ext even if it has a free method defined. | Angelos D. Keromytis | |
2002-02-05 | panic if a read-only mbuf is given to m_zero() --- from art@openbsd.org | Angelos D. Keromytis | |
2002-02-05 | Fix m_zero() yet again -- yesterday's fix wasn't sufficient. | Angelos D. Keromytis | |
2002-02-04 | Also, cleanup any external buffers first (paranoid). | Angelos D. Keromytis | |
2002-02-04 | Revision 1.37 was borked... This time, fix the casts and address the | Jason Wright | |
void * arithmetic problem correctly in m_zero() | |||
2002-01-25 | Add a drain hook to each pool. This hook is called in three cases. | Artur Grabowski | |
1. When a pool hit the hard limit. Just before bailing out/sleeping. 2. When an allocator fails to allocate memory (with PR_NOWAIT). 3. Just before trying to reclaim some page in pool_reclaim. The function called form the hook should try to free some items to the pool if possible. Convert m_reclaim hooks that were embedded in MCLGET, MGET and MGETHDR into a pool drain hook (making the code much cleaner). | |||
2002-01-23 | move mb_map allocation to mbinit() | Artur Grabowski | |
2002-01-23 | move definition of mb_map from zillions of machdep.c to uipc_mbuf.c | Artur Grabowski | |
2002-01-23 | Pool deals fairly well with physical memory shortage, but it doesn't deal | Artur Grabowski | |
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it. | |||
2002-01-16 | Don't include <sys/map.h> when you don't need what's in it. | Miod Vallat | |
2001-12-18 | NRL license cleaning | Theo de Raadt | |
2001-11-28 | zap 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-06 | Replace 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-12 | mbutl no more | Artur Grabowski | |
2001-06-27 | remove old vm | Artur Grabowski | |
2001-06-27 | Update comment. | Angelos D. Keromytis | |
2001-06-27 | Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, depending | Angelos D. Keromytis | |
on how macros should be treated. Code by fgsch@, ok by me and itojun@ | |||
2001-06-26 | Appease gcc by not using void pointers in arithmetic operations; art@ ok | Aaron Campbell | |
2001-06-25 | Don't reset M_PKTHDR before we copy the mbuf flags (bad Federico!) | Angelos D. Keromytis | |
2001-06-25 | Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok. | Federico G. Schwindt | |
2001-05-26 | Use m_tag_init() and M_COPY_HDR(). | Angelos D. Keromytis | |
2001-05-26 | Fix backpointer. | Angelos D. Keromytis | |
2001-05-24 | If the copied tag container is empty, initialize it properly. | Angelos D. Keromytis | |
2001-05-20 | m_tag_* routines, plus minor changes (convert from tdbi to tags) | Angelos D. Keromytis | |
2001-05-18 | Use pool_page_alloc_nointr() and pool_page_free_nointr() since they | Todd C. Miller | |
are exported wheras pool_page_alloc() and pool_page_free() are static. In the non-UVM case these just call pool_page_alloc() and pool_page_free() anyway. | |||
2001-05-17 | convert mbuf and cluster allocation to pool, mostly from NetBSD | Niels Provos | |
okay art@ miod@ | |||
2001-05-16 | Introduce a new kernel option "SMALL_KERNEL" that will be used to keep the | Artur Grabowski | |
kernel size down. Two changes. Uninline MALLOC and uninline a few mbuf macros. Saves 140k on alpha RAMDISK (although only 11k after gzip). | |||
2001-05-05 | Get 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-05 | From angelos: (he can't commit this himself right now) | Artur Grabowski | |
> I must have been on drugs...a deep copy is needed, or else there's double > free's when there's IPsec. [...] > This should solve the crash problems. | |||
2001-03-30 | Be consistent when adjusting pkthdr.len; it doesn't matter currently, | Angelos D. Keromytis | |
since the callers always do the right thing, but it might in the future. Pointed out by art@ | |||
2001-03-28 | Allow tdbi's to appear in mbufs throughout the stack; this allows | Angelos D. Keromytis | |
security properties of the packets to be pushed up to the application (not done yet). Eventually, this will be turned into a packet attributes framework. Make sure tdbi's are free'd/cleared properly whenever drivers (or NFS) does weird things with mbufs. | |||
2001-03-25 | Not really a bug but one day panic might throw an exception or something. ↵ | Constantine Sapuntzakis | |
THanks to dawson and team for fix | |||
2000-03-03 | Style. | Angelos D. Keromytis | |
2000-03-03 | Remove extraneous newline. | Angelos D. Keromytis | |