Re: [Toybox] more general sched_setattr/sched_getattr command?

2022-01-13 Thread enh via Toybox
here's the response i got: the logic has been changed as https://lore.kernel.org/all/20210617165155.3774110-1-qais.you...@arm.com/T/#u partially uclamp_tg_restrict is the one to apply group value towards per-task value. static inline struct uclamp_se uclamp_tg_restrict(struct task_struct *p, en

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-18 Thread Rob Landley
On 12/10/21 2:05 PM, enh wrote: > On Fri, Dec 10, 2021 at 3:46 AM Rob Landley Could you ask them what uclamp_validate() in kernel/sched/core.c is > trying to > do? It seems like if you've set container limits for the largest or > smallest > allowed uclamp values (like that wiki page

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-10 Thread enh via Toybox
On Fri, Dec 10, 2021 at 3:46 AM Rob Landley wrote: > On 12/9/21 7:35 PM, enh wrote:> someone sent > me https://man7.org/linux/man-pages/man1/uclampset.1.html > > which seems to > be the > > util-linux offering. it certainly looks better tha

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-10 Thread Rob Landley
On 12/9/21 7:35 PM, enh wrote:> someone sent me https://man7.org/linux/man-pages/man1/uclampset.1.html > which seems to be the > util-linux offering. it certainly looks better than the Android home-grown > thing, so i've sent a patch with a t

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-09 Thread enh via Toybox
On Thu, Dec 9, 2021 at 2:16 AM Rob Landley wrote: > On 12/7/21 2:27 PM, enh via Toybox wrote: > > is there an existing general sched_setattr/sched_getattr command > somewhere that > > we can copy? we have chrt/nice/taskset for various subsets, and i think > that > > _between_ them they already co

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-09 Thread scsijon
On 10/12/21 08:08, toybox-requ...@lists.landley.net wrote: Message: 1 Date: Thu, 9 Dec 2021 04:16:45 -0600 From: Rob Landley To: enh , toybox Subject: Re: [Toybox] more general sched_setattr/sched_getattr command? Message-ID: Content-Type: text/plain; charset=utf-8 On 12/7/21 2:27

Re: [Toybox] more general sched_setattr/sched_getattr command?

2021-12-09 Thread Rob Landley
On 12/7/21 2:27 PM, enh via Toybox wrote: > is there an existing general sched_setattr/sched_getattr command somewhere > that > we can copy? we have chrt/nice/taskset for various subsets, and i think that > _between_ them they already cover everything that sched_setattr(2) can do -- > policy/reset

[Toybox] more general sched_setattr/sched_getattr command?

2021-12-07 Thread enh via Toybox
is there an existing general sched_setattr/sched_getattr command somewhere that we can copy? we have chrt/nice/taskset for various subsets, and i think that _between_ them they already cover everything that sched_setattr(2) can do -- policy/reset-on-fork/nice/priority -- except for 5.3+'s "task uti