[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071213205416.GA15807@linux-os.sc.intel.com>
Date: Thu, 13 Dec 2007 12:54:17 -0800
From: "Siddha, Suresh B" <suresh.b.siddha@...el.com>
To: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: Christoph Lameter <clameter@....com>,
Suresh Siddha <suresh.b.siddha@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...e.hu>, Andi Kleen <ak@...e.de>,
Tony Luck <tony.luck@...el.com>,
Asit Mallick <asit.k.mallick@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: What was the problem with quicklists and x86-64?
On Wed, Dec 12, 2007 at 11:14:41AM -0800, Jeremy Fitzhardinge wrote:
> I'm looking at unifying the various pgalloc+pgd_lists mechanisms between
> 32-bit (PAE and non-PAE) and 64-bit, so I'm trying to understand why
> these differences exist in the first place.
>
> Change da8f153e51290e7438ba7da66234a864e5d3e1c1 reverted the use of
> quicklists for allocating pagetables, because of concerns about ordering
> with respect to tlb flushes.
Main thing to note is, while unmapping linear address space, we should not
free underlying pages, page table pages (for all hierarchies), till we flush
the active TLB caches in all the CPUs.
Violation of this can potentially cause SW failures and hard to debug issues
like
http://www.ussg.iu.edu/hypermail/linux/kernel/0205.2/1254.html
For more info, you can refer
http://developer.intel.com/design/processor/applnots/317080.pdf
> Some questions about this:
>
> 1. What's the difference between quicklists and normal page
> allocation with respect to tlb flushing?
Linus and Christoph went in detail about this.
http://kerneltrap.org/mailarchive/linux-kernel/2007/9/21/271638
There were some preemption and other concerns that Linus mentioned,
and was referring to of integrating quicklists and mmu_gather operations
and not keep them separate.
> 2. Why doesn't this also affect i386's use of quicklists?
> 3. Is there some way to resolve this tlb interaction so that
> quicklists can be used?
> 4. Failing that, what's the cost of reverting i386's use of
> quicklists too?
I have to look at i386 code but I don't think it was using quicklists
as extensively as the previous x86_64 code does. Will take a look at it.
thanks,
suresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists