Skip to content

Commit 94375a6

Browse files
Kaiweitufacebook-github-bot
authored andcommitted
Tune down the end-to-end runtime of tao_bench_standalone_mini
Differential Revision: D115125837
1 parent 27cfa44 commit 94375a6

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

benchpress/config/jobs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,21 +1157,22 @@
11571157
- '--ipv4={ipv4}'
11581158
vars:
11591159
- 'num_servers=0'
1160-
- 'memsize=0.5'
1160+
- 'memsize=0.25'
11611161
- 'fast_threads_ratio=0.75'
11621162
- 'slow_to_fast_ratio=3'
11631163
- 'warmup_time=0'
1164-
- 'test_time=30'
1164+
- 'test_time=15'
11651165
- 'num_clients=2'
1166-
- 'clients_per_thread=0'
1166+
- 'clients_per_thread=190'
11671167
- 'bind_cpu=1'
11681168
- 'bind_mem=1'
1169-
- 'stats_interval=5000'
1169+
- 'stats_interval=1000'
11701170
- 'port_number_start=11211'
11711171
- 'disable_tls=0'
1172-
- 'timeout_buffer=30'
1172+
- 'timeout_buffer=10'
11731173
- 'num_slow_threads=0'
11741174
- 'num_fast_threads=0'
1175+
# 0 = scale the client with usable cores: max(1, cores-6, cores*0.8).
11751176
- 'num_client_threads=0'
11761177
- 'warmup_timeout_buffer=0'
11771178
- 'test_timeout_buffer=0'

packages/tao_bench/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ minimal settings to enable quick testing and validation.
202202
A `breakdown.csv` file will be generated in the results to track runtime breakdowns,
203203
which can be used to filter metrics for the actual benchmark execution time.
204204

205+
#### How to tune the memory usage
206+
207+
`memsize` (the server cache) is the key knob that determines the memory usage of the benchmark.
208+
The default value is `0.25` which allocates about ~200MB memory.
209+
210+
205211
### Result reporting
206212

207213
Once the tao_bench benchmark finishes, benchpress will report the results in JSON format

0 commit comments

Comments
 (0)