linux/tools/testing/selftests/rcutorture/bin
Paul E. McKenney 5395467103 rcutorture: Do better bin packing
Running the standard set of rcutorture tests on 24 CPUs results in
the following sub-optimal schedule:

	----start batch----
	 TREE07 16
	----start batch----
	 TREE08 16
	 SRCU-P 8
	----start batch----
	 TREE01 8
	 TREE02 8
	 TREE03 8
	----start batch----
	 TREE04 8
	 TREE05 8
	 TREE06 8
	----start batch----
	 SRCU-N 4
	 TINY01 1
	 TINY02 1
	 TREE09 1

If one of the eight-CPU runs were to be moved into the first batch,
the test suite would complete in four batches rather than five.

This commit therefore uses a greedy algorithm to re-order the test
entries so that the sequential batching will produce an optimal schedule
in this case:

	----start batch----
	 TREE07 16
	 SRCU-P 8
	----start batch----
	 TREE08 16
	 TREE01 8
	----start batch----
	 TREE02 8
	 TREE03 8
	 TREE04 8
	----start batch----
	 TREE05 8
	 TREE06 8
	 SRCU-N 4
	 TINY01 1
	 TINY02 1
	 TREE09 1

Please note that this is still not an optimal bin-packing algorithm,
however, it does produce optimal solutions for most common scenarios.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
2014-02-18 12:26:52 -08:00
..
config2frag.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
configcheck.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
configinit.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
configNR_CPUS.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
cpus2use.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
functions.sh rcutorture: Enable concurrent rcutorture runs 2014-02-18 12:26:20 -08:00
kvm-build.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
kvm-recheck.sh rcutorture: Enable concurrent rcutorture runs 2014-02-18 12:26:20 -08:00
kvm-test-1-rcu.sh rcutorture: Fix results-directory error message 2014-02-18 12:26:30 -08:00
kvm.sh rcutorture: Do better bin packing 2014-02-18 12:26:52 -08:00
parse-build.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
parse-console.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00
parse-rcutorture.sh rcutorture: Stop tracking FSF's postal address 2013-12-03 10:11:19 -08:00