NetBSD/sys/sys
chs 64c6d1d2dc a whole bunch of changes to improve performance and robustness under load:
- remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.
2001-09-15 20:36:31 +00:00
..
acct.h Create new kernel thread to issue statfs(2) system call to check free 2000-03-10 01:13:18 +00:00
agpio.h AGP GART support code. Originally written by Doug Rabson for FreeBSD, 2001-09-10 10:01:00 +00:00
ansi.h Define pid_t via <sys/ansi.h>. 2000-09-19 08:35:36 +00:00
ataio.h
audioio.h Add a field in mixer_devinfo_t that indicates the minimum delta to 2000-12-29 10:00:08 +00:00
boot_flag.h In-kernel device configuration manager - allows modification 2001-07-01 02:56:20 +00:00
bswap.h
buf.h a whole bunch of changes to improve performance and robustness under load: 2001-09-15 20:36:31 +00:00
callout.h Optimization suggested by Bill Sommerfeld: Keep a hint as to the 2001-09-11 04:32:19 +00:00
cdefs_aout.h #ifdef __STDC__ -> #if __STDC__ 2000-08-07 16:35:33 +00:00
cdefs_elf.h check __LEADING_UNDERSCORE instead of __sh3__ 2001-02-25 15:49:58 +00:00
cdefs.h Add a __static_cast() macro to help standard headers when used in C++ 2001-05-06 14:04:58 +00:00
cdio.h
chio.h
clist.h
conf.h Add cdev_pci_init(). 2001-09-13 21:59:21 +00:00
core.h precede, not preceed. 2001-08-20 12:00:46 +00:00
device.h Add EVCNT_TRAP event counter type. 2001-08-26 02:48:12 +00:00
dir.h
dirent.h
disk.h Nuke dk_establish() from orbit except from those ports which still use 2000-05-16 05:45:44 +00:00
disklabel_mbr.h add MBR_IS_EXTENDED() to detect one of the extended MBR partition types 2000-12-24 13:30:51 +00:00
disklabel.h Protect #include <sys/types.h> by #ifndef _LOCORE. <sys/types.h> isn't 2001-04-03 20:25:22 +00:00
dkbad.h
dkio.h Define __HAVE_OLD_DISKLABEL in <machine/types.h> for i386 (where the 2001-01-07 17:55:40 +00:00
dkstat.h Move schedticks and cp_time into schedstate_percpu. Also, allow 2000-06-03 20:42:42 +00:00
domain.h
dvdio.h Add RCSid. 2001-01-08 08:37:12 +00:00
endian.h sync argument/return type of [hn]to[nh][ls] to XNET 5.2 (uint{16,32}_t). 2001-08-22 07:42:07 +00:00
envsys.h Pull in <sys/ioccom.h>, and define ENVSYS_NSENSORS (number of sensor 2000-06-24 19:50:28 +00:00
errno.h Remove ENOTSUP for the moment. This needs a unique number, as noted by 2000-07-14 21:39:56 +00:00
exec_aout.h Add a MID_88K (note that it's different from OpenBSD's since their value 2001-08-16 05:06:35 +00:00
exec_coff.h Move a bunch of the COFF definitions into exec_coff.h, so they can be used by 2000-06-04 16:23:59 +00:00
exec_ecoff.h restructure struct emul and execsw, in preparation to make emulations LKMable: 2000-11-21 00:37:49 +00:00
exec_elf.h make elf64_copyargs() of type int also per the recent copyargs changes 2001-07-30 14:07:25 +00:00
exec_macho.h adjust to the new copyargs footprint 2001-07-29 21:22:58 +00:00
exec_script.h
exec.h adjust to the new copyargs footprint 2001-07-29 21:22:58 +00:00
extent.h
fcntl.h existent', not existant' 2001-06-19 13:42:07 +00:00
fdio.h
featuretest.h
file.h Add DTYPE_PIPE (to be used by new pipe implementation) and handle 2001-06-16 08:28:39 +00:00
filedesc.h Fix a partial construction problem that can cause race conditions 2001-06-14 20:32:41 +00:00
filio.h
fnv_hash.h A generic implementation of the Fowler/Noll/Vo hash (FNV hash), 2001-03-20 02:10:18 +00:00
gmon.h
inttypes.h * Move definitions of exact-width integer types from <machine/types.h> 2001-04-28 15:41:28 +00:00
ioccom.h
ioctl_compat.h
ioctl.h Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
ipc.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
kcore.h
kernel.h New callout mechanism with two major improvements over the old 2000-03-23 06:30:07 +00:00
kgdb.h
kthread.h ANSI'ify. 2000-07-14 07:14:33 +00:00
ktrace.h utrace(2): limit size of user data to KTR_USER_MAXLEN (currently 2048); return EINVAL if 'len' is bigger 2001-01-05 22:25:26 +00:00
lkm.h LMREADY actually takes a `u_long' (really, a pointer). 2001-02-25 17:44:15 +00:00
localedef.h C99: add new parameters int_p_cs_precedes, int_n_cs_precedes, 2001-01-02 10:53:24 +00:00
lock.h Add a simple_lock_only_held() LOCKDEBUG routine, which allows code 2001-06-05 04:38:08 +00:00
lockf.h guard prototypes for lf_* functions by ifdef _KERNEL 2000-08-04 09:20:21 +00:00
Makefile Install agpio.h. 2001-09-11 06:53:59 +00:00
malloc.h Add M_AGP type. 2001-09-10 10:09:36 +00:00
map.h
mbuf.h Strictly cosmetic changes. 2001-07-26 22:08:34 +00:00
md4.h in-kernel MD4 implementation, from libc 2000-12-08 06:29:23 +00:00
md5.h
midiio.h
mman.h add missing semicolon to typedef of mode_t 2000-10-18 01:43:18 +00:00
mount.h add a new VFS op, vfs_reinit, which is called when desiredvnodes is 2001-09-15 16:12:54 +00:00
msg.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
msgbuf.h
mtio.h
namei.h Set the credentials to be used in the NDINIT macro so that syscalls can 2001-09-08 02:02:04 +00:00
null.h Handle non-GNU C++ as well. Pointed out by Klaus Klein. 2000-05-19 18:57:48 +00:00
param.h a whole bunch of changes to improve performance and robustness under load: 2001-09-15 20:36:31 +00:00
pipe.h define BIG_PIPE_SIZE value using PIPE_SIZE 2001-07-23 19:34:36 +00:00
poll.h
pool.h Jason's last fix broke builds with POOL_DIAGNOSTIC (the kernel didn't link 2001-06-06 22:00:17 +00:00
proc.h Add an e_trapsignal member to struct emul, so that emulated processes can 2001-06-18 02:00:48 +00:00
protosw.h Add a protosw flag, PR_ABRTACPTDIS (Abort on Accept of Disconnected 2001-03-21 19:22:27 +00:00
ptrace.h The trace_req() function is a no-op; garbage collect it. 2001-06-13 16:06:27 +00:00
queue.h for QUEUEDEBUG_*_POSTREMOVE(), set the pointers to 1 instead of 0 2001-06-22 06:18:22 +00:00
reboot.h In-kernel device configuration manager - allows modification 2001-07-01 02:56:20 +00:00
resource.h
resourcevar.h remove some lint 2001-04-30 01:13:20 +00:00
rnd.h Mix random data directly into the pool and increase entropy instead of 2001-09-09 00:48:54 +00:00
scanio.h
sched.h Linux-compatible clone(2) system call, lifted from the Linux 2001-07-01 18:06:11 +00:00
scsiio.h Add SCBUSIODETACH ioctl. 2001-07-18 20:20:16 +00:00
select.h convert to ANSI KNF 2001-02-26 16:24:02 +00:00
sem.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
sha1.h
shm.h SHMLBA: 2001-05-10 10:50:51 +00:00
signal.h remove some lint 2001-04-30 01:13:20 +00:00
signalvar.h add an extern for the coredump32 hook. 2001-06-06 21:46:59 +00:00
socket.h make CMSG_FIRSTHDR() validat emsg_controllen, as suggested in RFC2292. 2001-09-07 08:13:01 +00:00
socketvar.h Use consistent types for len. Limit sockarg length to reasonable values. 2001-07-01 20:42:48 +00:00
sockio.h Implement support for IP/TCP/UDP checksum offloading provided by 2001-06-02 16:17:09 +00:00
stat.h implement lchflags(2), which does the chflags(2) dance without following 2000-04-17 14:31:21 +00:00
stdint.h Prevent trad. cpp recursion; from Katsuomi Hamajima in PR kern/13479. 2001-07-18 17:29:53 +00:00
swap.h add SWAP_GETDUMPDEV command. 2000-11-17 11:32:55 +00:00
syscall.h Regen; added Linux-compatible clone(2) system call. 2001-07-01 18:07:33 +00:00
syscallargs.h Regen; added Linux-compatible clone(2) system call. 2001-07-01 18:07:33 +00:00
sysctl.h Add a sysctl to frob sb_max. 2001-07-27 21:19:09 +00:00
syslimits.h build CHILD_MAX to 160. 80 has proved consistently not enough. 2001-03-28 08:45:34 +00:00
syslog.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
systm.h Remove ovbcopy macro added in last commit. 2001-07-07 17:07:26 +00:00
tablet.h
termios.h Define pid_t via <sys/ansi.h>: no longer expose clutter from <sys/types.h>. 2000-09-20 10:16:49 +00:00
time.h remove some lint 2001-04-30 01:13:20 +00:00
timeb.h
timepps.h #if 0 a static declaration for a function that does not exist. 2000-07-23 22:56:14 +00:00
times.h
timex.h
tprintf.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
trace.h
tty.h _KERNEL_OPT is your friend. 2001-06-08 15:43:34 +00:00
ttychars.h
ttycom.h Add TIOC[SG]LINED to handle symbolic line discipline names. 2000-11-01 23:46:55 +00:00
ttydefaults.h set CSTATUS to CTRL('t') 2000-08-05 01:27:12 +00:00
ttydev.h
types.h * Move definitions of exact-width integer types from <machine/types.h> 2001-04-28 15:41:28 +00:00
ucred.h
uio.h
un.h Avoid recursion with traditional cpp. 2000-07-28 09:33:28 +00:00
unistd.h
unpcb.h
user.h
userconf.h Fix obvious typo in multiple-inclusion protection wrapper. 2001-07-14 12:05:53 +00:00
utsname.h
vadvise.h
vmmeter.h
vnode_if.h regen. 2001-05-26 21:34:04 +00:00
vnode.h a whole bunch of changes to improve performance and robustness under load: 2001-09-15 20:36:31 +00:00
wait.h Add `WALLSIG' which causes wait4(2) to wait for all processes, regardless 2001-07-18 19:10:26 +00:00
wdog.h Interface definition for watchdog timers. 2000-11-04 18:33:33 +00:00