From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbdI3I1X (ORCPT ); Sat, 30 Sep 2017 04:27:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:33405 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751351AbdI3I1V (ORCPT ); Sat, 30 Sep 2017 04:27:21 -0400 Date: Sat, 30 Sep 2017 10:27:04 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Fenghua Yu , Reinette Chatre , Steven Rostedt , Vikas Shivappa Subject: Re: [RFC 0/5] x86/intel_rdt: Better diagnostics Message-ID: <20170930082704.lzbemnnipddekctj@pd.tnic> References: <20170921120815.GA8593@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170921120815.GA8593@nazgul.tnic> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 21, 2017 at 02:08:15PM +0200, Borislav Petkov wrote: > On Mon, Sep 18, 2017 at 03:18:38PM -0700, Luck, Tony wrote: > > From: Tony Luck > > > > Chatting online with Boris to diagnose why his test cases for RDT > > weren't working, we came up with either a good idea (in which case > > I credit Boris) or a dumb one (in which case this is all my fault). > > Ha! I can share the fault, no worries :-) > > I'll test them on my box when I get a chance. Ok, I ran latest tip/master which has your patches: # mkdir p0 p1 # echo "L3:0=00fff;1=ff000\nMB:0=50;1=50" > /sys/fs/resctrl/p0/schemata bash: echo: write error: Invalid argument # cat info/last_cmd_status non-hex character in mask ff000\nMB:0=50 <--- I think this needs to be fixed in the doc examples to say: echo -e "L3:0=00fff;1=ff000\nMB:0=50;1=50" > /sys/fs/resctrl/p0/schemata i.e., you need to supply -e in order to interpret backslash chars. # echo -e "L3:0=00fff;1=ff000\nMB:0=50;1=50" > /sys/fs/resctrl/p0/schemata bash: echo: write error: Invalid argument # cat info/last_cmd_status unknown/unsupported resource name 'MB' <--- Yap, much better. # mkdir c1 # cat c1/schemata L3:0=fffff;1=fffff # echo "L3:0=3;1=3" > c1/schemata # cat info/last_cmd_status ok # echo 1 > c1/tasks # cat info/last_cmd_status ok # Yap, thanks for doing this! -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --