Replacing the list address with one specific for scheduler tools.
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
Hi all,
I saw the energy model related patches have been posted [1], so i'd like to ask some questions for the tool rt-app:
I downloaded rt-app from the address [2];
For the case "rt-app [4]: mp3 playback use-case model", is it the same one with doc/examples/mp3-long.json?
For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
i read the case doc/examples/tutorial/example3.json, its comments say "starts with a 10% load during 1sec (100 loops) and then increase 90% for the next sec (100 loops)".
it's confused me due i cannot calculate the same workload with the comment clarified. For the phase "light", it only specifies the flow as run 1ms + timer 30ms, so the workload only have 1/30 = 3.33%; for the phase "heavy", it will get workload = 4/30 = 13.33%;
Could you help confirm if i wrongly understand this case?
{ /* * Simple use case which starts with a 10% load during 1sec (100 loops) * and then increase to 90% for the next sec (100 loops) */ "tasks" : { "thread0" : { "instance" : 12, "loop" : 1, "phases" : { "light" : { "loop" : 10, "run" : 1000, "timer" : { "ref" : "unique", "period" : 30000 } }, "heavy" : { "loop" : 10, "run" : 4000, "timer" : { "ref" : "unique", "period" : 30000 } } } } }, "global" : { "logdir" : "./", "log_basename" : "rt-app3", "ftrace" : true, "gnuplot" : true } }
[1] http://thread.gmane.org/gmane.linux.power-management.general/62093 [2] https://github.com/scheduler-tools/rt-app.git exp/eas_v5
Thanks, Leo Yan
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
Replacing the list address with one specific for scheduler tools.
Thanks, Amit. Could someone help answer below questions?
Thanks, Leo Yan
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
Hi all,
I saw the energy model related patches have been posted [1], so i'd like to ask some questions for the tool rt-app:
I downloaded rt-app from the address [2];
For the case "rt-app [4]: mp3 playback use-case model", is it the same one with doc/examples/mp3-long.json?
For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
i read the case doc/examples/tutorial/example3.json, its comments say "starts with a 10% load during 1sec (100 loops) and then increase 90% for the next sec (100 loops)".
it's confused me due i cannot calculate the same workload with the comment clarified. For the phase "light", it only specifies the flow as run 1ms + timer 30ms, so the workload only have 1/30 = 3.33%; for the phase "heavy", it will get workload = 4/30 = 13.33%;
Could you help confirm if i wrongly understand this case?
{ /* * Simple use case which starts with a 10% load during 1sec (100 loops) * and then increase to 90% for the next sec (100 loops) */ "tasks" : { "thread0" : { "instance" : 12, "loop" : 1, "phases" : { "light" : { "loop" : 10, "run" : 1000, "timer" : { "ref" : "unique", "period" : 30000 } }, "heavy" : { "loop" : 10, "run" : 4000, "timer" : { "ref" : "unique", "period" : 30000 } } } } }, "global" : { "logdir" : "./", "log_basename" : "rt-app3", "ftrace" : true, "gnuplot" : true } }
[1] http://thread.gmane.org/gmane.linux.power-management.general/62093 [2] https://github.com/scheduler-tools/rt-app.git exp/eas_v5
Thanks, Leo Yan
Hi,
On 19 July 2015 at 11:27, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
Replacing the list address with one specific for scheduler tools.
Thanks, Amit. Could someone help answer below questions?
Thanks, Leo Yan
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
Hi all,
I saw the energy model related patches have been posted [1], so i'd like to ask some questions for the tool rt-app:
I downloaded rt-app from the address [2];
For the case "rt-app [4]: mp3 playback use-case model", is it the same one with doc/examples/mp3-long.json?
Yes, that's should be the one that has been used by Morten
- For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
In order to create the different use cases described above, you can either create the json file from scratch or you can use the tune_json.py script As an example, ./doc/tune_json.py -f doc/examples/template.json --period 2000 --instance 5 --load 6 will create a workload.json file with 5 tasks with a load of 6% on a period of 2000us
Then, you will have to update manually the duration which is 6 seconds by default and tune_json.py can't update it for now... We are going to add this option
i read the case doc/examples/tutorial/example3.json, its comments say "starts with a 10% load during 1sec (100 loops) and then increase 90% for the next sec (100 loops)".
it's confused me due i cannot calculate the same workload with the comment clarified. For the phase "light", it only specifies the flow as run 1ms + timer 30ms, so the workload only have 1/30 = 3.33%; for the phase "heavy", it will get workload = 4/30 = 13.33%;
Could you help confirm if i wrongly understand this case?
It looks like the comments are no more aligned with the events of the json file. the run events should be 3000 for the light phase and 27000 for the heavy phase. I'm going to fix that
Regards, Vincent
{ /* * Simple use case which starts with a 10% load during 1sec (100 loops) * and then increase to 90% for the next sec (100 loops) */ "tasks" : { "thread0" : { "instance" : 12, "loop" : 1, "phases" : { "light" : { "loop" : 10, "run" : 1000, "timer" : { "ref" : "unique", "period" : 30000 } }, "heavy" : { "loop" : 10, "run" : 4000, "timer" : { "ref" : "unique", "period" : 30000 } } } } }, "global" : { "logdir" : "./", "log_basename" : "rt-app3", "ftrace" : true, "gnuplot" : true } }
[1] http://thread.gmane.org/gmane.linux.power-management.general/62093 [2] https://github.com/scheduler-tools/rt-app.git exp/eas_v5
Thanks, Leo Yan
Sched-tools mailing list Sched-tools@lists.linaro.org https://lists.linaro.org/mailman/listinfo/sched-tools
On Tue, Jul 28, 2015 at 10:11:26AM +0200, Vincent Guittot wrote:
On 19 July 2015 at 11:27, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
Hi all,
I saw the energy model related patches have been posted [1], so i'd like to ask some questions for the tool rt-app:
I downloaded rt-app from the address [2];
For the case "rt-app [4]: mp3 playback use-case model", is it the same one with doc/examples/mp3-long.json?
Yes, that's should be the one that has been used by Morten
- For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
In order to create the different use cases described above, you can either create the json file from scratch or you can use the tune_json.py script As an example, ./doc/tune_json.py -f doc/examples/template.json --period 2000 --instance 5 --load 6 will create a workload.json file with 5 tasks with a load of 6% on a period of 2000us
For more precious, the command should be: ./doc/tune_json.py -f doc/examples/spreading-tasks.json --period 2000 --instance 5 --load 6 --duration 20
We can use spreading-tasks.json as template, right? :)
i read the case doc/examples/tutorial/example3.json, its comments say "starts with a 10% load during 1sec (100 loops) and then increase 90% for the next sec (100 loops)".
it's confused me due i cannot calculate the same workload with the comment clarified. For the phase "light", it only specifies the flow as run 1ms + timer 30ms, so the workload only have 1/30 = 3.33%; for the phase "heavy", it will get workload = 4/30 = 13.33%;
Could you help confirm if i wrongly understand this case?
It looks like the comments are no more aligned with the events of the json file. the run events should be 3000 for the light phase and 27000 for the heavy phase. I'm going to fix that
Thanks for confirmation.
Thanks, Leo Yan
On 29 July 2015 at 16:54, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 28, 2015 at 10:11:26AM +0200, Vincent Guittot wrote:
On 19 July 2015 at 11:27, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
Hi all,
I saw the energy model related patches have been posted [1], so i'd like to ask some questions for the tool rt-app:
I downloaded rt-app from the address [2];
For the case "rt-app [4]: mp3 playback use-case model", is it the same one with doc/examples/mp3-long.json?
Yes, that's should be the one that has been used by Morten
- For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
In order to create the different use cases described above, you can either create the json file from scratch or you can use the tune_json.py script As an example, ./doc/tune_json.py -f doc/examples/template.json --period 2000 --instance 5 --load 6 will create a workload.json file with 5 tasks with a load of 6% on a period of 2000us
For more precious, the command should be: ./doc/tune_json.py -f doc/examples/spreading-tasks.json --period 2000 --instance 5 --load 6 --duration 20
We can use spreading-tasks.json as template, right? :)
tune_json.py can be used with any json file but for creating a workload of 6% as described by Morten, you should use template.json because spreading.json has 2 phases (1 light and 1 heavy) whereas we need only one. Nevertheless, your command will modify both phases of spreading-task.json and set their parameters to the same value so at the end, the behavior should be similar
Regards, Vincent
i read the case doc/examples/tutorial/example3.json, its comments say "starts with a 10% load during 1sec (100 loops) and then increase 90% for the next sec (100 loops)".
it's confused me due i cannot calculate the same workload with the comment clarified. For the phase "light", it only specifies the flow as run 1ms + timer 30ms, so the workload only have 1/30 = 3.33%; for the phase "heavy", it will get workload = 4/30 = 13.33%;
Could you help confirm if i wrongly understand this case?
It looks like the comments are no more aligned with the events of the json file. the run events should be 3000 for the light phase and 27000 for the heavy phase. I'm going to fix that
Thanks for confirmation.
Thanks, Leo Yan
On Wed, Jul 29, 2015 at 05:04:26PM +0200, Vincent Guittot wrote:
On 29 July 2015 at 16:54, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 28, 2015 at 10:11:26AM +0200, Vincent Guittot wrote:
On 19 July 2015 at 11:27, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
[...]
- For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic (2ms) tasks for 30s", i have not seen there have .json scripts for these cases; so could you help point where i can get related scripts?
In order to create the different use cases described above, you can either create the json file from scratch or you can use the tune_json.py script As an example, ./doc/tune_json.py -f doc/examples/template.json --period 2000 --instance 5 --load 6 will create a workload.json file with 5 tasks with a load of 6% on a period of 2000us
For more precious, the command should be: ./doc/tune_json.py -f doc/examples/spreading-tasks.json --period 2000 --instance 5 --load 6 --duration 20
We can use spreading-tasks.json as template, right? :)
tune_json.py can be used with any json file but for creating a workload of 6% as described by Morten, you should use template.json because spreading.json has 2 phases (1 light and 1 heavy) whereas we need only one. Nevertheless, your command will modify both phases of spreading-task.json and set their parameters to the same value so at the end, the behavior should be similar
Got it, but i have _NOT_ seen the file "template.json"; so just want to confirm if this file may be in other branch but not "eas_v5"?
Thanks, Leo Yan
On 29 July 2015 at 17:33, Leo Yan leo.yan@linaro.org wrote:
On Wed, Jul 29, 2015 at 05:04:26PM +0200, Vincent Guittot wrote:
On 29 July 2015 at 16:54, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 28, 2015 at 10:11:26AM +0200, Vincent Guittot wrote:
On 19 July 2015 at 11:27, Leo Yan leo.yan@linaro.org wrote:
On Tue, Jul 14, 2015 at 12:46:56PM +0530, Amit Kucheria wrote:
On Tue, Jul 14, 2015 at 12:27 PM, Leo Yan leo.yan@linaro.org wrote:
[...]
> - For the case "rt-app [4]: 5 ~[6,13,19,25,31,38,44,50]% periodic > (2ms) tasks for 30s", i have not seen there have .json scripts for > these cases; so could you help point where i can get related > scripts?
In order to create the different use cases described above, you can either create the json file from scratch or you can use the tune_json.py script As an example, ./doc/tune_json.py -f doc/examples/template.json --period 2000 --instance 5 --load 6 will create a workload.json file with 5 tasks with a load of 6% on a period of 2000us
For more precious, the command should be: ./doc/tune_json.py -f doc/examples/spreading-tasks.json --period 2000 --instance 5 --load 6 --duration 20
We can use spreading-tasks.json as template, right? :)
tune_json.py can be used with any json file but for creating a workload of 6% as described by Morten, you should use template.json because spreading.json has 2 phases (1 light and 1 heavy) whereas we need only one. Nevertheless, your command will modify both phases of spreading-task.json and set their parameters to the same value so at the end, the behavior should be similar
Got it, but i have _NOT_ seen the file "template.json"; so just want to confirm if this file may be in other branch but not "eas_v5"?
Ok,
So the exp/eas_v5 branch is based on https://git.linaro.org/power/rt-app.git. But they probably not have the latest changes which have added the template.json file.
Vincent
Thanks, Leo Yan