On Thu, Apr 16, 2020 at 09:24:35AM +0800, Huang, Ying wrote: > Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes: > > > On Tue, Apr 14, 2020 at 01:06:46PM +0100, Mel Gorman wrote: > >> While it's just an opinion, my preference would be to focus on reducing > >> the cost and amount of scanning done -- particularly for threads. > > > > This; I really don't believe in those back-charging things, esp. since > > not having cgroups or having multiple applications in a single cgroup is > > a valid setup. > > Technically, it appears possible to back-charge the CPU time to the > process/thread directly (not the cgroup). I've yet to see a sane proposal there. What we're not going to do is make regular task accounting more expensive than it already is.