Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5046887ybl; Wed, 22 Jan 2020 09:17:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxurZvPlCwZEEUG2IO/AiANt+CzOojjOJS5CLiaVmwtOGhzYo6SuXJ9jNgNbNAZ210dVdUf X-Received: by 2002:aca:d4ca:: with SMTP id l193mr7734089oig.133.1579713469354; Wed, 22 Jan 2020 09:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579713469; cv=none; d=google.com; s=arc-20160816; b=J+Smbdua15WOfZBae81Y0YMjR0qM90kkk7yk3S3vKdUshLDGq1olQIQT0FlRF5+M7b bOIVMYxF6LOKWaVRmB+pZ8wXKLpr7JFQc+AuAtGfHtHezaM+4j/aAyQhSYam2Ni4cWlH GBdxSGJbVnnCv+ZGNgCKG3vgwNXJBoju/jgrssSQstZtgjRUWa8OUU/XjavjMLPNqg4M BI3r3xrQSAIV68KiHAkl3Mi71ZPpXpyWbq9OaLo9yB7JPefelJ+Oo/zEW4LkEOZacort 0XaWHC8xQCD0ng4mPFBHaSzNSdwIkjwHbu8P4D0DeWiZbn8VAQlChlXxijNm7gYyobti nKjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=9LMEjxtXO3DcVhBO+WK54vbQNVt6wfm87h8asYpsTpA=; b=ybpBBktIP4PGB5d5rlllgVcCvuXre/Upm+9oBzg7SshdLoPLKh7nUVlYw/e+MKpl/6 y6ousQ2tlzewFeudNpCMrKgG/cfwYG6Q3keUTOatJXu1eAcn1XpFQtS44IZ4iGz8DXB9 QIt8LviBL6WDzpRULHmpwWr66WxiaBQ9zCmWmwX6LSVHasdncZ/WKkmlBXCKDWZ8gdp2 d9Fw+O29FXOQOIIf6W0f/9m4GqD0BpZQxa9QMc4dOFkJbKImZmSbuxkjXDuwiy2YTUxt 6YAokLfJyOIFRPDOkxsf5T43NUp5dKqANMLrVes4O+4T5LCPjU5O+Wfkd7Qq0UA4qaua +Hbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=rMeSQ8cX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si20837299oin.93.2020.01.22.09.17.36; Wed, 22 Jan 2020 09:17:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=rMeSQ8cX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728760AbgAVRQf (ORCPT + 99 others); Wed, 22 Jan 2020 12:16:35 -0500 Received: from mail.efficios.com ([167.114.26.124]:33022 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgAVRQe (ORCPT ); Wed, 22 Jan 2020 12:16:34 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 0DB0925AF86; Wed, 22 Jan 2020 12:16:33 -0500 (EST) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4stJu28RmvV4; Wed, 22 Jan 2020 12:16:32 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id BA38C25AEA7; Wed, 22 Jan 2020 12:16:32 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com BA38C25AEA7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1579713392; bh=9LMEjxtXO3DcVhBO+WK54vbQNVt6wfm87h8asYpsTpA=; h=Date:From:To:Message-ID:MIME-Version; b=rMeSQ8cXwgEJi10a+NrDWSJslrcR1JcaoqUB62X8OJYwp1iBoN1eQvqtcqcC01S+U lvt9z4hldAreTc3ggArc7tcmdi/v9l33zfVBieVm/sJ5OBB/xjrPVup+2I8C9z92KR jUYCOByauv7H6kHe5AIiOTkg7Yrf01Qxrzsw0ZI2PWiJzKHuAn2k4aOUzcHqSCrqd8 B+R6TGAAuwgZJ/Rcvbg/xxRfCzoSPWEF/YLwLlhUeo0ieRBOZ4LDjRFJqqiu6Ulm9s 2jLcjztV0a703bBxgymj8Iht3R0nVPVXAtKUMTDfTqnwPZC0Ri0cfFTiVWiUwqTzOr TXfiS6FaLkW2A== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QUb4Vmo1dyGh; Wed, 22 Jan 2020 12:16:32 -0500 (EST) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 9F5B225AEA6; Wed, 22 Jan 2020 12:16:32 -0500 (EST) Date: Wed, 22 Jan 2020 12:16:32 -0500 (EST) From: Mathieu Desnoyers To: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Cc: Andi Kleen , Ben Maurer , Boqun Feng , Catalin Marinas , Chris Lameter , Dave Watson , "H. Peter Anvin" , Joel Fernandes , Josh Triplett , linux-api , linux-kernel , linux-kselftest , Russell King , Andy Lutomirski , Ingo Molnar , Michael Kerrisk , Paul , Peter Zijlstra , Paul Turner , rostedt , shuah , Thomas Gleixner , Will Deacon Message-ID: <1813399266.597377.1579713392568.JavaMail.zimbra@efficios.com> In-Reply-To: References: Subject: Re: [RFC PATCH v1] pin_on_cpu: Introduce thread CPU pinning system call MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3895 (ZimbraWebClient - FF72 (Linux)/8.8.15_GA_3895) Thread-Topic: pin_on_cpu: Introduce thread CPU pinning system call Thread-Index: dvBLZ91ySDgPt1Gh4255dg7wp2uMvw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (replying again as plain text for mailing lists) ----- On Jan 22, 2020, at 10:44 AM, Jan Ziak 0xe2.0x9a.0x9b@gmail.com wrote: > Hello > I would like to note that this does not help userspace to express dynamic > scheduling relationships among processes/threads such as "do not run processes > A and B on the same core" or "run processes A and B on cores sharing the same > L2 cache". Indeed, this is not what this system call is trying to solve. Does the name "pin_on_cpu" lead to confusion here ? I thought that cgroups was already the mechanism taking care of this kind of requirement. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com