cvs commit: src/sys/kern kern_intr.c kern_subr.c kern_switch.c
kern_synch.c kern_thread.c sched_4bsd.c sched_ule.c
subr_sleepqueue.c subr_trap.c subr_turnstile.c src/sys/sys proc.h
sched.h sysctl.h src/sys/vm vm_glue.c vm_zeroidle.c
Jeff Roberson
jeff at FreeBSD.org
Thu Apr 17 04:20:11 UTC 2008
jeff 2008-04-17 04:20:11 UTC
FreeBSD src repository
Modified files:
sys/kern kern_intr.c kern_subr.c kern_switch.c
kern_synch.c kern_thread.c sched_4bsd.c
sched_ule.c subr_sleepqueue.c subr_trap.c
subr_turnstile.c
sys/sys proc.h sched.h sysctl.h
sys/vm vm_glue.c vm_zeroidle.c
Log:
- Make SCHED_STATS more generic by adding a wrapper to create the
variables and sysctl nodes.
- In reset walk the children of kern_sched_stats and reset the counters
via the oid_arg1 pointer. This allows us to add arbitrary counters to
the tree and still reset them properly.
- Define a set of switch types to be passed with flags to mi_switch().
These types are named SWT_*. These types correspond to SCHED_STATS
counters and are automatically handled in this way.
- Make the new SWT_ types more specific than the older switch stats.
There are now stats for idle switches, remote idle wakeups, remote
preemption ithreads idling, etc.
- Add switch statistics for ULE's pickcpu algorithm. These stats include
how much migration there is, how often affinity was successful, how
often threads were migrated to the local cpu on wakeup, etc.
Sponsored by: Nokia
Revision Changes Path
1.163 +2 -2 src/sys/kern/kern_intr.c
1.104 +1 -1 src/sys/kern/kern_subr.c
1.144 +41 -25 src/sys/kern/kern_switch.c
1.311 +5 -1 src/sys/kern/kern_synch.c
1.274 +2 -2 src/sys/kern/kern_thread.c
1.124 +4 -6 src/sys/kern/sched_4bsd.c
1.242 +30 -8 src/sys/kern/sched_ule.c
1.53 +2 -4 src/sys/kern/subr_sleepqueue.c
1.304 +1 -2 src/sys/kern/subr_trap.c
1.173 +1 -2 src/sys/kern/subr_turnstile.c
1.511 +20 -4 src/sys/sys/proc.h
1.39 +10 -8 src/sys/sys/sched.h
1.157 +1 -0 src/sys/sys/sysctl.h
1.231 +1 -1 src/sys/vm/vm_glue.c
1.52 +1 -1 src/sys/vm/vm_zeroidle.c
More information about the cvs-src
mailing list