From 132d4d6fd46ed8c15971243dba4c914dc34316bc Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sun, 7 May 2006 14:37:03 +0000 Subject: [PATCH] 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 --- coregrind/m_scheduler/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2