Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1526541pxb; Wed, 10 Feb 2021 10:18:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlh59kNxqqcQy+FTCDXc2XIn5k/kkPL1yu6eO6idBggZaJzwgknUMUAY1oHQnBUwOsegPQ X-Received: by 2002:a50:e882:: with SMTP id f2mr4414682edn.35.1612981101202; Wed, 10 Feb 2021 10:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612981101; cv=none; d=google.com; s=arc-20160816; b=pEcpFbqrpVBs7YGCjxW2+TrSBrQIzd54T5OSt6oAWe2Mmd/LX/BLOa/2K3n7hoHcPu 62bCddqYI+lwNrcpb0qF/OBrPWpamuQz9EnwqFbcjUd42CdTiBh9M9ZrtwJU9wWtdY5d l+ilGbX/xFmUPw+J3n7RUR93GEzoMXCAqC1E39fB7rGkS1Pe2ycvFj0sCVhPwmDEtrth gn5q5F6ZInM7+ixeP+dvlQ92LBreUtt3XfvUnNZjmhzRJQbdeSnlfZQtMTh1aLJYa5H0 BT0ACffEW7nVGqm2Be6F2wsQe/52aOAMrDT+QraqNNt7mHHr75aIBMVsP2TVQUn9HukI MzlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fn4OROpwcMvlPuFG0mr8IX6FA+jFG3+mu5LheKqkXo0=; b=XZq56Z6Z2fUY2p62w76r1EUdfYsFSO9uo2aYnVlg7Wdr0aTnKPP14G8LqWNoOOxtCY ykYDxhRH+2zVQLJ/qoqYzw0ipAlj/rhxzohKPVamnGItdwOfoJe6tyEJBkTmw/0SPzR+ khZix7e04MXhmdu+0N0eOZSzf54+dV4YGA4t8SrbpFBBOHj9YREKL1xnXYapFH4FXSIW Bm96QX52WB+RBEzM9V4TN+cSmHu+iizIyISKKnMxP1MIhlRXC86vpPCI58X2bKYhv9vH 8lQyddIkJSq9R9U7r0O2mY4juRxN8Q12bECDTuVHtZBxBoABbuxmwAY7DTzyDtB7OrO9 roOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=iPiobhPw; 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 u23si2227279edi.71.2021.02.10.10.17.57; Wed, 10 Feb 2021 10:18:21 -0800 (PST) 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=@ziepe.ca header.s=google header.b=iPiobhPw; 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 S233860AbhBJSPF (ORCPT + 99 others); Wed, 10 Feb 2021 13:15:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233648AbhBJSEt (ORCPT ); Wed, 10 Feb 2021 13:04:49 -0500 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1948C06174A for ; Wed, 10 Feb 2021 10:04:08 -0800 (PST) Received: by mail-qk1-x72d.google.com with SMTP id l27so2524407qki.9 for ; Wed, 10 Feb 2021 10:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fn4OROpwcMvlPuFG0mr8IX6FA+jFG3+mu5LheKqkXo0=; b=iPiobhPwf6KAYITESCCZiytaCFr72WzGFqO5Krxg583eeHZJJswee2IVlHJuHVFk51 hUWKXhD6qUJQZ9akF+hoJ0SBMSynl89auCrmXzGqpwVR8TTrOwLCakALhhncmc/31KKO w5cpzUSnU3cZ2kGIXac5w3JXTOg1uG5uRsLrYjb0siJVoMpiahMmcfRtKm3eynVnB77A qq+aY8bUIaIHuFg9y9XapEOc7TwpMRqaDXdJ3B4ZZnVPlh2aFbugjNjlrCgAvTvQbuiv 8rQnonVEPXVhg74c+0AallmP+gLOo6xaV7ay5dZwzBUgW+9vToCfuh+GOlDUSGRfOBpQ oKbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fn4OROpwcMvlPuFG0mr8IX6FA+jFG3+mu5LheKqkXo0=; b=RCXyLA+rjSdKGn0swidkskE8mcbL6WBO5Ikyqiky+kOmFkgZR8aNBjyfAaf3MDGS3Y vqKLOI01UWZs5KXRQ3B0ARLsO0wiSovugXWrszOcer8HRqTExCPHusxRwXM8erf9U0wm JSK7mAwQZkwrsaM2zWsu1hF8jQj1UUxa55QUnZjxXMlH9Cq5i9GYDGwCXWQBpJ6QMQ// 85H9llxy1hrvxeY0Z1hS0OBH+Ztk0poA2A8t6V7XwqwvTnYZSsxjFKGzXiOF10vG69Yk g2TJKpLvfzwpr97xP2rmRRF4/HZWlmsWZvCiC9vWFa7o3AjiiM4FcsYrBrsXm2985s1t /40A== X-Gm-Message-State: AOAM530fYGDes0RJsrKX3jeNLejcif8IuqbG0vRKqi0WGSIj2zOmdJiP PQAbW6E5uxyV/MHvUv0Bx/6siA== X-Received: by 2002:a37:6f01:: with SMTP id k1mr4613354qkc.252.1612980247944; Wed, 10 Feb 2021 10:04:07 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id j46sm1828038qtk.1.2021.02.10.10.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 10:04:06 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l9tqP-0068Ck-JW; Wed, 10 Feb 2021 14:04:05 -0400 Date: Wed, 10 Feb 2021 14:04:05 -0400 From: Jason Gunthorpe To: "Song Bao Hua (Barry Song)" Cc: David Hildenbrand , "Wangzhou (B)" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-mm@kvack.org" , "linux-arm-kernel@lists.infradead.org" , "linux-api@vger.kernel.org" , Andrew Morton , Alexander Viro , "gregkh@linuxfoundation.org" , "kevin.tian@intel.com" , "jean-philippe@linaro.org" , "eric.auger@redhat.com" , "Liguozhu (Kenneth)" , "zhangfei.gao@linaro.org" , "chensihang (A)" Subject: Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin Message-ID: <20210210180405.GP4718@ziepe.ca> References: <1612685884-19514-1-git-send-email-wangzhou1@hisilicon.com> <1612685884-19514-2-git-send-email-wangzhou1@hisilicon.com> <20210208183348.GV4718@ziepe.ca> <0dca000a6cd34d8183062466ba7d6eaf@hisilicon.com> <20210208213023.GZ4718@ziepe.ca> <0868d209d7424942a46d1238674cf75d@hisilicon.com> <20210209135331.GF4718@ziepe.ca> <2527b4ac8df14fa1b427bef65dace719@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2527b4ac8df14fa1b427bef65dace719@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 10:22:47PM +0000, Song Bao Hua (Barry Song) wrote: > The problem is that SVA declares we can use any memory of a process > to do I/O. And in real scenarios, we are unable to customize most > applications to make them use the pool. So we are looking for some > extension generically for applications such as Nginx, Ceph. But those applications will suffer jitter even if their are using CPU to do the same work. I fail to see why adding an accelerator suddenly means the application owner will care about jitter introduced by migration/etc. Again in proper SVA it should be quite unlikely to take a fault caused by something like migration, on the same likelyhood as the CPU. If things are faulting so much this is a problem then I think it is a system level problem with doing too much page motion. Jason