Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-16 Thread Joel Fernandes
Hi Chris, On Mon, Nov 09, 2020 at 06:23:13PM -0500, chris hyser wrote: > > On 10/19/20 9:43 PM, Joel Fernandes (Google) wrote: > > > In order to prevent interference and clearly support both per-task and > > > CGroup > > > APIs, split the cookie into 2 and allow it to be set from either > > > pe

Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-10 Thread Joel Fernandes
On Mon, Nov 09, 2020 at 06:23:13PM -0500, chris hyser wrote: [..] > > > > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > > index fe6f225bfbf9..c6034c00846a 100644 > > > --- a/include/linux/sched.h > > > +++ b/include/linux/sched.h > > > @@ -688,6 +688,8 @@ struct task_struct { >

Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-09 Thread chris hyser
On 11/4/20 5:30 PM, chris hyser wrote: On 10/19/20 9:43 PM, Joel Fernandes (Google) wrote: In order to prevent interference and clearly support both per-task and CGroup APIs, split the cookie into 2 and allow it to be set from either per-task, or CGroup API. The final cookie is the combined valu

Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-09 Thread chris hyser
On 10/19/20 9:43 PM, Joel Fernandes (Google) wrote: In order to prevent interference and clearly support both per-task and CGroup APIs, split the cookie into 2 and allow it to be set from either per-task, or CGroup API. The final cookie is the combined value of both and is computed when the stop-

Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-05 Thread Joel Fernandes
On Wed, Nov 04, 2020 at 05:30:24PM -0500, chris hyser wrote: [..] > + wr.cookies[0] = cookie; > > + } else > > + /* > > +* t1 joining t2 > > +* CASE 1: > > +* before 0 0 > > +* afternew coo

Re: [PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-11-04 Thread chris hyser
On 10/19/20 9:43 PM, Joel Fernandes (Google) wrote: In order to prevent interference and clearly support both per-task and CGroup APIs, split the cookie into 2 and allow it to be set from either per-task, or CGroup API. The final cookie is the combined value of both and is computed when the stop-

[PATCH v8 -tip 17/26] sched: Split the cookie and setup per-task cookie on fork

2020-10-19 Thread Joel Fernandes (Google)
In order to prevent interference and clearly support both per-task and CGroup APIs, split the cookie into 2 and allow it to be set from either per-task, or CGroup API. The final cookie is the combined value of both and is computed when the stop-machine executes during a change of cookie. Also, for