From cdafa1cb6598419a8652212dd409e7bf45cf9bf0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 31 Dec 2020 07:52:48 +0100 Subject: syz-manager: increase corpus fetch batch size A corpus of 3166 and max signal of 141819 caused "no outputs" with qemu emulation (too many RPCs required to fetch everything). Increase batch sizes somewhat, should reduce number of RPCs 4x. --- syz-manager/rpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syz-manager/rpc.go b/syz-manager/rpc.go index a42782175..72173aae6 100644 --- a/syz-manager/rpc.go +++ b/syz-manager/rpc.go @@ -331,7 +331,7 @@ func (serv *RPCServer) Poll(a *rpctype.PollArgs, r *rpctype.PollRes) error { // Let rotated VMs run in isolation, don't send them anything. return nil } - r.MaxSignal = f.newMaxSignal.Split(500).Serialize() + r.MaxSignal = f.newMaxSignal.Split(2000).Serialize() if a.NeedCandidates { r.Candidates = serv.mgr.candidateBatch(serv.batchSize) } @@ -341,7 +341,7 @@ func (serv *RPCServer) Poll(a *rpctype.PollArgs, r *rpctype.PollRes) error { // If we do it using the final batchSize, it can be very slow // (batch of size 6 can take more than 10 mins for 50K corpus and slow kernel). // So use a larger batch initially (we use no stats as approximation of initial pump). - const initialBatch = 30 + const initialBatch = 50 if len(a.Stats) == 0 && batchSize < initialBatch { batchSize = initialBatch } -- cgit mrf-deployment