From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645AbYCJRvX (ORCPT ); Mon, 10 Mar 2008 13:51:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751293AbYCJRvP (ORCPT ); Mon, 10 Mar 2008 13:51:15 -0400 Received: from one.firstfloor.org ([213.235.205.2]:56823 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbYCJRvO (ORCPT ); Mon, 10 Mar 2008 13:51:14 -0400 Date: Mon, 10 Mar 2008 18:53:05 +0100 From: Andi Kleen To: Jeremy Fitzhardinge Cc: Hugh Dickins , Andi Kleen , Christoph Lameter , Andrew Morton , Ingo Molnar , KOSAKI Motohiro , Thomas Gleixner , LKML , Linus Torvalds , Bart Van Assche Subject: Re: quicklists confuse meminfo Message-ID: <20080310175305.GC7692@one.firstfloor.org> References: <20080309111456.GA21690@elte.hu> <20080309210000.C6DE.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20080309120940.GA1695@elte.hu> <20080309123432.GA3267@elte.hu> <20080309114640.85c9c3eb.akpm@linux-foundation.org> <87myp68r88.fsf@basil.nowhere.org> <47D57056.3050204@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D57056.3050204@goop.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 1. Xen marks the whole page as being of pgd-type, and so it can't > have non-pgd contents (as the page would be RO, and any contents > would be validated as pgd entries). However I can fix that by That sounds more like a Xen bug. Why should it validate anything except the first four entries which are used by the hardware? I can imagine that false sharing would be slow because you would have unnecessary traps, but it shouldn't be a correctness issue. > maintaining a separate per-cpu pgd page, and just copy the four > entries over when cr3 is reloaded. This would move the > Xen-specific requirements into the Xen code without affecting the > rest of the kernel. x86-64 used to do that, but it turned out this breaks some shared cache optimizations on the P4 between SMT threads. So you might actually see user space performance regressions from it. -Andi