summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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-12-05Oops forgot to regen.Artur Grabowski
2001-12-05Break out the part that lowers v_holdcnt in brelvp into an own functionArtur Grabowski
and make it and vhold into public interfaces.
2001-12-04Yet another sync to NetBSD uvm.Artur Grabowski
Today we add a pmap argument to pmap_update() and allocate map entries for kernel_map from kmem_map instead of using the static entries. This should get rid of MAX_KMAPENT panics. Also some uvm_loan problems are fixed.
2001-12-04Readd VOP_MMAP, will be used soon. Right now it's just a question toArtur Grabowski
the filesystem if we're allowed to mmap the file.
2001-12-04Add declaration of "state" to _simple_lock_assert(). Since it isTodd C. Miller
an int this can safely be omitted but it is bad style to do so. Closes PR 2223.
2001-12-02release the right descriptors when pipe fails; bug report fromNiels Provos
marcodsl@swbell.net
2001-12-02remove some XXX commentsTheo de Raadt
2001-11-30sbcompress() can compact mbuf clusters now; from thorpej@netbsdNiels Provos
2001-11-30Call buf_cleanout, which handles wakeupsConstantine Sapuntzakis
2001-11-29Bunch of bug fixes from NetBSD.Artur Grabowski
Mostly dealing with holes in files.
2001-11-29Ooops. Revert part of the last commit that was completly wrong and wasn't ↵Artur Grabowski
supposed to be committed.
2001-11-29Make sure the whole buffer is initialized before calling bgetvp.Artur Grabowski
Recommended by csapuntz@
2001-11-29Correctly handle b_vp with bgetvp and brelvp in {get,put}pages.Artur Grabowski
Prevents panics caused by vnodes being recycled under our feet.
2001-11-28Sync in more uvm from NetBSD. Mostly just cosmetic stuff.Artur Grabowski
Contains also support for page coloring.
2001-11-28avoid possible infinite loop in sosend() on 64bit systems. - from netbsdEric Jackson
art@ ok
2001-11-28regenArtur Grabowski
2001-11-28more typedef zapping vm_page_t -> struct vm_page *Artur Grabowski
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-28avoid "thundering herd" problem in accept by waking just one process.Niels Provos
based on freebsd. okay art@ markus@
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-28from enami@netbsd:Niels Provos
Give different names for different wait channels
2001-11-27change socket allocation to pool allocator; from netbsd; okay niklas@Niels Provos
2001-11-27fix an error in sosend() that could make a transient error permant.Niels Provos
verified with both netbsd and freebsd. from netbsd: Tue Jun 8 02:39:57 1999 UTC by thorpej In sosend(), if so_error is set, clear it before returning the error to the process (i.e. pre-Reno behavior). The 4.4BSD behavior (introduced in Reno) caused transient errors to stick incorrectly. This is from PR #7640 (Havard Eidnes), cross-checked w/ FreeBSD, where Bill Fenner committed the same fix (as described in a comment in the Vat sources, by Van Jacobsen).
2001-11-27change socket connection queues to use TAILQ_Niels Provos
from NetBSD: Wed Jan 7 23:47:08 1998 UTC by thorpej Make insertion and removal of sockets from the partial and incoming connections queues O(C) rather than O(N).
2001-11-27kill breadaArtur Grabowski
2001-11-27regen for UBC changesArtur Grabowski
2001-11-27Merge in the unified buffer cache code as found in NetBSD 2001/03/10. TheArtur Grabowski
code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
2001-11-21Added vfs_isbusy. Useful for verifying that a mount point is lockedConstantine Sapuntzakis
Added vfs_mount_foreach_vnode. Several places in the code seem to want to traverse the mount list and they all seem to handle locking differently. Centralize traversing the mount list in one place so that we only need to get the locking right once.
2001-11-15bio_doread doesn't need a cred anymoreArtur Grabowski
2001-11-15Remove creds from struct buf, move the creds that nfs need into the nfs node.Artur Grabowski
While in the area, convert nfs node allocation from malloc to pool and do some cleanups. Based on the UBC changes in NetBSD. niklas@ ok.
2001-11-15Initialize listNiklas Hallqvist
2001-11-15remove staticsNiklas Hallqvist
2001-11-15Don't zero v_bioflag when recycling a vnode in getnewvnode.Artur Grabowski
Sometimes the vnode can be on the syncers list. While that is a bug, it's just a minor annoyance. A vnode on a syncer worklist without VBIOONSYNCLIST set is a disaster.
2001-11-15Make sure that stuff on the syncer worklist has VBIOONSYNCLIST setArtur Grabowski
and stuff that isn't on the worklist doesn't have it set.
2001-11-15New function vn_marktext - mark a vnode as executing a text image.Artur Grabowski
Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
2001-11-14Better exit codes. ok mickey,millert,miod,deraadtHakan Olsson
2001-11-14in poll, if fd is < 0, clear revents; bjy@mogua.orgTheo de Raadt
2001-11-14Compat layer for 1k Vax aout, from NetBSD.Hugh Graham
2001-11-12Remove unnecessary check for NULL vnode in reassignbuf.Artur Grabowski
2001-11-12Bring in more changes from NetBSD. Mostly pagedaemon improvements.Artur Grabowski
2001-11-11Let ltsleep take a const wmesg.Artur Grabowski
2001-11-10Move maxdmap and maxsmap to kern_resource.cArtur Grabowski
2001-11-10Merge in some parts of the ubc work that has been done in NetBSD that are notArtur Grabowski
UBC, but prerequsites for it. - Create a daemon that processes async I/O (swap and paging in the future) requests that need processing in process context and that were processed in the pagedaemon before. - Convert some ugly ifdef DIAGNOSTIC code to less intrusive KASSERTs. - misc other cleanups.
2001-11-09Use bufpool, not malloc.Artur Grabowski
2001-11-09Create bufpool - a pool of struct bufs.Artur Grabowski
2001-11-07new flag to lockmgr. LK_RECURSEFAIL - even if the lock can recurse fail.Artur Grabowski
2001-11-07Add an alignment argument to uvm_map that specifies an alignment hintArtur Grabowski
for the virtual address.
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)