Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1663569pxb; Wed, 10 Feb 2021 13:41:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0MRG0K1c26C+ZtR8ZCuw5iOPVKjajxioIzPv9Mrv9XfAKrt/N+aiKgLQNrNIrE3f1+bqj X-Received: by 2002:aa7:d692:: with SMTP id d18mr5231611edr.327.1612993275286; Wed, 10 Feb 2021 13:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612993275; cv=none; d=google.com; s=arc-20160816; b=Cyiu4m2BU8oMdk4yNif5MXygpgpQoBG2bqAW6y7p4/+8eHWjYEJ58pNm8ZjnRSO9U/ Bd+Gdu30j3pTFkKcoiDoHlN9R1jZgKakKyzSwOwZ7rub3j3GUl3Jj61y+7JBZtLosGSU aOOlOw/ACA0YaRlYcH3b+FVBxumdEHVmUxx2tQjm2eKmLDIzal3f9fZS+LZOoxJ9j+3j +9i4iVyeMt6qyh2WKOCP41ialZrwkIqqxCtM4BND9nBvBP8qpTBlTS71YFm8xxbQpsWg G898eIV+/UwccvZkpPo5eqh4VA16kDjM+UOoLH/CsWo9tHef8EVMRYbYz1PLL3B0QMm4 kmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=VovoCUnWXLsktEpY9Ed5H1Sm5+vb+ueDK7klVcvC37M=; b=a8fO84XS8oJmjHPvCi4cKEscQkhM1jovY4NWJn74fkLtDiUAleWH1SzVdW2UJLnTUX h/wLhxjmp5S7X16WziHvg+FbLjotJwrobUuHn8RDCbfBTYb0h44Bf8OKftPAc63oa1L4 9g3qzLt5U2LPQFhTLeFAP8ozQrnWTKzPjFM4e/r27aAsvD+Do9QMTfgpjeHuab64jtf1 g9MEGlF0XEvdpZtrO60+zUQ6ZvX+dwT+gKPaNreOrwJG2WvA106oM6M5T0APF9sTEq/F X/o1Nuc8o1NqXxlOX0paTiTZwRdAkwZKVNcKL4ABLB91hMdm2RmhJ6GqnNibGPSwl0Sg 7Gsg== ARC-Authentication-Results: i=1; mx.google.com; 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 y23si2125979edi.470.2021.02.10.13.40.51; Wed, 10 Feb 2021 13:41:15 -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; 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 S232715AbhBJVj6 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Feb 2021 16:39:58 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:3017 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232585AbhBJVjx (ORCPT ); Wed, 10 Feb 2021 16:39:53 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4DbY5Y0SHwzR9M9; Thu, 11 Feb 2021 05:37:53 +0800 (CST) Received: from dggpemm100011.china.huawei.com (7.185.36.112) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 11 Feb 2021 05:39:09 +0800 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggpemm100011.china.huawei.com (7.185.36.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Thu, 11 Feb 2021 05:39:09 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.2106.006; Thu, 11 Feb 2021 05:39:09 +0800 From: "Song Bao Hua (Barry Song)" To: Jason Gunthorpe 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 Thread-Topic: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin Thread-Index: AQHW/SrsWWMRpilf2UC1Pz29QqsBVqpNZGQAgACtCgCAAKKukP//jqmAgADcIzCAADaMgIABCrxAgADNm4CAALRckA== Date: Wed, 10 Feb 2021 21:39:09 +0000 Message-ID: <8a676b45ebaa49e8886f4bf9b762bb75@hisilicon.com> 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> <20210210180405.GP4718@ziepe.ca> In-Reply-To: <20210210180405.GP4718@ziepe.ca> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.201.223] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Jason Gunthorpe [mailto:jgg@ziepe.ca] > Sent: Thursday, February 11, 2021 7:04 AM > 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 > > 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. The only point for this is that when migration occurs on the accelerator, the impact/jitter is much bigger than it does on CPU. Then the accelerator might be unhelpful. > > 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. My point is that single one SVA application shouldn't require system to make global changes, such as disabling numa balancing, disabling THP, to decrease page fault frequency by affecting other applications. Anyway, guys are in lunar new year. Hopefully, we are getting more real benchmark data afterwards to make the discussion more targeted. > > Jason Thanks Barry