DiskIO / NetIO: updates default value of waitTime to reduce latency

Also corrects docs.
This commit is contained in:
Carter Li
2026-08-15 08:53:00 +08:00
parent 4dc27b365f
commit 8d82eedaef
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -2655,8 +2655,8 @@
},
"waitTime": {
"type": "integer",
"description": "Wait time (in ms). Disk I/O = (totalBytesEnd - totalBytesStart) / waitTime",
"default": 200,
"description": "Wait time (in ms) used to measure the I/O rate (calculated in bytes/sec).\nAvoid setting this too low, as the kernel requires time to accurately update counters.\nIgnored if 'detectTotal' is true.",
"default": 500,
"minimum": 1
},
"key": {
@@ -3556,8 +3556,8 @@
},
"waitTime": {
"type": "integer",
"description": "Wait time (in ms). Net I/O = (totalBytesEnd - totalBytesStart) / waitTime",
"default": 200,
"description": "Wait time (in ms) used to measure the I/O rate (calculated in bytes/sec).\nAvoid setting this too low, as the kernel requires time to accurately update counters.\nIgnored if 'detectTotal' is true.",
"default": 500,
"minimum": 1
},
"key": {
+1 -1
View File
@@ -161,7 +161,7 @@ void ffInitDiskIOOptions(FFDiskIOOptions* options) {
ffStrbufInit(&options->namePrefix);
options->detectTotal = false;
options->waitTime = 1000;
options->waitTime = 500;
}
void ffDestroyDiskIOOptions(FFDiskIOOptions* options) {
+1 -1
View File
@@ -188,7 +188,7 @@ void ffInitNetIOOptions(FFNetIOOptions* options) {
#endif
;
options->detectTotal = false;
options->waitTime = 1000;
options->waitTime = 500;
}
void ffDestroyNetIOOptions(FFNetIOOptions* options) {