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..
Share
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:
countto zero or some other good value.topo_dbtolinsched_topo_dbtest_new_testTEST(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 listtrivial_bal
basic_bal1
basic_bal2
bal1
new_test
./basic_tests new_test uniprocessorThe link I mentioned above has a very good explanation on how to interpret the numbers.
Good luck with the scheduling!