3 ms·
By manually modifying a small amount of code and automatically converting the rest, we managed to transform a large-scale database program from threads to corou
by beef9999 4y ago
By manually modifying a small amount of code and automatically converting the rest, we managed to transform a large-scale database program from threads to coroutines. In some heavy IO and high-concurrency circumstances, it has helped double the database performance.
- menaerus 4y ago> For the sake of fairness, the taskset command was used in the test, and the maximum number of cores for multi-threaded programs is also limited to 8. I understand this as if you have run your benchmarks against the machine with more cores than 8 but you have used taskset to artificially limit the benchmark to only 8 cores? Also I believe that your taskset command as you explain in https://github.com/data-accelerator/rocksdb/blob/photon/photon-bench.md https://github.com/data-accelerator/rocksdb/blob/photon/phot... > # Edit benchmark.sh, add `taskset -c 1,8` before the ./db_bench command. does not do what you might think is doing. I think you wanted taskset -c 1-8 instead.