Commit a79fdb9
committed
test: Make the load-hog unit produce load more reliably
The test was spawning 500 copies of "dd" but the whole systemd unit
would deactive itself once all the spawning was done. This did produce
a significant load spike since the spawning itself took a long enough
time, but only for a couple of seconds. The average sometimes missed
that spike.
Instead, let's just spawn a smaller number of "dd"s and let them run
forever, and also keep the unit active forever. Then we can wait for
the load average to rise without hurry.
The smaller number of "dd"s also helps when "dd" comes from uutils:
That version takes about 3 times as much RAM as the traditional
coreutils version, and spawning 500 of them would produce aborts and
core dumps and all kinds of chaos and would sometimes produce an error
in the shell itself that does all the spawning, which would cut the
load spike short.1 parent 10d3005 commit a79fdb9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
| |||
0 commit comments