Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2950888imu; Mon, 19 Nov 2018 08:31:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKKrFOHXLAb7pzZcwetJ/elCLOUexaBoa4ulvZsIQrwVSmOkYA1dfiT0s86Odo9TLgp3WM X-Received: by 2002:a17:902:76ca:: with SMTP id j10mr6655566plt.144.1542645081361; Mon, 19 Nov 2018 08:31:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645081; cv=none; d=google.com; s=arc-20160816; b=KQElxiFD0F2dKqXEcY1VLOwSY2K+9l6UOJCl+VfhZVc6EIulDRCYHjmo+Ewin5QVvu lcEunjVd1ugbtvmmPDhG24cm5+3KkIWR8I6zXQjq3WHDAmqnGgQDIL9JNcLuVgu1YIkN UHNQGkRQcfB/QKJ+oCeZWoGFXNLa2W530Wowh4gRcqc1XNhgHXss6aXDd0ShE/AOLVmE eJhfYNkWKNpKcsTl+XSkC+fIhXHAozhX6yk/gtbn9AhnGkrK2XrIsIXy/CookVzlM4KV zjNJ4C/WzzAp+mcRqQOTy50At8+PwmRY1K1XxOU0LZ2QVCdoUK5P5zhVEIeHZnqfp6JQ kzsg== 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:dkim-signature; bh=7yyGGjSNaCo/1qyqOVV7SWjrnAG0lKqsvoU2TdoxhX0=; b=y4m2LguISXGO/FF+E1RHjTrMSUjCkJxhRSuQZLqjjw5ga8NTS/iJwLAjPZ5jI/9pdk ZDWcIVay+wAIXC2fxqPct5gmioZI7wqzFfTRN0DbwQP14q3hLIL9MYIxzTuRZA7prwTT FMSnG07rq21l2KZyZF70Jf5ANDUWtmJnIgG0u++TEZdBJr3kWGg6cQscblYFf77wOkfh DTfvz/jPK4oifORy0AO2ejMqm8AVvEU0YJXnjRMJTuWONEsy5H3zP4i1UhzEcL0NgYSG Wzk7Nc6oH5tM1F6dnV8q0T0ZtEwuq20Q81YPaqwfTwVX3D3hX1ql15t23pl4jbWofaoR bFVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=yDQ7mn+m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o195si15946393pfg.106.2018.11.19.08.31.05; Mon, 19 Nov 2018 08:31:21 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=yDQ7mn+m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730032AbeKTCy3 (ORCPT + 99 others); Mon, 19 Nov 2018 21:54:29 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:56268 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729865AbeKTCy3 (ORCPT ); Mon, 19 Nov 2018 21:54:29 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAJGTDFV127421; Mon, 19 Nov 2018 16:29:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=7yyGGjSNaCo/1qyqOVV7SWjrnAG0lKqsvoU2TdoxhX0=; b=yDQ7mn+mCSBrurH7vggztMahn+wRR0WjHskPcqUtzGQ1MQ7Wehv6WqAPk/qQVQxkiv7Q 2yJU8P1v6DOlmApEYHs5WYM/hk4KwuAPHcUskv11JgqBGKtKDZnJ4TVpUGSXpfW0sVz1 rMD7JrnTL6pR0jh+3QyzCqENjEALH2Mbn3+siY4gu8e+USbro99VA4P1H9bbQvQQHrIU tHPdQ2CshhwAwjIA9jZnomEU/FXOdFudI2KURt6XYo1TGAf4ePv+tcU6L95juboMx8+k ezNDHNErC+F/o5LxSlZ5Mj6UmuofXGSzrQ+GW20mpythZXVjK5WNt9LDPcjd0A2sy8tO 5w== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2ntbmqf0h5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Nov 2018 16:29:42 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wAJGTaMt012746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Nov 2018 16:29:36 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAJGTY1T003332; Mon, 19 Nov 2018 16:29:34 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 Nov 2018 08:29:34 -0800 Date: Mon, 19 Nov 2018 08:29:42 -0800 From: Daniel Jordan To: "Elliott, Robert (Persistent Memory)" Cc: Daniel Jordan , "linux-mm@kvack.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "aarcange@redhat.com" , "aaron.lu@intel.com" , "akpm@linux-foundation.org" , "alex.williamson@redhat.com" , "bsd@redhat.com" , "darrick.wong@oracle.com" , "dave.hansen@linux.intel.com" , "jgg@mellanox.com" , "jwadams@google.com" , "jiangshanlai@gmail.com" , "mhocko@kernel.org" , "mike.kravetz@oracle.com" , "Pavel.Tatashin@microsoft.com" , "prasad.singamsetty@oracle.com" , "rdunlap@infradead.org" , "steven.sistare@oracle.com" , "tim.c.chen@intel.com" , "tj@kernel.org" , "vbabka@suse.cz" , zwisler@google.com Subject: Re: [RFC PATCH v4 11/13] mm: parallelize deferred struct page initialization within each node Message-ID: <20181119162942.25qyec52mtzwe2xo@ca-dmjordan1.us.oracle.com> References: <20181105165558.11698-1-daniel.m.jordan@oracle.com> <20181105165558.11698-12-daniel.m.jordan@oracle.com> <20181112165412.vizeiv6oimsuxkbk@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112165412.vizeiv6oimsuxkbk@ca-dmjordan1.us.oracle.com> User-Agent: NeoMutt/20180323-268-5a959c X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9082 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811190151 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 08:54:12AM -0800, Daniel Jordan wrote: > On Sat, Nov 10, 2018 at 03:48:14AM +0000, Elliott, Robert (Persistent Memory) wrote: > > > -----Original Message----- > > > From: linux-kernel-owner@vger.kernel.org > > owner@vger.kernel.org> On Behalf Of Daniel Jordan > > > Sent: Monday, November 05, 2018 10:56 AM > > > Subject: [RFC PATCH v4 11/13] mm: parallelize deferred struct page > > > initialization within each node > > > > > > ... The kernel doesn't > > > know the memory bandwidth of a given system to get the most efficient > > > number of threads, so there's some guesswork involved. > > > > The ACPI HMAT (Heterogeneous Memory Attribute Table) is designed to report > > that kind of information, and could facilitate automatic tuning. > > > > There was discussion last year about kernel support for it: > > https://lore.kernel.org/lkml/20171214021019.13579-1-ross.zwisler@linux.intel.com/ > > Thanks for bringing this up. I'm traveling but will take a closer look when I > get back. So this series would give the total bandwidth for a memory target, but there's not a way to map that to a CPU count. In other words, it seems we couldn't determine how many CPUs it takes to reach the max bandwidth. If I haven't missed something, I'm going to remove that comment.