controlling number of threads or benchmark copies
Hi all, I have 2 separate questions:
1) Multithreaded/multicore benchmarks. Is there a pts switch or environment variable that controls the number of threads/cores used for a multicore test?
I know I could start the kernel with maxcpus, or even disable cpus with "echo 0 > /sys/devices/system/cpu/cpuX/online", but is it possible to just use a specified number of cores less than the maximum cores available to the system?
2) Single-threaded benchmarks. I would like to be able to run multiple independent copies of single threaded benchmarks on multiple cores at the same time (this is similar to SPECCPU "rate" tests).
Is a "rate-style" test supported and if yes, is there a pts switch or environment variable that controls the number of copies spawned for a "rate" test?
These questions assume pts can pin benchmark threads to cores, is there support for that?
thanks for any help!