Go to file
Shawn Bohrer 6e217da60d Compute load in nanoseconds
When computing the load_slice per irq we take the topology object load
divided by the interrupt count for the object.  Both of these values are
integervalues which means if the interrupt count is larger than the load
we get a load_slice of 0.  It seems likely that on modern processors
interrupt durations will be at least multiple nanoseconds long so if we
compute load in nanoseconds it should be >= the interrupt count.

The load is recomputed every SLEEP_INTERVAL which is currently 10s which
makes the maximum possible load 10e9 which easily fits in a uint64_t.

Note: corrected error checking on sysconf usage

Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
2013-02-18 14:08:57 -05:00
glib-local glib-local: ad call for g_list_remove 2012-08-31 13:12:35 -04:00
misc add irqbalance args variable to env file 2012-07-12 11:25:02 -04:00
.gitignore irqbalance: Misc build enhancements 2012-03-26 10:19:00 -04:00
activate.c activate_mapping: All masks are valid when no affinity_hint is supplied 2013-02-18 14:08:43 -05:00
AUTHORS Add autotools scripts to irqbalance 2009-09-01 15:50:39 +00:00
autogen.sh Make sure the m4 directory is created in autogen.sh 2012-06-20 11:45:37 -04:00
bitmap.c Fix affinity_hint code. 2010-08-10 13:32:58 +00:00
bitmap.h initial import 2006-12-09 15:59:16 +00:00
classify.c irqbalance: add numa_node setting to polscript 2013-02-13 15:21:46 -05:00
configure.ac Bump version number to 1.0.5 2012-11-08 16:27:42 -05:00
constants.h Compute load in nanoseconds 2013-02-18 14:08:57 -05:00
COPYING Adding missing configure files 2009-10-02 18:22:21 +00:00
cpumask.h Bump the NR_CPUS define to 4096 in irqbalance. That makes cpumask allocations 2010-07-26 18:51:35 +00:00
cputree.c check for conflicts between banned_cpus and affinity_hint 2013-01-29 11:44:42 -05:00
irqbalance.1 irqbalance: remove --banscript option from man page 2013-02-13 15:35:56 -05:00
irqbalance.c Compute load in nanoseconds 2013-02-18 14:08:57 -05:00
irqbalance.h Compute load in nanoseconds 2013-02-18 14:08:57 -05:00
irqlist.c consolidate logging 2012-11-08 16:23:50 -05:00
Makefile.am Makefile.am: Remove INSTALL file from EXTRA_DIST 2012-08-27 11:26:54 -04:00
non-atomic.h initial import 2006-12-09 15:59:16 +00:00
numa.c irqbalance: some minor hardening of return value checks. 2012-12-11 13:32:06 -05:00
placement.c consolidate logging 2012-11-08 16:23:50 -05:00
procinterrupts.c Compute load in nanoseconds 2013-02-18 14:08:57 -05:00
types.h Fix up load estimator 2011-10-11 14:19:21 -04:00