lkml.org 
[lkml]   [2020]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH RFC] sched: Add a per-thread core scheduling interface
    On Thu, May 21, 2020 at 9:47 AM Joel Fernandes <joel@joelfernandes.org> wrote:
    >
    > > It doens't allow tasks for form their own groups (by for example setting
    > > the key to that of another task).
    >
    > So for this, I was thinking of making the prctl pass in an integer. And 0
    > would mean untagged. Does that sound good to you?
    >
    On a similar note, me and Joel were discussing about prctl and it came up
    that, there is no mechanism to set cookie from outside a process using
    prctl(2). So, another option we could consider is to use sched_setattr(2)
    and expand sched_attr to accomodate a u64 cookie. User could pass in a
    cookie to explicitly set it and also use the same cookie for grouping.

    Haven't prototyped it yet. Will need to dig deeper and see how it would
    really look like.

    Thanks,
    Vineeth

    \
     
     \ /
      Last update: 2020-05-21 22:21    [W:5.436 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site