调度程序模拟器 linsched
如何使用linsched(Linux调度程序模拟器)?需要一个有关如何运行和检查输出的示例。一直在寻找教程并浏览自述文件。不明白如何运行和检查输出。尝试运行 basic_tests 脚本(如 ./basic_tests trivial_bal UNIPROCESSOR)但是,它没有显示任何内容,..提前感谢..
How to use linsched (Linux scheduler simulator)? In need of an example on how to run and check the output. Have been searching for tutorials and also went through the README file. Din't understand how to run and checkout the outputs. Tried running basic_tests script (as ./basic_tests trivial_bal UNIPROCESSOR) but, it din't show up anything, .. Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不可能是唯一遇到此问题的人!运行一个小例子并不是一件容易的事。
对于您想要输出的每个测试(每个人都想要输出,显然编写测试的人除外),在测试末尾添加 linsched_print_task_stats(); 并重新编译。
如果您想添加自己的测试,例如 中的清单 4 http://www.ibm.com/developerworks/linux/library/l-linux-scheduler-simulator/ 这样做:
count
为零或其他合适的值。topo_db
更改为linsched_topo_db
test_new_test
TEST(new_test),
添加到struct test测试[]
,但不在底部,因为最后一个在打印时用作哨兵。void test_new_test(int argc, char **argv);
/basic_tests list
<代码>
trivial_bal
basic_bal1
basic_bal2
球1
新测试
尝试您的新命令
./basic_tests new_test 单处理器
我上面提到的链接对如何解释这些数字有很好的解释。
祝您安排顺利!
You can't be the only one having this problem! It was not trivial to get a small example running.
For every test you want output (everybody wants output, except for the person who wrote the tests obviously), add
linsched_print_task_stats();
at the end of the test and recompile.If you want to add an own test, for example listing 4 in http://www.ibm.com/developerworks/linux/library/l-linux-scheduler-simulator/ do like this:
count
to zero or some other good value.topo_db
tolinsched_topo_db
test_new_test
TEST(new_test),
tostruct test tests[]
, but NOT at the bottom because the last one is used as a sentinel when printing.void test_new_test(int argc, char **argv);
/basic_tests list
trivial_bal
basic_bal1
basic_bal2
bal1
new_test
./basic_tests new_test uniprocessor
The link I mentioned above has a very good explanation on how to interpret the numbers.
Good luck with the scheduling!