Re: [PATCH 18/25] vtime: Track nice-ness on top of context switch

2018-11-20 Thread Peter Zijlstra
On Wed, Nov 14, 2018 at 03:46:02AM +0100, Frederic Weisbecker wrote: > We need to read the nice value of the task running on any CPU, possibly > remotely, in order to correctly support kcpustat on nohz_full. > Unfortunately we can't just read task_nice(tsk) when tsk runs on another > CPU because it

[PATCH 18/25] vtime: Track nice-ness on top of context switch

2018-11-13 Thread Frederic Weisbecker
We need to read the nice value of the task running on any CPU, possibly remotely, in order to correctly support kcpustat on nohz_full. Unfortunately we can't just read task_nice(tsk) when tsk runs on another CPU because its nice value may be concurrently changed. There could be a risk that a recent