From a8632569bf8339f5fa468f99493d4d825db2cb12 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 20 Jan 2017 23:53:40 +0100 Subject: executor: reduce syscall blocking delay from 100ms to 20ms Syscalls frequently block and this affects fuzzing speed. 20ms should be more than enough for a normal syscall to finish. --- executor/executor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 22eea9439..9ef2248be 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -351,12 +351,12 @@ retry: for (;;) { timespec ts = {}; ts.tv_sec = 0; - ts.tv_nsec = (100 - (now - start)) * 1000 * 1000; + ts.tv_nsec = (20 - (now - start)) * 1000 * 1000; syscall(SYS_futex, &th->done, FUTEX_WAIT, 0, &ts); if (__atomic_load_n(&th->done, __ATOMIC_RELAXED)) break; now = current_time_ms(); - if (now - start > 100) + if (now - start > 20) break; } if (__atomic_load_n(&th->done, __ATOMIC_ACQUIRE)) -- cgit mrf-deployment