Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751247AbdILHOo (ORCPT ); Tue, 12 Sep 2017 03:14:44 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:50074 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbdILHOn (ORCPT ); Tue, 12 Sep 2017 03:14:43 -0400 Date: Tue, 12 Sep 2017 09:14:38 +0200 From: Markus Trippelsdorf To: Linus Torvalds Cc: Borislav Petkov , Andy Lutomirski , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , LKML , Ingo Molnar , Tom Lendacky Subject: Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf Message-ID: <20170912071438.GA282@x4> References: <20170909140700.bp7jonmp7etlb7ov@pd.tnic> <20170909142014.GC289@x4> <20170909143335.ja2iwjsbeyfxz4ez@pd.tnic> <20170909144350.GA290@x4> <20170909163225.GA290@x4> <20170909170537.6xmxtzwripplhhwi@pd.tnic> <20170909172352.GA290@x4> <20170909173633.4ttfk7maooxkcwum@pd.tnic> <20170909181445.GA281@x4> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 902 Lines: 26 On 2017.09.09 at 11:26 -0700, Linus Torvalds wrote: > On Sat, Sep 9, 2017 at 11:14 AM, Markus Trippelsdorf > wrote: > > > > I think the issue gets fixed by: > > > > # wrmsr -a 0xc0010015 0x1000018 > > > > Setting bit 3 of the Hardware Configuration Register to 1. > > > > Quote from the docs: > > ?TlbCacheDis: cacheable memory disable. Read-write. 0=Enables performance optimization that > > assumes PML4, PDP, PDE, and PTE entries are in cacheable WB-DRAM > > Uhhuh. > > The page directories should *definitely* always be in cacheable > memory, so it should be ok for that bit to be 0, and it's possible > that setting it to 1 will seriously screw up performance. Well, I don't see any dramatic performance decrease on my box. For instance compile times are roughly the same (a bit quicker in fact). And in day to day usage I notice absolutely no difference. -- Markus