ple: print the direct-read probe's rate when it is fine
This commit is contained in:
1 parent
3157c78935
commit
da6f23f8e9
2 files changed
+4
No files matched your search
@@ -2894,6 +2894,8 @@ int main(int argc, char** argv) {
|
||||
if (pio.mode == strata::kernels::PleIo::Direct && std::getenv("STRATA_PLE_PROBE") == nullptr) {
|
||||
constexpr double kSlowRowsPerS = 15000.0; // ~60 MB/s of 4 KiB pages; a healthy NVMe is >100k
|
||||
const double rps = ple_direct_rows_per_s(ple_table);
|
||||
if (rps >= kSlowRowsPerS)
|
||||
std::fprintf(stderr, "strata generate: PLE direct read probe: %.0f rows/s (fine)\n", rps);
|
||||
if (rps > 0 && rps < kSlowRowsPerS) {
|
||||
if (!o.ple_io_explicit) {
|
||||
std::fprintf(stderr, "strata generate: --ple-io direct measures slow here (%.0f rows/s, about %.0f MB/s of "
|
||||
|
||||
Reference in new issue
Block a user