Re: scheduler / perf stat question about CPU-migrations

From: Pádraig Brady
Date: Thu Jun 16 2011 - 11:15:05 EST


On 16/06/11 16:03, Frederic Weisbecker wrote:
> On Thu, Jun 16, 2011 at 10:46:26AM -0400, Theodore Ts'o wrote:
>> Can someone tell me how I'm being confused?
>>
>> I ran the following command as root:
>>
>> perf stat schedtool -a 1 -e e2fsck -ft /dev/funarg/kbuild
>
> A theory is that schedtool does:
>
> if (!fork()) {
> set affinity there
> launch e2fsck
> }

Well `taskset` and `chrt` from util-linux don't fork at least,
so you could try those instead.

I also suggest protecting the command with --
in case perf is not stopping at the first unrecognized option.

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