Re: [PATCH] sched/cputime: fix clock_nanosleep/clock_gettime inconsistency
From: Stanislaw Gruszka
Date: Wed Nov 12 2014 - 07:31:16 EST
On Wed, Nov 12, 2014 at 12:45:38PM +0100, Peter Zijlstra wrote:
> On Wed, Nov 12, 2014 at 12:37:37PM +0100, Peter Zijlstra wrote:
>
> > Which would make the sample run ahead, making the sleep short. So would
> > something like the below not cure things?
>
> Before anyone asks, yes I tried running that 'reproducer' it doesn't.
I'd be surprised if the patch would help. Issue here happen at start of
cputimer. We set sum_sched_runtime value of cputimer using not yet
accounted threads runtime and then add that runtime values again to
running cputimer on tick, making it's sum_exec_runtime bigger than
actual threads runtime.
Stanislaw
--
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/