aboutsummaryrefslogtreecommitdiffstats
path: root/syz-hub
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-06-26 13:59:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-06-26 13:59:47 +0200
commite726bdf922950225c79fc81b54b73ea8ecda7921 (patch)
treeeeba6e9173130719efd9a37888aa7787b0237fbd /syz-hub
parent826b5aabc4b92d8e584b1ca47ad3b8fdc4a4d5ce (diff)
syz-manager: make rpc communication finer grained
RPC package does excessive caching per connection, so if a larger object is ever sent in any direction, rpc connection consumes large amount of memory persistently. This makes manager consume gigs of memory with large number of VMs and larger corpus/coverage. Make all communication done in very limited batches.
Diffstat (limited to 'syz-hub')
-rw-r--r--syz-hub/state/state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-hub/state/state.go b/syz-hub/state/state.go
index cbeaff9f0..7ccdf1827 100644
--- a/syz-hub/state/state.go
+++ b/syz-hub/state/state.go
@@ -289,7 +289,7 @@ func (st *State) pendingInputs(mgr *Manager) ([][]byte, int, error) {
maxSeq := st.corpusSeq
more := 0
// Send at most that many records (rounded up to next seq number).
- const maxRecords = 1000
+ const maxRecords = 100
if len(records) > maxRecords {
sort.Sort(recordSeqSorter(records))
pos := maxRecords