Received: by 10.192.165.156 with SMTP id m28csp1011966imm; Mon, 16 Apr 2018 12:28:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx491FcXKXxxNm2MxaemUeH27V8AQZit1srWNwjn4LFwHfsju6QZVE4DoTAlnb7zPjUCsrR5s X-Received: by 10.98.214.218 with SMTP id a87mr22771934pfl.124.1523906884518; Mon, 16 Apr 2018 12:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523906884; cv=none; d=google.com; s=arc-20160816; b=YZCJp0yTFzk+EbZnEbFC0u+hdywkjpG0fYsMNxZGmnNzgIWcmliI1xoH/TogGh3ugZ Yu3f1X/AZg7+46lRGIq62enOWHUOuYuqOiJcYS0Tx1ZcXI79pKly0c+ZiTcDA4K+SHhj GPJTKua8NEffSCZA9UViAVyqpm73HUNvN4/jdTG/iySNSrFtgRzFF4zhrljRoKeylvcX iQPpbGV6owdmpLKUwwvt1eRI4vvXGVP5tJY0AkFEYqrzLih3+kxuz7rdFUrlTrsai9NF iGUD4xlth7vThhPWHPI688f4huBRPl2EcvFao1dryB2Z8vo3rxPO/RXRg3bagLQsrcQW HUKQ== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=my7L84y1Gr/bWTeQ7LooV9KdeekJyDWOlnEVW77HySY=; b=KJEcS0BFJ985CB22A+WiAk+wkXmIqTVTmOjx395tRxQ868pU3UO/qcx92OulwsdX69 VmpdD9E8xEnEKbaD8RTwsvb1+h56gdmOSALHbswiV0P3RxjgKiyD8vQiLpRcnOECFX1u Szqf7IFAbtViIgt78YMI9G87UE8Qf4B/iXO3uZNTZrPcXJuwfvF/ZgpTjcSH6OM57cDW inGTObMUMLhKgnYqrC60k0yDVr8k+1MtpSx0BQrI2uX7gMJHxqmis4YnYZUjU1NPiWg7 cuEMHFy8gZyRKTIScaVRPy2E//ztoOQJ26f4G0YKT0l8Gp9wU2ETtr7Da13DLBjO0kK4 yAYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vJKz1FYc; dkim=fail header.i=@linux-foundation.org header.s=google header.b=Qg6jN3RY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t137si9908063pgb.288.2018.04.16.12.27.47; Mon, 16 Apr 2018 12:28:04 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=vJKz1FYc; dkim=fail header.i=@linux-foundation.org header.s=google header.b=Qg6jN3RY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753362AbeDPT0i (ORCPT + 99 others); Mon, 16 Apr 2018 15:26:38 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:35523 "EHLO mail-it0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbeDPT0g (ORCPT ); Mon, 16 Apr 2018 15:26:36 -0400 Received: by mail-it0-f48.google.com with SMTP id q85-v6so13075152itc.0; Mon, 16 Apr 2018 12:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=my7L84y1Gr/bWTeQ7LooV9KdeekJyDWOlnEVW77HySY=; b=vJKz1FYcEru87k6GWDp/7MsIyHEe59sxJs2Q41OYiLodRj4/DH1T+8JmhCV1QY79Jk Wh1DW1viO4UKtVdSoC9LrqIMNH1MV2YIyTmllGwl99ah3D6w8x7tJPxbf9tNx02pLT6a Nb42ENX3QHEtShqC12fEeih5Up909kiazLi1NiqD9I2dLVntDyBB7O0nYse+rUhzYjNA 5MIuaqmraUXgqeH0DPH57EzXBuXQ71w/AQIiSzu0ARdCH47hLTQjvyurYh1wyOXwFL8q ygd+Et7OTSofKUtz7M8td9JMAd91yE2I4nEzE5Una7joQzQnTdhpSlV2sw7pyOgvbVKl HKgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=my7L84y1Gr/bWTeQ7LooV9KdeekJyDWOlnEVW77HySY=; b=Qg6jN3RYmg7v8wGs/rfQnpz1PFZfTHAf7Ki+DV3D3Ws6zIw/UqsUKoJik0pWNkNKHK GCBVEklBY7t/OtXXSb3U4PtkC1Rb+xw1DYgTpsFuD51CIsTcpNtG3MpEaMr/rO00RngJ hEYNYSfSeOiYd3GR1uk3gfI6bSpbAnhgztRws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=my7L84y1Gr/bWTeQ7LooV9KdeekJyDWOlnEVW77HySY=; b=OXfvAY2gUZz/GZ5otRAg+2meWazdXqAF40FcVa/9qIBaM4EQm36+k3J2hWZozdjfM3 3ubzIlKXe3lOLc0DfdeJQVZ2G9zQfkTDNAgZ1HZdT0xGaUCUv4ZBeqXGmnSrgsvGEXx+ X8q58KxnFxvCRHbD+tlEUw/HVviJgI+UVY/5bjhYvCp6vN+FQERfAnKfJwAQNsmXgBdo XJ3acIPJj6Yg5hRlBo5SdDPu8C3DQki8MnrtYJakPrOZDcgP0X6QN9kkTRJpyystojjY HV4113CNJp0D+ZVgjlKOtKWMoba4+X5AXvCA1mCLF93/s5mBO/cTvLLn/9JvJ5rxWkwb 1Z9Q== X-Gm-Message-State: ALQs6tB5WVeL6O+rXxZ5kojZbYRh8sgsaUZrezfKbyqSC8FHjTs6byQu bQbWeNFMS26WMAMzeGJPWmy7vgPuqPMJCcl6Xq8= X-Received: by 2002:a24:5852:: with SMTP id f79-v6mr16927193itb.108.1523906795910; Mon, 16 Apr 2018 12:26:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Mon, 16 Apr 2018 12:26:35 -0700 (PDT) In-Reply-To: <435471300.11403.1523906479091.JavaMail.zimbra@efficios.com> References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> <20180412192800.15708-13-mathieu.desnoyers@efficios.com> <542721578.11358.1523903708510.JavaMail.zimbra@efficios.com> <435471300.11403.1523906479091.JavaMail.zimbra@efficios.com> From: Linus Torvalds Date: Mon, 16 Apr 2018 12:26:35 -0700 X-Google-Sender-Auth: GngsxokCwTI62zHDD5D2ugi_dQ4 Message-ID: Subject: Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7) To: Mathieu Desnoyers Cc: Andy Lutomirski , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Catalin Marinas , Will Deacon , Michael Kerrisk 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 Mon, Apr 16, 2018 at 12:21 PM, Mathieu Desnoyers wrote: > > And I try very hard to avoid being told I'm the one breaking > user-space. ;-) You *can't* be breaking user space. User space doesn't use this yet. That's actually why I'd like to start with the minimal set - to make sure we don't introduce features that will come back to bite us later. The one compelling use case I saw was a memory allocator that used this for getting per-CPU (vs per-thread) memory scaling. That code didn't need the cpu_opv system call at all. And if somebody does a ldload of a malloc library, and then wants to analyze the behavior of a program, maybe they should ldload their own malloc routines first? That's pretty much par for the course for those kinds of projects. So I'd much rather we first merge the non-contentious parts that actually have some numbers for "this improves performance and makes a nice fancy malloc possible". As it is, the cpu_opv seems to be all about theory, not about actual need. Linus