Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp888550ima; Wed, 6 Feb 2019 09:58:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKntPP2gSzDx8LX6EY6LQGXNqJOqBL61jK3+wXU2eS/fMyRxzcBPq9z4kH36KintGO0S3e X-Received: by 2002:a17:902:2ac3:: with SMTP id j61mr11928079plb.185.1549475904124; Wed, 06 Feb 2019 09:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549475904; cv=none; d=google.com; s=arc-20160816; b=UsaBHPht+lZtUmcOlDTH0odm0dJzF3J7ITSQVKyxyHkCqXRHeOYeCm7FQT6eJfNarY /Y0uAv7/hY33gFtw583gL8OuMG0OhVf/ypXMx4nS15q0LE5zF23ec41U/YXCWJVXBTwu HW7xLJAWtBmv7IKivCj+B1uJ43tat0PiZJsOk6L2fdd35PQQTqxQWJk5JM6tBJRW9zDH qoRN+r6QbF1a0S6c9097KFU9NmW0Bq1U1hsg1r7UtafbpDl1Q4JRLQSIuIy4qYhqd3xR NbkUgtX03fmKASNJ/ejPCrbgxEAIZmTnEiGEeFkzOW7sK35mn3TiR2wvWsHn4tTJ/8c2 MeMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4Y0Ol9cUuCeTtR/iHjcDPt3ULycXGBufi5ZEeL6CPm8=; b=EA7Fa2TLtA/ZnRtvYnQ5U3/8M5PiIdQrsFCiXvxxjyX10CHRE79qG8QS1oLdktviwH +Fpo6g8wZgj62Rn4lQdhSdTJVuGqXqd32KLXGJtwljPSUwGFs+lQoGxfhvZxto4qd7ii WzZYPcZx78bHUN0WfRDw+ajkkIt8/2BZzyiyY8gvcmRYexi+dyOz8gUiwFvUGxXJIYwU tvIkVJVXDGItgCBW58s/fLt3GcJPpmUZZZZyI2QmzyngI/PhotjBq3mv4Dw5OTbundcK bZO16+tRVmWB3JcMLzjyO32YgR4W+UTr0MV77I04ZL1+S8k6ydHNRsV3dVoiJGpyQo+s fsqw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si6043888pgv.469.2019.02.06.09.58.07; Wed, 06 Feb 2019 09:58:24 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728924AbfBFRUM (ORCPT + 99 others); Wed, 6 Feb 2019 12:20:12 -0500 Received: from mga06.intel.com ([134.134.136.31]:52239 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbfBFRUM (ORCPT ); Wed, 6 Feb 2019 12:20:12 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2019 09:20:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,340,1544515200"; d="scan'208";a="114187766" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga006.jf.intel.com with ESMTP; 06 Feb 2019 09:20:07 -0800 Date: Wed, 6 Feb 2019 10:19:37 -0700 From: Keith Busch To: Jonathan Cameron Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, Greg Kroah-Hartman , Rafael Wysocki , Dave Hansen , Dan Williams , linuxarm@huawei.com Subject: Re: [PATCHv5 00/10] Heterogeneuos memory node attributes Message-ID: <20190206171935.GJ28064@localhost.localdomain> References: <20190124230724.10022-1-keith.busch@intel.com> <20190206123100.0000094a@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190206123100.0000094a@huawei.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 06, 2019 at 12:31:00PM +0000, Jonathan Cameron wrote: > On Thu, 24 Jan 2019 16:07:14 -0700 > Keith Busch wrote: > > 1) It seems this version added a hard dependence on having the memory node > listed in the Memory Proximity Domain attribute structures. I'm not 100% > sure there is actually any requirement to have those structures. If you aren't > using the hint bit, they don't convey any information. It could be argued > that they provide info on what is found in the other hmat entries, but there > is little purpose as those entries are explicit in what the provide. > (Given I didn't have any of these structures and things worked fine with > v4 it seems this is a new check). Right, v4 just used the node(s) with the highest performance. You mentioned systems having nodes with different performance, but no winner across all attributes, so there's no clear way to rank these for access class linkage. Requiring an initiator PXM present clears that up. Maybe we can fallback to performance if the initiator pxm isn't provided, but the ranking is going to require an arbitrary decision, like prioritize latency over bandwidth. > This is also somewhat inconsistent. > a) If a given entry isn't there, we still get for example > node4/access0/initiators/[read|write]_* but all values are 0. > If we want to do the check you have it needs to not create the files in > this case. Whilst they have no meaning as there are no initiators, it > is inconsistent to my mind. > > b) Having one "Memory Proximity Domain attribute structure" for node 4 linking > it to node0 is sufficient to allow > node4/access0/initiators/node0 > node4/access0/initiators/node1 > node4/access0/initiators/node2 > node4/access0/initiators/node3 > I think if we are going to enforce the presence of that structure then only > the node0 link should exist. We'd link the initiator pxm in the Address Range Structure, and also any other nodes with identical performance access. I think that makes sense. > 2) Error handling could perhaps do to spit out some nasty warnings. > If we have an entry for nodes that don't exist we shouldn't just fail silently, > that's just one example I managed to trigger with minor table tweaking. > > Personally I would just get rid of enforcing anything based on the presence of > that structure.