Change --search behavior to abort once goodput qps is < 10% of peak qps.
This commit is contained in:
parent
973ef24eca
commit
6ffebb2ec7
10
mutilate.cc
10
mutilate.cc
@ -365,7 +365,7 @@ int main(int argc, char **argv) {
|
|||||||
I("Search-mode. Find QPS @ %dus %dth percentile.", x, n);
|
I("Search-mode. Find QPS @ %dus %dth percentile.", x, n);
|
||||||
|
|
||||||
int high_qps = 2000000;
|
int high_qps = 2000000;
|
||||||
int low_qps = 5000;
|
int low_qps = 1; // 5000;
|
||||||
double nth;
|
double nth;
|
||||||
int cur_qps;
|
int cur_qps;
|
||||||
|
|
||||||
@ -379,8 +379,8 @@ int main(int argc, char **argv) {
|
|||||||
I("peak qps = %d", high_qps);
|
I("peak qps = %d", high_qps);
|
||||||
|
|
||||||
if (nth > x) {
|
if (nth > x) {
|
||||||
|
// while ((high_qps > low_qps * 1.02) && cur_qps > 10000) {
|
||||||
while ((high_qps > low_qps * 1.02) && cur_qps > 10000) {
|
while ((high_qps > low_qps * 1.02) && cur_qps > (peak_qps * .1)) {
|
||||||
cur_qps = (high_qps + low_qps) / 2;
|
cur_qps = (high_qps + low_qps) / 2;
|
||||||
|
|
||||||
args_to_options(&options);
|
args_to_options(&options);
|
||||||
@ -400,7 +400,9 @@ int main(int argc, char **argv) {
|
|||||||
else low_qps = cur_qps;
|
else low_qps = cur_qps;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (nth > x && cur_qps > 10000) { // > low_qps) { // 10000) {
|
// while (nth > x && cur_qps > 10000) { // > low_qps) { // 10000) {
|
||||||
|
// while (nth > x && cur_qps > 10000 && cur_qps > (low_qps * 0.90)) {
|
||||||
|
while (nth > x && cur_qps > (peak_qps * .1) && cur_qps > (low_qps * 0.90)) {
|
||||||
cur_qps = cur_qps * 98 / 100;
|
cur_qps = cur_qps * 98 / 100;
|
||||||
|
|
||||||
args_to_options(&options);
|
args_to_options(&options);
|
||||||
|
Loading…
Reference in New Issue
Block a user