Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1552076pxb; Wed, 10 Feb 2021 10:57:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2RG+lPZKXBD9WjJun1lwtHHtmSs0B2ioCaPuIm94Cufo164AjUR9fOTZK2Wpxhpdh7GLq X-Received: by 2002:a17:906:4349:: with SMTP id z9mr4384257ejm.471.1612983420154; Wed, 10 Feb 2021 10:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612983420; cv=none; d=google.com; s=arc-20160816; b=ER144frRdchgyWGlmxqazY3hNdXaT7uGhQRqbeDVhpZ3J2lKdX6TgyUP3E9Likr4rY Yc9YFUo8TUgFMN9pbbhWV3d9/MlDQtBMNkPHoQ//XVCCzzoIeXxKFRN4AQ+PL/Mn2hU0 QQtBxqe1jng8hsTVfxvCMZPqD375Jzp2pOleloI8M5WMhiFswqCfOXz/OZsYF3Y6wJ1n 8OYFRvBpsxiXqoSdvyyLtl7Ac2NGOyeGecmjfIqJmIM3eQo23QGaz1iJpoeZq1fwudoP bpRerd74UO7SSxYR4U99o15M9nmNsVGljO5WZDo1Shcolz0VTQJis9byGg+qduw1z1j1 G1/w== 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=EjxwxHUNaOq23km6417evCVsqogE3nHC3sVFoKbPKg8=; b=ABw4KE7R7W7EmotDDHc3Qxt+J99p54mZhmebvoN5FzZLPKE9zovP5smdSbOP0lemYM 3ao2D15YK00jUxwEwP0oUH3nT0rk/FCZGf/qXr0pHlf8Ku9xLNV0OauZ5BsvT/A6fXa5 TexNMFUqDsKcmpapq02jWnyqc85AwHPFA+J3CZ1j+c08qm3wTuYngICpH/sQWTXZTzn8 MKlFh5fIaFYPx0nP+/kbJy5QU9LD81cc52WrWPEtIdz7YO42QlsSH3H76E8z2NCeHF9k 84fEtRvvE6eFP5UvPPcknnbZpR7wLVJp2w5KaI8aG8jt0b2t1U36Bslf/45yrwvgGWRk j/lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=cbatPENJ; 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 jz3si1817982ejc.700.2021.02.10.10.56.34; Wed, 10 Feb 2021 10:57:00 -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=@infradead.org header.s=casper.20170209 header.b=cbatPENJ; 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 S234137AbhBJSym (ORCPT + 99 others); Wed, 10 Feb 2021 13:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234329AbhBJSvw (ORCPT ); Wed, 10 Feb 2021 13:51:52 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BAEAC061788; Wed, 10 Feb 2021 10:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EjxwxHUNaOq23km6417evCVsqogE3nHC3sVFoKbPKg8=; b=cbatPENJ45p15QeKsGBV3IHWYB MYY+XRAjvFdyEP+iDEN7xkSzpBF8JaSpuGwjfgDQQEVoM/xpsvi3INdXoOuJZl4r0QQlnvHCCAciJ K/i0cA3Pwgde9FWWOLhdkA6YYagUEcEIMGbqk7+KZOOQ+qxq6cOSsGyLEBBVqyg8IR/EhcXGSzAi5 DrmHQ7abaKogcEgwxl2IxF8lApwCsy2ypMG647U37oOag2em5SznPVPpv05MjbAzva3gYU3woa/oH +xIIvR6HMXdLr+peIu0bMCI/atrUkCcGpsugia1PXfoSpgp6DYOk2ID3l6Da2Zgsc8BsE+tykWGjN kz8+SQ8Q==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l9uZg-009FhE-Fm; Wed, 10 Feb 2021 18:50:53 +0000 Date: Wed, 10 Feb 2021 18:50:52 +0000 From: Matthew Wilcox To: Zhou Wang Cc: Greg KH , Andy Lutomirski , 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 , song.bao.hua@hisilicon.com, jgg@ziepe.ca, kevin.tian@intel.com, jean-philippe@linaro.org, eric.auger@redhat.com, liguozhu@hisilicon.com, zhangfei.gao@linaro.org, Sihang Chen Subject: Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin Message-ID: <20210210185052.GE308988@casper.infradead.org> References: <1612685884-19514-2-git-send-email-wangzhou1@hisilicon.com> <2e6cf99f-beb6-9bef-1316-5e58fb0aa86e@hisilicon.com> <2237506a-0c98-7ba6-5d5f-b60b637174c5@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2237506a-0c98-7ba6-5d5f-b60b637174c5@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 08:20:18PM +0800, Zhou Wang wrote: > Agree, will add it in next version. No, don't do another version. Jason is right, this approach is wrong. The point of SVA is that it doesn't require the application to do anything special. If jitter from too-frequent page migration is actually a problem, then fix the frequency of page migration. Don't pretend that this particular application is so important that it prevents the kernel from doing its housekeeping.