How to benchmark Linux threaded programs?

ε祈祈猫儿з 提交于 2019-12-07 20:58:43

问题


I'm trying to compare the performance of threaded programs (on Linux). Since the programs use different thread synchronization methods and different lock granularity, running the programs on a shared server or desktop would not be good, since the other tasks may interfere with the scheduling of my programs. I don't have dedicated hosts, so I thought that using qemu would be a good option.

What I want to know is:

  • Are there any alternatives for this task?
  • I suppose that there is no way to reproduce scheduling done by guest Linux system on qemu, if I - need to? (Suppose my program goes unusually skow or fast -- I'd like to know if I can run it again, but keeping exactly the same scheduling for its threads). Or is there a way?

来源:https://stackoverflow.com/questions/11034342/how-to-benchmark-linux-threaded-programs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!