Skip to content

Reduce (CPU) overhead of traffic generation #10795

Closed
@mafredri

Description

@mafredri

The traffic generation currently uses a needless amount of CPU by launching a Bash instance in the workspace. It also relies on crypto/rand to produce random output.

To reduce CPU, we can switch bash to dd to allow both echo and non-echo operation dd if=/dev/stdin of=/dev/stdout|/dev/null bs=[payload size].

We can also switch crypto/rand to math/rand with a seed to allow reproducible pseudo-random output.

Metadata

Metadata

Assignees

Labels

bug riskProne to bugsscaletestIssues related to scale testing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions