Received: by 10.192.165.156 with SMTP id m28csp2380997imm; Thu, 12 Apr 2018 13:20:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx498lGinpP+tAiw8WspOTbvAzlWTDkAxYyOctRQbJWCae9iWQAJo2Bg+4DpoEi8o4HQPNZkD X-Received: by 10.101.78.194 with SMTP id w2mr1807033pgq.242.1523564415339; Thu, 12 Apr 2018 13:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523564415; cv=none; d=google.com; s=arc-20160816; b=Z4NnOKUg1zESU79wWyv2Hrv0q8T7Tf1bNszKkfmAbaN1CfO31z6pFD2026+5tPz/6F vD2oJs4nNPi0BgfZNmb0PGuWEuJqt0CNHZXKIeaBT3tGvQDQh3A8kuUc41i8AAGY1bSe L/XSfJwCxkfWgqBViELvZtt5xeYNa6Z7dqCN56dDVdaU9X4uOGNv81Lw0H6jg4Pr0cg7 WfYzWPHxX/29RPL10/meiMaeBKbzkGCZbI93vUXnCuyaBET0OeuqDzF8J216Yt65CHCg jlUJJfmMe2dh+yr+kVL0TMP+9/k2Ew6EzY0Js1UuOaWDc4ZPevVTHRVSb82E62NLzwR0 UjBw== 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=wjm88zGMSTOXN6weehyFSvQgJ/7u2IFHIhCUIoxvWyU=; b=mELrm+hGfNB1hAMmKYUrF0j7FPyZ1u139flRE1uYP2P6HO4Mykl/68z4Wd83mMf5iP mnQGGoiO29Ob7889fSqsvqRLC6k9i5AMfIGXxlAgTAgCF7aH+SKiVirRp68iFOwlL49G JOM9KJOR21KOCQEJuvy+JCeprmrB1v4tTQrcJz+JA9WOH5DenOE2LD5OLGL7o6mUBjm2 Yqx7YzncxD9pnw8D48I7/O7BmHnOjuX5GWnUfedSB5Dz91rX/BBU/OK6Z+BiFa1wIIls /ULjkO81eAQWTOcdcHcg6ZpEqAUUZuHI4B6hJwmXWdkU2vlquY5++b4ifwEzhKQCbD96 JfMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pmxdPWSo; dkim=fail header.i=@linux-foundation.org header.s=google header.b=HDxHJir5; 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 y13si2707738pgs.270.2018.04.12.13.20.01; Thu, 12 Apr 2018 13:20:15 -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=pmxdPWSo; dkim=fail header.i=@linux-foundation.org header.s=google header.b=HDxHJir5; 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 S1753832AbeDLUHT (ORCPT + 99 others); Thu, 12 Apr 2018 16:07:19 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:36788 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbeDLUHR (ORCPT ); Thu, 12 Apr 2018 16:07:17 -0400 Received: by mail-io0-f170.google.com with SMTP id s9so4200310ioc.3; Thu, 12 Apr 2018 13:07:17 -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=wjm88zGMSTOXN6weehyFSvQgJ/7u2IFHIhCUIoxvWyU=; b=pmxdPWSoUB6KhQBHU6mXWqlecsldcGOp6MqwVyG5AehDZZeodssQQTxNVJFS5aMORD dadm+90IZO14vgEDNWKURW9308EbSZcQXTIXF5kFeighEqo5xEicKFYzlyc3k+B1Taii 4KCWZVVZmvVzMOj9qUHaKCYLtRvETIb6pYcoyqmYPhDDrLm3SjsiWp/HWoNqk3AwmIp7 GR++7v17nTI33nx9nV5Brh0u2pBDcSE1oOlKmMrbW0Y8ye/nZ8uaglugqNz54wckMuzU ALFYUB7PFOJqUfj2oE7vDTTCuFLHzEIehgA1fOlehnK0NQbej6IBcaB4gT5lH2rqn4Wu FskA== 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=wjm88zGMSTOXN6weehyFSvQgJ/7u2IFHIhCUIoxvWyU=; b=HDxHJir5bxH3UY6oNXUr8DjG4mujzx9NEmoBhRpmUaji9P0mfLGEnBuHfxHpyyvAFs e8K3JUnDi1KfEPLD56pg9wXZ1z7iW09qy5Oh2XM16rd5iPwEy2Kk8e8PR2rt1QBVoBJL HozzvJe1CCZHotsbw15u/DWQQ6ibBxQNLOdcw= 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=wjm88zGMSTOXN6weehyFSvQgJ/7u2IFHIhCUIoxvWyU=; b=VpDzVls0m+LlJYpxZbIUlcDivy986tau9OAnmrKVkYNitXK87+LPDOtZft64kVgvxO ljGRsUVLZyZjKtMYmGbvdrzEpwO98x2u6ShHTTWcFJjztJzlfoEPbFkr0Jcw1oBnB3Hd J6AQS+64J/FjT6ikQSnqHMfZtx5rAMvQUJH6AYba+ROPRfjgrzwy7GU0oZnzlUgej+94 ckST5DxYlKNgKwzxv3Jkn1XMblHlqjwZAhtXFqPq3j8kPs/EmzL5uRgDAUTcGGACzSVc Td9OkpoPnvSS6G0EQ7nh2dJj0IY+pr9QvLxX9kag74/SlIFNDsWjp/xcu+5BNzCK8/Mk iqcg== X-Gm-Message-State: ALQs6tD3mFLYszMspQtms4B3H+EPt2F8h43WjrEHlvEVoLFYseqtzDVT lrK9fV08s3jvoZpw6mqg7OSsaY2hjgaXKohjL18= X-Received: by 10.107.182.214 with SMTP id g205mr11091305iof.203.1523563636475; Thu, 12 Apr 2018 13:07:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Thu, 12 Apr 2018 13:07:15 -0700 (PDT) In-Reply-To: <1580648199.9463.1523563167045.JavaMail.zimbra@efficios.com> References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> <20180412192800.15708-13-mathieu.desnoyers@efficios.com> <1580648199.9463.1523563167045.JavaMail.zimbra@efficios.com> From: Linus Torvalds Date: Thu, 12 Apr 2018 13:07:15 -0700 X-Google-Sender-Auth: 4g_ruvmrFrya1UN5iJyAI9iGtc4 Message-ID: Subject: Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7) To: Mathieu Desnoyers Cc: Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , 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 Thu, Apr 12, 2018 at 12:59 PM, Mathieu Desnoyers wrote: > > What are your concerns about page pinning ? Pretty much everything. It's the most complex part by far, and the vmalloc space is a limited resource on 32-bit architectures. > Do you have an alternative approach in mind ? Do everything in user space. And even if you absolutely want cpu_opv at all, why not do it in the user space *mapping* without the aliasing into kernel space? The cpu_opv approach isn't even fast. It's *really* slow if it has to do VM crap. The whole rseq thing was billed as "faster than atomics". I *guarantee* that the cpu_opv's aren't faster than atomics. Linus