Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760896AbbKTTVM (ORCPT ); Fri, 20 Nov 2015 14:21:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47735 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbbKTTVL (ORCPT ); Fri, 20 Nov 2015 14:21:11 -0500 Date: Fri, 20 Nov 2015 15:51:52 -0200 From: Marcelo Tosatti To: Thomas Gleixner Cc: LKML , Peter Zijlstra , x86@kernel.org, Luiz Capitulino , Vikas Shivappa , Tejun Heo , Yu Fenghua Subject: Re: [RFD] CAT user space interface revisited Message-ID: <20151120175151.GA13966@amt.cnet> References: <20151119000153.GA27997@amt.cnet> <20151119010535.GA30233@amt.cnet> <20151119205925.GA13727@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1873 Lines: 49 On Fri, Nov 20, 2015 at 08:53:34AM +0100, Thomas Gleixner wrote: > On Thu, 19 Nov 2015, Marcelo Tosatti wrote: > > On Thu, Nov 19, 2015 at 10:09:03AM +0100, Thomas Gleixner wrote: > > > On Wed, 18 Nov 2015, Marcelo Tosatti wrote > > > > Actually, there is a point that is useful: you might want the important > > > > application to share the L3 portion with HW (that HW DMAs into), and > > > > have only the application and the HW use that region. > > > > > > > > So its a good point that controlling the exact position of the reservation > > > > is important. > > > > > > I'm glad you figured that out yourself. :) > > > > > > Thanks, > > > > > > tglx > > > > The HW is a reclaimer of the L3 region shared with HW. > > > > You might want to remove any threads from reclaiming from > > that region. > > I might for some threads, but certainly not for those which need to > access DMA buffers. Yes, when i wrote "its a good point that controlling the exact position of the reservation is important" i had that in mind as well. But its wrong: not having a bit set in the CBM for the portion of L3 cache which is shared with HW only means "for cacheline misses of the application, evict cachelines from this portion". So yes, you might want to exclude the application which accesses DMA buffers from reclaiming cachelines in the portion shared with HW, to keep those cachelines longer in L3. > Throwing away 10% of L3 just because you don't > want to deal with it at the interface level is hillarious. If there is interest on per-application configuration then it can be integrated as well. Thanks for your time. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/