From: Julian Seward Date: Sun, 7 May 2006 14:37:03 +0000 (+0000) Subject: Increase scheduling quantum to 100k basic blocks. Nowadays even X-Git-Tag: svn/VALGRIND_3_2_0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=132d4d6fd46ed8c15971243dba4c914dc34316bc;p=thirdparty%2Fvalgrind.git Increase scheduling quantum to 100k basic blocks. Nowadays even modest cpus can run 5-10M memcheck'd bbs per second and the previous limit of 50k gives a 100Hz switch rate, which causes cache pollution (a known performance problem) and other context-switch overheads. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5882 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index fe8d1ac5c7..17e6c193f9 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -96,7 +96,7 @@ /* Defines the thread-scheduling timeslice, in terms of the number of basic blocks we attempt to run each thread for. Smaller values give finer interleaving but much increased scheduling overheads. */ -#define SCHEDULING_QUANTUM 50000 +#define SCHEDULING_QUANTUM 100000 /* If False, a fault is Valgrind-internal (ie, a bug) */ Bool VG_(in_generated_code) = False;