From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754148AbbBZTOP (ORCPT ); Thu, 26 Feb 2015 14:14:15 -0500 Received: from mga11.intel.com ([192.55.52.93]:27359 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752999AbbBZTOO (ORCPT ); Thu, 26 Feb 2015 14:14:14 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,654,1418112000"; d="scan'208";a="533356945" Date: Thu, 26 Feb 2015 11:12:28 -0800 (PST) From: Vikas Shivappa X-X-Sender: vikas@vshiva-Udesk To: Borislav Petkov cc: Vikas Shivappa , Vikas Shivappa , linux-kernel@vger.kernel.org, matt.fleming@intel.com, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, tj@kernel.org, peterz@infradead.org, will.auld@intel.com, dave.hansen@intel.com, andi.kleen@intel.com, tony.luck@intel.com, kanaka.d.juvva@intel.com Subject: Re: [PATCH 1/7] x86/intel_rdt: Intel Cache Allocation Technology detection In-Reply-To: <20150226185833.GG3314@pd.tnic> Message-ID: References: <1424819804-4082-1-git-send-email-vikas.shivappa@linux.intel.com> <1424819804-4082-2-git-send-email-vikas.shivappa@linux.intel.com> <20150224234334.GB3706@pd.tnic> <20150225112153.GB3226@pd.tnic> <20150226185833.GG3314@pd.tnic> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Feb 2015, Borislav Petkov wrote: > On Thu, Feb 26, 2015 at 10:19:42AM -0800, Vikas Shivappa wrote: >> This would be an indication that the System support RDT. On a system with >> RDT would see a print. >> >> intel_rdt: cbmlength: xx , CLOss:xx > > Ok, so I have a capacity bitmask of length xx and yy classes of service. > And? > > Are you expecting for tools or experienced users to grep dmesg to find > that information? > > Uh, but what happens on a machine which has a small log buffer and which > has wrapped around and that information has been overwritten? Yes, this is not the only way to see if the feature is enabled. It can be seen in cpuinfo like you mention below. The root's cbm mask represents the max cbm length already - that can be seen by the user as defined in the documentation. It is under consideration to add Max closids or something like clos ids available to be shown in the root cgroup once there are more resources and more such parameters required to be exposed to user. It would be easier to view the resources like CPUID availability through cgroup interface itself rather than add an other interface for the same. > > See what I mean? > > If you really want to communicate this information to someone, you > should use more robust methods like make userspace use CPUID directly or > expose that information in sysfs if CPUID is not an option (but I can't > imagine why it wouldn't be). > > This flaky message which can get overwritten and gets used only by a > small percentage of people(?) (I haven't reached the part which tells > me the use cases for that resource management yet) is purely useless in > dmesg. > > Even /proc/cpuinfo, which will have "rdt" et all in there according to > the defines you're adding, would be a much better way to detect what's > supported quickly than the message. > > HTH. > > -- > Regards/Gruss, > Boris. > > ECO tip #101: Trim your mails when you reply. > -- >