Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp795429ima; Wed, 6 Feb 2019 08:28:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IYJCW6lfgP/vuN4TcwZUGEhBq4Lxq5cEz8hV/5rEXEBkSR6nLczSnxhXEAsB+5CWLYhopqf X-Received: by 2002:a17:902:722:: with SMTP id 31mr11579091pli.271.1549470500798; Wed, 06 Feb 2019 08:28:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549470500; cv=none; d=google.com; s=arc-20160816; b=QIRlzvd4wqapQImhiaHBHcGjvOiM0+x7ShPE0XItEVpa7Q8+9b5Lc8hYN8tySd9NGf CZ8+uGaOzy67uHzM5pSxB54LbI7OczSdaFkfevBeyMnMzm7vWl4nnSJYUz/isCofedyZ u3zSrhtsWG8XDkslZ+fKhqD9PiDAi+CaILa7KFsy4Ds2VJNRsZlLYAATfxrAX0JkuMbd 62hFySqfheO5hgshRRVqXrrr5N37/SjTZvCSVpZ6VpzKMiDPg1+eSo9Hk3dj87WSE1KX k60+cTKYuRhubu0ookF+fJ5jN0dTFjH01gr0bNRBl+BlZVGqdw2Ma02GG49u9jQt8xuR pOGA== 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=mQtiybdErV8s1OsqpG1q41Tptk1Di0HWlyJEPWij4Ag=; b=iryDODOKFU316ApvKL/Vtr4/yJ2iP14/NV3SpTrNnyhY3PM6Dr8liOF2GsTJRk3D9X Eg22/ibjSk7Eqm2NTsZMpjr2X5g3NMPX6Xk+qCaCbYcWh4X34qj2fevkqv5OuyvWoYD/ vJfhzH9m186FwsmnWhXQ6KhyMUOEY2zBv/6PoryAQVz8GZ3/b1nMEi3DYkiZ4Vey5JWN Tq5To290Sbj9M3A3MKByEtVJM7ouaoTYFj5Bu+U8DmCOaHnjje2T+PzwuoNIoJbXe2Dy OrVqOLzot55UnMTUYKVzQqrQp//6+WqKj8r91MVeGNZImbjllG5R4J97u4Ax375c2k7i bROw== 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 43si7130204plb.299.2019.02.06.08.28.04; Wed, 06 Feb 2019 08:28:20 -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 S1730855AbfBFQ0Z (ORCPT + 99 others); Wed, 6 Feb 2019 11:26:25 -0500 Received: from mga14.intel.com ([192.55.52.115]:42960 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbfBFQ0Z (ORCPT ); Wed, 6 Feb 2019 11:26:25 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2019 08:26:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,340,1544515200"; d="scan'208";a="132038943" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga002.jf.intel.com with ESMTP; 06 Feb 2019 08:26:24 -0800 Date: Wed, 6 Feb 2019 09:25:53 -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 10/10] doc/mm: New documentation for memory performance Message-ID: <20190206162553.GI28064@localhost.localdomain> References: <20190124230724.10022-1-keith.busch@intel.com> <20190124230724.10022-11-keith.busch@intel.com> <20190206104552.00003bad@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190206104552.00003bad@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 10:45:52AM +0000, Jonathan Cameron wrote: > On Thu, 24 Jan 2019 16:07:24 -0700 > Keith Busch wrote: > > + # tree -P "read*|write*" /sys/devices/system/node/nodeY/access0/ > > + /sys/devices/system/node/nodeY/access0/ > > + |-- read_bandwidth > > + |-- read_latency > > + |-- write_bandwidth > > + `-- write_latency > > These seem to be under > /sys/devices/system/node/nodeY/access0/initiators/ > (so one directory deeper). You're right, I used data from the previous series to generate that. > > + # tree sys/devices/system/node/node0/side_cache/ > > + /sys/devices/system/node/node0/side_cache/ > > + |-- index1 > > + | |-- associativity > > + | |-- level > > What is the purpose of having level in here? Isn't it the same as the A..C > in the index naming? Yes, it is redundant with the name. I will remove it. > > + | |-- line_size > > + | |-- size > > + | `-- write_policy > > + > > +The "associativity" will be 0 if it is a direct-mapped cache, and non-zero > > +for any other indexed based, multi-way associativity. > > Is it worth providing the ACPI mapping in this doc? We have None, Direct and > 'complex'. Fun question of what None means? Not specified? Yeah, my take on "none" was that it's unreported and we don't know what is actually happening.. > > + > > +The "level" is the distance from the far memory, and matches the number > > +appended to its "index" directory. > > + > > +The "line_size" is the number of bytes accessed on a cache miss. > > Maybe "number of bytes accessed from next cache level" ? Sounds good.