RE: [PATCH] percpu: add optimized generic percpu accessors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luck, Tony
Date: Tuesday, January 27, 2009 - 5:17 pm

> I was asking around, and was told that on IA64 *harware* at least, in addition to

The number of TLB entries that can be pinned is model specific (but the
minimum allowed is 8 each for code & data).  Page sizes supported also
vary by model, recent models go up to 4GB.

BUT ... we stopped pinning this entry in the TLB when benchmarks showed
that it was better to just insert this as a regular TLB entry which might
can be dropped to map something else.  So now there is code in the Alt-DTLB
miss handler (ivt.S) to insert the per-cpu mapping on an as needed basis.


Managing a larger space could be done ... but at the expense of making
the Alt-DTLB miss handler do a memory lookup to find the physical address
of the per-cpu page needed (assuming that we allocate a bunch of random
physical pages for use as per-cpu space rather than a single contiguous
block of physical memory).

When do we know the total amount of per-cpu memory needed?
1) CONFIG time?
2) Boot time?
3) Arbitrary run time?

-Tony
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] percpu: add optimized generic percpu accessors, Christoph Lameter, (Tue Jan 27, 1:08 pm)
RE: [PATCH] percpu: add optimized generic percpu accessors, Luck, Tony, (Tue Jan 27, 5:17 pm)
Re: [PATCH] percpu: add optimized generic percpu accessors, Christoph Lameter, (Wed Jan 28, 9:45 am)
RE: [PATCH] percpu: add optimized generic percpu accessors, Christoph Lameter, (Wed Jan 28, 9:48 am)
Re: [PATCH] percpu: add optimized generic percpu accessors, Christoph Lameter, (Wed Jan 28, 9:50 am)
Re: [PATCH] percpu: add optimized generic percpu accessors, Mathieu Desnoyers, (Wed Jan 28, 11:07 am)
Re: [PATCH] percpu: add optimized generic percpu accessors, Christoph Lameter, (Thu Jan 29, 11:33 am)
Re: [PATCH] percpu: add optimized generic percpu accessors, H. Peter Anvin, (Thu Jan 29, 11:48 am)