On Mon, 19 May 2014, Abhilash Kesavan wrote: > Hi Nicolas, > > On Thu, May 15, 2014 at 10:22 PM, Nicolas Pitre > <nicolas.pitre@xxxxxxxxxx> wrote: > > Once you implement full cluster shutdown I can provide you with another > > script stressing that part. > I am done with the cluster power on/off code and it seems to work fine > with bL_switcher. Can you please provide me with your stress script. Here's the script. Credits go to Dave Martin for this one. The script assumes that cluster 0 comprises cpus 0 to 3 and cluster 1 comprises cpus 4 to 7. You need to edit it otherwise. ----- >8 #!/bin/bash echo 0 >/sys/kernel/bL_switcher/active sleep 1 pids= for x in \ "cluster=cluster0; cpus='cpu0 cpu1 cpu2 cpu3'" \ "cluster=cluster1; cpus='cpu4 cpu5 cpu6 cpu7'" do eval "$x" eval "\ $cluster () { pids= `for cpu in $cpus; do cat <<EOF; done (sleep .00\\$RANDOM; echo \\$1 >/sys/devices/system/cpu/$cpu/online)& echo \\$1 >/sys/devices/system/cpu/$cpu/online& pids=\\$pids\ \\$! EOF` wait \$pids if [ \$1 = 0 ]; then echo \"\$n: $cluster off\" else echo \"\$n: $cluster on\" fi }" done n=0 while :; do : $((++n)) cluster1 1; cluster0 0 cluster0 1; cluster1 0 done ----- >8 Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html