Open majestrate opened 1 year ago
metric for measuring perf improvement:
ratio of cumulative cpu usage across workers to cpu usage in the omq proxy thread.
higher ratio is better.
@jagerman please test this on testnet. make sure to measure for perf before and after flipping.
it has a noticeable improvement on exit.loki. less context switches, lower system load average and higher throughput.
i'll test it on my service node this week to see what it improves.
getting this into a point release would probably speed the network up a bit.
when we queue cpu heavy work in lokinet to worker threads we make 1 job per function call. we call a lot of jobs so this coleuses the jobs into 1 job that we push off at the end of the event loop cycle, reducing the number of jobs going across the omq proxy thread, in theory reducing cpu usage.
@jagerman i am curious how much perf increase we get on snodes, so i'd like to have this tested on testnet