diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-03-27 14:36:01 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-03 11:26:05 +0000 |
| commit | fed899ed4a625d124a881a2da67430be5d15325c (patch) | |
| tree | 9138f5c2f506b22efb1a84af5a1d21063f9b3dfd /pkg/instance/instance.go | |
| parent | afbcc4a93d840f52b2579530d638654a4a1e5447 (diff) | |
pkg/rpctype: make RPC compression optional
RPC compression take up to 10% of CPU time in profiles,
but it's unlikely to be beneficial for local VM runs
(we are mostly copying memory in this case).
Enable RPC compression based on the VM type
(local VM don't use it, remove machines use it).
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 7b4ca5c71..1e4787c94 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -456,11 +456,12 @@ func (inst *inst) testRepro() ([]byte, error) { } type OptionalFuzzerArgs struct { - Slowdown int - RawCover bool - SandboxArg int - PprofPort int - ResetAccState bool + Slowdown int + RawCover bool + SandboxArg int + PprofPort int + ResetAccState bool + NetCompression bool } type FuzzerCmdArgs struct { @@ -504,6 +505,7 @@ func FuzzerCmd(args *FuzzerCmdArgs) string { {Name: "sandbox_arg", Value: fmt.Sprint(args.Optional.SandboxArg)}, {Name: "pprof_port", Value: fmt.Sprint(args.Optional.PprofPort)}, {Name: "reset_acc_state", Value: fmt.Sprint(args.Optional.ResetAccState)}, + {Name: "net_compression", Value: fmt.Sprint(args.Optional.NetCompression)}, } optionalArg = " " + tool.OptionalFlags(flags) } |
