NetBSD/sys/kern
yamt 8ab7495c2d make scheduler work better when a system has many runnable processes
by making p_estcpu fixpt_t.  PR/31542.

1. schedcpu() decreases p_estcpu of all processes
   every seconds, by at least 1 regardless of load average.
2. schedclock() increases p_estcpu of curproc by 1,
   at about 16 hz.

in the consequence, if a system has >16 processes
with runnable lwps, their p_estcpu are not likely increased.

by making p_estcpu fixpt_t, we can decay it more slowly
when loadavg is high.  (ie. solve #1.)

i left kinfo_proc2::p_estcpu (ie. ps -O cpu) scaled because i have
no idea about its absolute value's usage other than debugging,
for which raw values are more valuable.
2005-11-01 09:07:53 +00:00
..
bufq_disksort.c MALLOC/FREE -> malloc/free where appropriate. 2005-10-29 12:26:37 +00:00
bufq_fcfs.c MALLOC/FREE -> malloc/free where appropriate. 2005-10-29 12:26:37 +00:00
bufq_priocscan.c - change the way to specify a bufq strategy. (by string rather than by number) 2005-10-15 17:29:10 +00:00
bufq_readprio.c MALLOC/FREE -> malloc/free where appropriate. 2005-10-29 12:26:37 +00:00
cnmagic.c - add const. 2005-05-29 22:24:14 +00:00
core_elf32.c Make copy{in,out}_proc work on all processes (including curproc) by 2005-07-06 22:30:42 +00:00
core_elf64.c
core_netbsd.c Rework the coredump code to have no explicit knownledge of how coredump 2005-06-10 05:10:12 +00:00
exec_aout.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
exec_conf.c First work on COMPAT_LINUX/amd64 2005-05-03 16:26:27 +00:00
exec_ecoff.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
exec_elf32.c Add a hack to deal with MIPS relocatable shared-linker problem on 2005-10-07 08:33:10 +00:00
exec_elf64.c
exec_macho.c the magic number is not byte-swapped. 2005-06-25 02:22:57 +00:00
exec_script.c #ifdef VERIFIED_EXEC 2005-07-29 14:49:00 +00:00
exec_subr.c Collect vmcmd statistics. 2005-07-06 23:08:57 +00:00
genlintstub.awk nuke trailing whitespace 2005-02-26 21:34:55 +00:00
init_main.c Move proc0 initialization from main() in init_main.c and proc0_insert() in 2005-08-05 11:03:18 +00:00
init_sysctl.c sysctl_kern_proc_args: don't assume that the process is 2005-10-08 06:35:56 +00:00
init_sysent.c Regen. 2005-09-26 03:04:46 +00:00
kern_acct.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_clock.c Introduced nanotime() which is going to be used by some fs code yet to 2005-09-12 16:21:31 +00:00
kern_descrip.c fix a bug pointed out by der mouse on tech-kern: in F_GETOWN, use a 2005-10-03 02:06:00 +00:00
kern_drvctl.c Replace the "locnames", attached to cfdata, which was solely good for 2005-08-25 15:06:28 +00:00
kern_event.c - Split sys_kevent into kevent1 so that it can be used by COMPAT_NETBSD32 2005-10-23 01:33:32 +00:00
kern_exec.c back out the lwp portion of the previous commit which is not ready yet to 2005-10-31 04:39:41 +00:00
kern_exit.c log when traced process is orphaned 2005-10-01 21:07:38 +00:00
kern_fork.c Add P_CLDSIGIGN, P_NOCLDSTOP and P_NOCLDWAIT to the list of flags we want 2005-05-17 19:22:19 +00:00
kern_kcont.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_ksyms.c Use %zx in a format string to print a size_t, not %lx, so a kernel 2005-06-25 05:30:04 +00:00
kern_kthread.c
kern_ktrace.c - add const. 2005-05-29 22:24:14 +00:00
kern_lkm.c `lkmlookup()' is called with its name argument either from kernel or from 2005-04-12 14:13:16 +00:00
kern_lock.c default to simple_lock_debugger=1 with LOCKDEBUG. 2005-10-08 03:18:25 +00:00
kern_lwp.c remove a redundant assignment in the previous. 2005-10-05 15:46:00 +00:00
kern_malloc_debug.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
kern_malloc.c Fix wording in a comment. 2005-08-05 13:18:32 +00:00
kern_microtime.c cc_microset: #if 0 out a diagnositc printf. 2005-01-23 08:39:51 +00:00
kern_ntptime.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
kern_physio.c fix ioctl problems after the recent physio changes 2005-10-31 14:36:41 +00:00
kern_proc.c Cosmetic changes. 2005-08-05 11:05:44 +00:00
kern_prot.c Made the code of the grsortu function smaller and simpler. Ok'ed by 2005-09-02 20:51:53 +00:00
kern_ras.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
kern_resource.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_sa.c in sa_switch(), if after we set up the LWP with cpu_setfunc(), we decide that 2005-10-26 06:24:04 +00:00
kern_sig.c Implement a few changes needed to properly resolve PR#30924, as 2005-10-23 00:09:14 +00:00
kern_subr.c Create functions ioctl_copyin() and ioctl_copyout(). They are meant to be 2005-08-28 20:58:14 +00:00
kern_synch.c make scheduler work better when a system has many runnable processes 2005-11-01 09:07:53 +00:00
kern_sysctl.c MALLOC/FREE -> malloc/free where appropriate. 2005-10-29 12:26:37 +00:00
kern_systrace.c From marius@openbsd: 2005-06-27 17:11:20 +00:00
kern_time.c Implement a few changes needed to properly resolve PR#30924, as 2005-10-23 00:09:14 +00:00
kern_timeout.c need a "const" 2005-06-01 12:27:15 +00:00
kern_uuid.c - add const. 2005-05-29 22:24:14 +00:00
kern_verifiedexec.c Debug nits from Brett Lymn: 2005-10-12 14:26:47 +00:00
kern_xxx.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kgdb_stub.c Add missing const. Reported by Allar Ritter in tech-kern. 2005-07-13 04:24:26 +00:00
Make.tags.inc
Makefile nuke trailing whitespace 2005-02-26 21:34:55 +00:00
makesyscalls.sh get rid of trailing spaces in the "created from" line (constructed by 2005-02-26 23:32:31 +00:00
subr_autoconf.c in mapply(), call config_match() instead duplicating its code 2005-08-29 19:13:48 +00:00
subr_blist.c - add const. 2005-05-29 22:24:14 +00:00
subr_bufq.c bufq_alloc: fix BUFQ_STRAT_ANY. pointed by Juan RP. 2005-10-17 12:28:21 +00:00
subr_devsw.c
subr_disk_mbr.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
subr_disk.c - change the way to specify a bufq strategy. (by string rather than by number) 2005-10-15 17:29:10 +00:00
subr_evcnt.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
subr_extent.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_log.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_once.c add something like pthread_once(). 2005-10-29 11:13:21 +00:00
subr_pool.c Make the grouplist invalidate function take a grouplist instead of a group. 2005-10-16 02:55:18 +00:00
subr_prf.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_prof.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_prop.c - add const. 2005-05-29 22:24:14 +00:00
subr_userconf.c make use of the locator information: print "?" if a locator is 2005-09-08 14:58:14 +00:00
subr_workqueue.c add a simple "do it in thread context" framework. 2005-10-29 11:10:37 +00:00
subr_xxx.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
sys_generic.c - add const. 2005-05-29 22:24:14 +00:00
sys_pipe.c just use ltsleep rather than lockmgr + PCATCH with horrible timeout dance. 2005-10-29 12:31:07 +00:00
sys_pmc.c
sys_process.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
sys_socket.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
syscalls.c Regen. 2005-09-26 03:04:46 +00:00
syscalls.conf 64 bit inode changes. 2005-08-19 02:04:03 +00:00
syscalls.master some of the extattr syscalls return ssize_t not int. 2005-09-26 03:02:19 +00:00
sysv_ipc.c
sysv_msg.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
sysv_sem.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
sysv_shm.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
tty_bsdpty.c - add const. 2005-05-29 22:24:14 +00:00
tty_conf.c PR-30566: Poll must not return <sys/errno.h> values. 2005-06-21 14:01:11 +00:00
tty_ptm.c Cloning cleanup: 2004-11-30 04:25:43 +00:00
tty_pty.c PR-30566: Poll must not return <sys/errno.h> values. 2005-06-21 14:01:11 +00:00
tty_subr.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
tty_tb.c - add const. 2005-05-29 22:24:14 +00:00
tty_tty.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
tty.c - lock the tty when playing with the kqueue list. 2005-10-13 16:18:43 +00:00
uipc_domain.c Use `l'' and not `curlwp''. Thanks to Peter Postma for catching this. 2005-09-07 18:06:04 +00:00
uipc_mbuf2.c In m_pulldown avoid a prepend to the next mbuf in the chain if the result 2005-05-06 09:40:40 +00:00
uipc_mbuf.c - introduce M_MOVE_PKTHDR and use it where appropriate. 2005-08-18 00:30:58 +00:00
uipc_proto.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
uipc_sem.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
uipc_socket2.c - add const. 2005-05-29 22:24:14 +00:00
uipc_socket.c Check the argument to SO_LINGER. 2005-10-21 17:40:03 +00:00
uipc_syscalls.c In adjust_rights() Use CMSG_SPACE() to calculate the number of 2005-09-03 22:48:35 +00:00
uipc_usrreq.c Honor the user's umask while creating local sockets. Several other systems 2005-08-30 15:03:04 +00:00
vfs_bio.c Properly fix the constipated lossage wrt -Wcast-qual and the sysctl 2005-06-09 02:19:59 +00:00
vfs_cache.c introduce a new function, cache_lookup_raw(), for filesystems which 2004-06-27 08:50:44 +00:00
vfs_getcwd.c 64 bit inode changes. 2005-08-19 02:04:03 +00:00
vfs_hooks.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
vfs_init.c Use ANSI function decls. 2005-06-05 23:47:48 +00:00
vfs_lockf.c use ap->a_flags instead of fl->f_type; pointed out by: Devon H. O'Dell 2005-10-28 15:37:23 +00:00
vfs_lookup.c A few tweaks to magic symlinks: 2005-07-06 18:53:00 +00:00
vfs_subr.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
vfs_syscalls.c change_utimes: use nanotime(9) rather than time(9). 2005-10-01 06:13:42 +00:00
vfs_vnops.c copystr and copyinstr return int, not void. 2005-10-15 21:18:54 +00:00
vfs_xattr.c Move the rest of the extattr stuff into vfs_xattr.c 2005-07-10 22:10:00 +00:00
vnode_if.c regen. 2005-10-08 06:15:30 +00:00
vnode_if.sh remove some trailing spaces in generated output when removing $s from $NetBSD$ 2005-02-26 22:06:38 +00:00
vnode_if.src Correct typo in a comment. ok'ed by wiz@. 2005-09-25 12:50:14 +00:00