On 10/28/13 10:24 AM, Ingo Molnar wrote:

The most accurate method of measurement for such single-threaded
workloads is something like:

        taskset 0x1 perf stat -a -C 1 --repeat 20 ...

this will bind your workload to CPU#0, and will do PMU measurements
only there - without mixing in other CPUs or workloads.

you can drop the -a if you only want a specific CPU (-C arg). And -C in perf is cpu number starting with 0, so in your example above -C 1 means cpu1, not cpu0.

David


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to