From 74ea006d928874144175079ddc9e6133e477db40 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Fri, 23 Mar 2012 18:17:08 -0700 Subject: [PATCH] Increase the quota and cpu fraction to get max cfs performance. --- examples/cpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cpu.py b/examples/cpu.py index 0465967..c03aa2b 100755 --- a/examples/cpu.py +++ b/examples/cpu.py @@ -24,7 +24,7 @@ def waitListening(client, server, port): sleep(.5) -def bwtest( cpuLimits, period_us=10000, seconds=5 ): +def bwtest( cpuLimits, period_us=100000, seconds=5 ): """Example/test of link and CPU bandwidth limits cpu: cpu limit as fraction of overall CPU time""" @@ -76,6 +76,6 @@ def dump( results ): if __name__ == '__main__': setLogLevel( 'info' ) - limits = [ .4, .3, .2, .1 ] + limits = [ .45, .4, .3, .2, .1 ] results = bwtest( limits ) dump( results )