Open scottlii opened 11 months ago
@scottlii How did you populate the test data?
@scottlii How did you populate the test data?
@sundb I populated data with this script every time:(Not elegant but didn’t know how to set expire time in memtier_benchmark)
# 80bytes data prepare
for((i=0;i<150001;i++)); do
redis-cli -h 10.195.93.0 -p 6000 SETEX TEST_XXXXXXXXX_XXXXXX_XXXXX_XXXXXX_XXX_XXXXXX##XXX_XXXXXXXXXXXXXXXX_260_202310092050_${i} 2592000 XXXXXXXXXX done
Each test is 100% hits. And Here I post the test result generated by memtier_benchmark.
See test_report.txt
@scottlii Thx, I'll test it on my local machine.
@scottlii could you provide your config files? some features perhaps will reduce the performance
@scottlii could you provide your config files? some features perhaps will reduce the performance
@judeng @sundb Okey, Here is the config file, see conf_example.txt And mention these key points:
io-threads 1
cluster-enabled yes
and assign slots.save ""
and daemonize yes
@scottlii I believe if we profile this we should get to the same conclusions of comment in https://github.com/redis/redis/issues/10981#issuecomment-1185134267
I was able to measure ~=3.7% overhead, which was described/justified before in https://github.com/redis/redis/issues/10460 due to the following features:
Funtion | %CPU time | Note |
---|---|---|
updateClientMemUsage | 1.50% | (after the improvement of #10401 ) |
ACLCheckAllUserCommandPerm | 1.20% | #9974 |
updateCommandLatencyHistogram (can be disabled) | 0.80% | #9462 |
Notice the updateCommandLatencyHistogram can be disabled. the ACL and memory tracking no.
Hi, I tested different version with memtier_benchmark, 7.x and 6.x still about 3%~4% perfomace degrade compare with 5.x in my test.
My test is GET (data is 80 byte of key lenth + 10 byte of value lenth ) with pipeline=1 and io-threads 1. The metric is peak ops of different version with CPU 99%+ and P99 < 2ms.
My test script is
I don't know if there are some features introduced that cause performance degradation. Or is There any better performance metrics?
thx~^-^