summaryrefslogtreecommitdiff
path: root/ubuntu/rt-hackbench.yaml
diff options
context:
space:
mode:
authorSantosh Shukla <santosh.shukla@linaro.org>2014-08-11 14:53:33 +0530
committersantosh shukla <santosh.shukla@linaro.org>2014-08-19 01:40:25 +0530
commit554aef5b4de19a5804cda8b7ddc0c7e3b26cfb05 (patch)
tree30b93e8a0b5727a8eda9e2cd4a345ef8ab575d49 /ubuntu/rt-hackbench.yaml
parentd3503d5700c811260599ef70adfa2f9cfa120ddb (diff)
is-cpu-isolated.sh: use getopts for argument parsing
Currently argument list has to be passed in a specific order for it to work. This isn't scalable as argument list grows. Lets parse arguments with getopts instead to scale better. New command format to test isolation. ./is-cpu-isolated.sh -hv -c <comma separated cpulist> -t <task_name> -f <isolation_func_type> -s <sample count> -d <min isol duration> By default <cpu=cpu1>, <task=stress>, <func_type=all>, <sample_count=1> and <min isol duration =10> Possible function types (-f) 1. isolate : Isolate core(s) for task 2. duration : Application isolation duration 3. clear : Clear cpuset rules used for step1 4. nonisol_list : Update list of all nonisol cpus 5. all : do step1,2,3 Examples : 1) run odp_isolation application on cpu no 1 and 2, function type <isolation> ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f isolate 2) Get step1 isolate <duration> ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f duration 3) <clear> cpuset for step1 ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f clear 4) "-f all" == do step1),2),3) ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f all 5) Update list of all nonisol cpus ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f nonisol_list 6) Running with no argument execute default ./is-cpu-isolated.sh From now onwards is-cpu-isolated.sh script will run other isolation application unlike default stress application. Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Diffstat (limited to 'ubuntu/rt-hackbench.yaml')
0 files changed, 0 insertions, 0 deletions