Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ void initSweep() {
// Companion write sweep: the read sweep above only adds read traffic, which
// leaves feedsim's read:write ratio above prod's. FEEDSIM_SWEEP_WN streaming
// writes/call over a separate DRAM-resident buffer raise the write share to
// move the ratio toward prod. Default 16 is a balanced cross-platform value;
// set FEEDSIM_SWEEP_WN=0 to disable (skips buffer allocation). Write
// stride/size default to the read knobs.
g_sweep.wn = envInt("FEEDSIM_SWEEP_WN", 16);
// move the ratio toward prod. Default 0 disables the sweep (no-op, skips
// buffer allocation); set FEEDSIM_SWEEP_WN>0 to enable. Write stride/size
// default to the read knobs.
g_sweep.wn = envInt("FEEDSIM_SWEEP_WN", 0);
if (g_sweep.wn < 0) {
g_sweep.wn = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ float runStrideSweep(uint64_t seed);
// separate buffer of FEEDSIM_SWEEP_WMB megabytes, stepping FEEDSIM_SWEEP_WSTRIDE
// floats each write, to raise the write share of DRAM bandwidth toward prod's
// read:write ratio. Streaming stores keep the traffic as pure writes (no
// read-for-ownership). Knobs are read once from the environment; the default 16
// is a balanced cross-platform value, and FEEDSIM_SWEEP_WN=0 disables the
// sweep (no-op, skips buffer allocation). Write stride/size default to the read
// read-for-ownership). Knobs are read once from the environment; the default 0
// disables the sweep (no-op, skips buffer allocation) and FEEDSIM_SWEEP_WN>0
// enables it. Write stride/size default to the read
// knobs. Returns FEEDSIM_SWEEP_WN (cached after first call, which allocates the
// write buffer).
int sweepWritesPerCall();
Expand Down
Loading