Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp258526ybt; Thu, 25 Jun 2020 21:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrIvpHnSdu7z9fQp3lROMgDqFrPKI2UVbO1h/YkRMQLTpu6mT9uTIQk3oCZhQiJ2xdvANv X-Received: by 2002:a05:6402:c06:: with SMTP id co6mr1564007edb.142.1593146249346; Thu, 25 Jun 2020 21:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593146249; cv=none; d=google.com; s=arc-20160816; b=VMTblk1r/C9mf8R/m2pKw/8CRsiHAb2Fy1TKsVx9quEcg1TC/RbHaWm6utHmQ2Hyxz 4bkHgjbch+L9oW/8R/lCf7VIkCdQ8Je/P8bZruuwH3NOwMYHPBFOBOkrq2P8bcJBGDGa 8E6DdVmPBGBDeMKd1OdCivYHkPD2RLNyINMlDT35YzISGJ9MVcsj5IQXCrY3erhzQWFq mqeIFA7LdJwmkgyGG+4FdT7AqL70h9dmaUfYVrPeCqYuYpsfPvi6D8+RkNVr5chgeH00 VR93mOKHSRQVA2xjiYTYchtUoshMqiO+X1B+umXP235ZvaL6KjE6+5Dfok6YlXPIpBwI GxLA== 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=ZI2QAbeI3wF4VjzbAFwJj32Q7EvyNWiBzjCp0xpHBhs=; b=YIbTqCsXbru7Fq4f789PHe6zyuH4VkB4YbiLuKnR86SHJ7r+1hkBoaUyfu6V/uPXgk tNO+K6SL6Z0tavKg3id3r7kASaF1wBof2Nf+lGzionbfJwgx5YwdzcCVkiWT0+QmAcgU aV8jWZPdZRsJYvkoaY+KhHzPBPkraqD4GIECbTEK3qkG0Dveyx86DChHtHB94bILnlsl IxCM6ANHi2K1iNINIUu74+Z23RNQaBz8H+v6DDRfH1cJnox3zmEY5c71hl48Ix1iHhVr wUxzLtb/Zr9ZylVo3LJ+xACHfV28ewLbqlATfJtOlnkdNOgkZphsH8/59cbF1EUETKds O/ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=fxtYlJ3B; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si4238800edq.87.2020.06.25.21.37.07; Thu, 25 Jun 2020 21:37:29 -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=@joelfernandes.org header.s=google header.b=fxtYlJ3B; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbgFZBrV (ORCPT + 99 others); Thu, 25 Jun 2020 21:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbgFZBrV (ORCPT ); Thu, 25 Jun 2020 21:47:21 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCF16C08C5C1 for ; Thu, 25 Jun 2020 18:47:20 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id x9so7190799ila.3 for ; Thu, 25 Jun 2020 18:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZI2QAbeI3wF4VjzbAFwJj32Q7EvyNWiBzjCp0xpHBhs=; b=fxtYlJ3BSjV7XZtuTFdwqinV6SHT6cwTm9+rCgEISc2G09/DLhxARQYlBy/UK4+DJl 4KrM9uLJUfl8oLdjmHBPY3Pa8Leoo1jfNizQje6oIZmcNdos0Vzfj+xpwPom436JEru3 2V+5CuUGRrEMuw5bgXzwjxYWqBLKa5rdq10EM= 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=ZI2QAbeI3wF4VjzbAFwJj32Q7EvyNWiBzjCp0xpHBhs=; b=iU+rKxkkMg2gU9nIy1MzCC8aH+FIX5pNZF3tSmEZ6DIzr14AoJU+eTfBr1GnBrHgpR h4qGuBcYInPD+D1z6FZ9TGWC6U6xoaumPE43Zg/1zDHEHWfpg3PlVHdE9Nevq0eDxAlr 0JUKAWWC9FoGQDtIjAHQXCyf8xEaDw5NDyveDDgezfdu9fJVPmcNuhc9+EFPQb56Z1S/ /j3bbIP/JVhqYi+UIywN18byB2BMfjppFjRwBTOdiNcf/ie6KSumFOaImQIM6JWlkFlo rsorU1WmxpsEEkISbf28OcUb2cXeXLeWqLUk9MaKuADRkHcdScXFxjGSO+j9ZPnkAD4g 8mSQ== X-Gm-Message-State: AOAM533MrPor3kUDnEm6G5s4FaaO14+cyP5aViMIo7qm/MsWYCrDwv3J c51zxRFS4AcSu4i6AXRUlBBAnIHx4RfaAjRU/URqOw== X-Received: by 2002:a92:cf42:: with SMTP id c2mr858886ilr.13.1593136040186; Thu, 25 Jun 2020 18:47:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Joel Fernandes Date: Thu, 25 Jun 2020 21:47:08 -0400 Message-ID: Subject: Re: [RFC PATCH 00/13] Core scheduling v5 To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Ingo Molnar , Kees Cook , Thomas Gleixner , Greg Kerr , Phil Auld , Aaron Lu , Aubrey Li , "Li, Aubrey" , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , Joel Fernandes , Paul Turner 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, Jun 25, 2020 at 4:12 PM Vineeth Remanan Pillai wrote: [...] > TODO lists: > > - Interface discussions could not come to a conclusion in v5 and hence would > like to restart the discussion and reach a consensus on it. > - https://lwn.net/ml/linux-kernel/20200520222642.70679-1-joel@joelfernandes.org Thanks Vineeth, just want to add: I have a revised implementation of prctl(2) where you only pass a TID of a task you'd like to share a core with (credit to Peter for the idea [1]) so we can make use of ptrace_may_access() checks. I am currently finishing writing of kselftests for this and post it all once it is ready. However a question: If using the prctl(2) on a CGroup tagged task, we discussed in previous threads [2] to override the CGroup cookie such that the task may not share a core with any of the tasks in its CGroup anymore and I think Peter and Phil are Ok with. My question though is - would that not be confusing for anyone looking at the CGroup filesystem's "tag" and "tasks" files? To resolve this, I am proposing to add a new CGroup file 'tasks.coresched' to the CGroup, and this will only contain tasks that were assigned cookies due to their CGroup residency. As soon as one prctl(2)'s the task, it will stop showing up in the CGroup's "tasks.coresched" file (unless of course it was requesting to prctl-share a core with someone in its CGroup itself). Are folks Ok with this solution? [1] https://lore.kernel.org/lkml/20200528170128.GN2483@worktop.programming.kicks-ass.net/ [2] https://lore.kernel.org/lkml/20200524140046.GA5598@lorien.usersys.redhat.com/