[LITMUS^RT] workload-generator: available cpus using GSN-EDF

Benjamin Fischer benjamin.f.fischer at fau.de
Thu Jan 25 17:12:50 CET 2018


Hello,

I have a question related to the generated shell scripts for the GSN-EDF 
scheduler plugin which have been created by /mktasks.py/. Using 
/mktasks.py /to generate tasksets I'm able to select the number of cores 
I want this taskset to be genereated with whereas the generated shell 
script for this taskset will take account of all available cores on the 
machine. For example: I've created a taskset with two cores, 100 tasks 
and 50% utilization and executed it on a machine with four available 
cores, so the tasks have been executed on all four cores instead of the 
desired number of two. In my case, I would like to only use the number 
of cores specified by the key-value-encoding of the current shell 
script. Is there a proper way to achieve this? I thought of 
enabling/disabling the desired number of cores via /'echo {0,1} > 
/sys/devices/system/cpu/cpuX/online' /before running the script/. /I 
tried this for my little example and overheads only have been recorded 
on two cores, but I don't know if this solution is sufficient for my 
problem.

Best regards,
Benjamin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20180125/8a2c20af/attachment.html>


More information about the litmus-dev mailing list