Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1710922ybk; Thu, 21 May 2020 13:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpNkiRuB4hGnFY8zn5roTPmk8/hgxWXF8dY8GWR//GnG5l+BBbtFMGiHcrNgF/fe6wMs0M X-Received: by 2002:aa7:cb8f:: with SMTP id r15mr463391edt.120.1590092563514; Thu, 21 May 2020 13:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590092563; cv=none; d=google.com; s=arc-20160816; b=dnEFVQsOHiJuPQVNkR5TnRf4Ik+T2MiWCx6DxaOgEEqi7O/uT/fh48ifbRGCHpmZI+ +AcUTQXx6iHcaeKzraXMdn89D96NBQXCxz5B2z3JZAr2Gqq78wfMXMt8gMmJ97vce3wG LbVOU65eXNJ6//rAiYu8UJSQgiwmd01uw0/CHJl+X36ndT1trHFFSJv3sIKfeeNxlmPK LZd6DtkGkInwFJs5CiECY9sa2n/u45L0nbfZhA+Vj1K1xWGyMsuI6LX3f/Qzv+Yo55IR prSnZawL9Jft/1a5CnCNwkng2m1ELfaPkSqxcAtwThlIaNHQXmefDNgMqUFKPu+/G2Dj GqHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Tv5bFwSlR96fvSk6klDReH++Tj6oAHdVjmUeTXqcL5A=; b=mu4lBTTj6vNkKZrpH9xIOZcaTiiCVItISx4D/+Gh/CQ9RQ9k3LXG2PA4UUcuqeBTFG LB3FQr8tQJXBKcNkS32qvm8lUflO/jc73lAJyg7djGJSKzDLrzkykFFwu3PxMY8rknBI BgJleZrY2EjSgCh8TEB5sHV+jO7EXoaHoCYvD/W5Yy2D65R2NO1NSYSfssnLLuKT4OOs 9d6nzX1X03aaoIfL1PUZfx0zXz9G/mblbbecTzQQsYWUqC44GCaK4tSCjX9gDjzz2eEJ Scuad/KiHRKQLDLVQOEPB2L5LwdV65i9zDgIeSIWjoghLDVOJjgwUOCdSgCO+ycSNbYR vnIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=P3kdIdXR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh14si3915612ejb.650.2020.05.21.13.22.19; Thu, 21 May 2020 13:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=P3kdIdXR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728912AbgEUUUY (ORCPT + 99 others); Thu, 21 May 2020 16:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgEUUUX (ORCPT ); Thu, 21 May 2020 16:20:23 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F1ADC061A0E for ; Thu, 21 May 2020 13:20:22 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id a68so6527920otb.10 for ; Thu, 21 May 2020 13:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tv5bFwSlR96fvSk6klDReH++Tj6oAHdVjmUeTXqcL5A=; b=P3kdIdXRz4jlhGZbbBstm6oFq+VHAjMwqep/H3KDUi1qaq2QlYiqri8vpd8Ow8Q9RE 3JO8MrtIeBn77XQhnUjF3JzTwNJLMPczjh1kf/GDb/cl+zAe9Q0WWQ2MYQIgwI8jehA1 NuHY4EmjKV1iyFJpQZGIKWdL8N1UfeL9vi2io= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Tv5bFwSlR96fvSk6klDReH++Tj6oAHdVjmUeTXqcL5A=; b=p4aC26nTYeA6bdCrGNWFdvgA+A3IoA2MLVDyzmNBBekmdJCVcz9ZiMgkITKYqJp/sU 7I1MwbN7xCbJ4vzHFsDzDzU/kSFfGpxcTsyoI+epu8O0VZSnksVsjpHKDG1nV5jmhl4c izlxZOJWXD1a2VamMgipBSx3+qbv8StjGK4A/GAX9/kJvOfKWfHUJXWiu+095TAyt81Z J93wlzg62cFvh/R+XAUKq1QK7OyA+sA8B8+Nsleaucf30+9yOe1wwmB350KfF1E/1ta9 u+OsyyfrQ8nFpdSM8Oo4hO07FjUo8eKo0zvCN+Wh7kxetaTKnburtRPFwUfTdZoTZTyW kQcg== X-Gm-Message-State: AOAM531PD4yrufoHflD4FUzdAh7PAFqQTnACH55Tp1+g5ejmr+FVevdz by022QgLS5oNuwF97lzgO0m+oyXmSOES9Zy9u/GiZQ== X-Received: by 2002:a9d:6f89:: with SMTP id h9mr8657870otq.75.1590092421807; Thu, 21 May 2020 13:20:21 -0700 (PDT) MIME-Version: 1.0 References: <20200520222642.70679-1-joel@joelfernandes.org> <20200521085122.GF325280@hirez.programming.kicks-ass.net> <20200521134705.GA140701@google.com> In-Reply-To: <20200521134705.GA140701@google.com> From: Vineeth Remanan Pillai Date: Thu, 21 May 2020 16:20:10 -0400 Message-ID: Subject: Re: [PATCH RFC] sched: Add a per-thread core scheduling interface To: Joel Fernandes Cc: Peter Zijlstra , Nishanth Aravamudan , Julien Desfossez , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Aubrey Li , "Li, Aubrey" , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 9:47 AM Joel Fernandes 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