]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Increase scheduling quantum to 100k basic blocks. Nowadays even
authorJulian Seward <jseward@acm.org>
Sun, 7 May 2006 14:37:03 +0000 (14:37 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 7 May 2006 14:37:03 +0000 (14:37 +0000)
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

index fe8d1ac5c788fabb836903596670836bb98a3018..17e6c193f932012f6365554a70cf8bbb0869ee66 100644 (file)
@@ -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;