Date: Thu, 17 Apr 2008 04:20:11 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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 Message-ID: <200804170420.m3H4KBOj032841@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804170420.m3H4KBOj032841>