summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2002-02-01Don't MALLOC/FREE with variable size.Artur Grabowski
2002-02-01Allocate kqueues with pool.Artur Grabowski
2002-02-01Don't MALLOC with variable size.Artur Grabowski
2002-01-31Ignore signals if/when we are exiting.Tobias Weingartner
Prevents a hang in the NFS code when dumping core and pressing ^C, etc. ok art@
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2002-01-30Add proc0 to the PIDHASH table. art@ okThomas Nordin
2002-01-29Honor the printf-like function argument in pool_printit(), instead ofMiod Vallat
using printf(). Makes ddb sessions more fruitful.
2002-01-28GC PR_STATIC and PR_MALLOCOK.Artur Grabowski
PR_MALLOC wasn't used at all in the code and PR_STATIC was missing pieces and should be solved with allocators.
2002-01-25Add 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-25poolify pcreds.Artur Grabowski
2002-01-25Convert plimit allocations to pool.Artur Grabowski
2002-01-25kernel printfs triggerable by a simple mistake in userland are just wrong.Artur Grabowski
2002-01-23move mb_map allocation to mbinit()Artur Grabowski
2002-01-23move definition of mb_map from zillions of machdep.c to uipc_mbuf.cArtur Grabowski
2002-01-23Allocate rusage, pgrp, ucred and session with pool.Artur Grabowski
2002-01-23Kill PR_FREEHEADER, not used anymore and confusing.Artur Grabowski
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur 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-21Mount points must fit in MNAMELEN, not MAXPATHLEN so use copyinstr()Todd C. Miller
to detect whether the path passed in from userland is too long. Based on a patch from peterw AT ifost.org.au.
2002-01-20When a process is exec:ing mark it with a flag. Check that flag in ptraceArtur Grabowski
and procfs (and possibly more places in the future) and simply refuse to fiddle with the execing process. This is an ugly hack, but this far we haven't been successful in creating a race-free exec.
2002-01-19If handler for SIGCHLD is SIG_IGN, reset to SIG_DLF. This is consistentTodd C. Miller
with our handling of SA_NOCLDWAIT as well as other operating systems. From FreeBSD.
2002-01-18Resource map code is not used anymore. Long live the extent code!Miod Vallat
2002-01-18record ctime for the mountpoint, mount time or last mount update; art@ okMichael Shalayeff
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2002-01-12Don't cast return value from splx to (void) because splx doesn't return ↵Artur Grabowski
anything.
2002-01-10Fix a locking error in pool_drain. Misc cleanup.Artur Grabowski
From NetBSD.
2002-01-10- unbreak POOL_DIAGNOSTIC.Artur Grabowski
- use ltsleep instead of simple_unlock ; tsleep
2002-01-10No more need for local define of LOCK_ASSERT.Artur Grabowski
2002-01-10Protect the pool cache magazine pool with splvm.Artur Grabowski
2002-01-10Convert some for-loops into TAILQ_FOREACH.Artur Grabowski
2002-01-09make sure we use lkmfree() in error cases as well.Eric Jackson
millert@ ok
2002-01-07first pass cleanup for lkmsEric Jackson
- Use queue.h macros instead of accessing members directly - Allocate from kernel_map instead of kmem_map - remove streams - free memory for syms in lkmunreserve() - change LMREADY arg to u_long (allow it to work on 64bit systems) - NetBSD - KNF
2002-01-07If the handler for SIGCHLD is set to SIG_IGN, act as if theTodd C. Miller
SA_NOCLDWAIT (don't create zombies) flag has been specified. This is consistent with most other operating systems and is what XPG4.2 specifies.
2002-01-02Remove reference to timeout table. deraadt@ okThomas Nordin
2002-01-02register_t is not an int, so don't use it that way.Artur Grabowski
Fixes PT_{READ,WRITE}_{I,D} on sparc64.
2002-01-012002Theo de Raadt
2001-12-27makes a new accept() socket have the nonblock behavior.Federico G. Schwindt
slightly modified version from the original diff by theo, based on comments by niels@ and deraadt@; both ok'ed.
2001-12-27Increment reference count when copying session pointer pr#2112. ok deraadt@Thomas Nordin
2001-12-22New scalable implementation with constant time add and delete. ok deraadt@Thomas Nordin
2001-12-20Make user/system times increase monotonically. ok deraadt@ and millert@Thomas Nordin
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-18NRL license cleaningTheo de Raadt
2001-12-14New hz value needed by AlphaServer 1200 and a couple other machinesNathan Binkert
2001-12-12Handle itimer intervals smaller than the resolution of the clock; pr#2182.Thomas Nordin
2001-12-10No need to initialize the uobj on every getnewvnode. Just doArtur Grabowski
it when allocating. Add some improved diagnostics.
2001-12-10Don't sleep on VXLOCK if LK_NOWAIT.Artur Grabowski
2001-12-10No need for uvm_useracc here now. vslock catches those problems.Artur Grabowski
2001-12-10regenArtur Grabowski
2001-12-10Big cleanup inspired by NetBSD with some parts of the code from NetBSD.Artur Grabowski
- get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
2001-12-08Sprinkle pmap_update calls where relevant and some otherArtur Grabowski
misc pmap usage fixes.