Re: Utime and stime are less when getrusage (RUSAGE_THREAD) is executed on a tickless CPU.

From: Frederic Weisbecker
Date: Mon Jun 28 2021 - 10:13:05 EST


On Mon, Jun 28, 2021 at 02:36:27AM +0000, hasegawa-hitomi@xxxxxxxxxxx wrote:
> Hi Frederic, Peter, and Mel
>
> > I tested this and confirmed that it gives accurate values.
> > Also, task_sched_runtime () is done only on nohz_full CPU, so I think
> > it's a better idea than before.
> > I hope you will incorporate this fix into your mainline.
>
> I have also confirmed that CPUs other than nohz_full have very little overhead.
> Please consider merging it into the mainline.

Ok, I'm going to submit a proper patch.

Thanks!