Re: [PATCH][RFC] Adding information of counts processes acquired how many spinlocks to schedstat
From: Andi Kleen
Date: Wed Jul 01 2009 - 03:38:22 EST
Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx> writes:
> Hi,
>
> I wrote a test patch which add information of counts processes acquired how many spinlocks to schedstat.
> After applied this patch, /proc/<PID>/sched will change like this,
The problem is that spinlocks are very common and schedstats is enabled commonly
in production kernels. You would need to demonstrate that such a change doesn't
have significant performance impact. For me it looks like it has.
Also I'm not sure exactly what good such a metric is. Do you have
a concrete use case?
The normal way to check for lock contention or lock bouncingis to
simply profile cycles or time and see if there is a lot of CPU time in
locks.
-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/