On Thu, May 25, 2023 at 06:55:18PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Currently, the xfs_scrub background service is configured to use -b, > which means that the program runs completely serially. However, even > using 100% of one CPU with idle priority may be enough to cause thermal > throttling and unwanted fan noise on smaller systems (e.g. laptops) with > fast IO systems. > > Let's try to avoid this (at least on systemd) by using cgroups to limit > the program's usage to 60% of one CPU and lowering the nice priority in > the scheduler. What we /really/ want is to run steadily on an > efficiency core, but there doesn't seem to be a means to ask the > scheduler not to ramp up the CPU frequency for a particular task. > > While we're at it, group the resource limit directives together. Een 60% sounds like a lot to me, at least for systems that don't have a whole lot of cores. Of course there really isn't any good single answer. But this is probably a better default than the previous one, so: Reviewed-by: Christoph Hellwig <hch@xxxxxx>