* [RFC] increase ia64 static per cpu area
@ 2010-07-26 22:20 Luck, Tony
2010-07-27 8:39 ` Tejun Heo
2010-07-28 20:48 ` Tony Luck
0 siblings, 2 replies; 3+ messages in thread
From: Luck, Tony @ 2010-07-26 22:20 UTC (permalink / raw)
To: linux-ia64
I've been trying to avoid this for a long time ... but per-cpu space
has slowly been growing. Tejun has some patches in linux-next that
pre-reserve some space (PERCPU_DYNAMIC_EARLY_SIZE) for use before
slab comes online ... and this pushes ia64 above the 64K current
limit on static percpu space.
I could probably squeeze it back under (we are only over by 512 bytes).
But I don't think that I'll be able to squeeze it down enough to build
a comfortable breathing space - and I don't want to keep nibbling off
a dozen bytes here and there every time some generic code bumps us
back over the limit.
Next available supported page size is 256K ... so we have to quadruple
the available space - a bigger jump than I'd like. But perhaps it will
be enough to last a few more years before it needs to be increased again.
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
diff --git a/arch/ia64/include/asm/page.h b/arch/ia64/include/asm/page.h
index 5f271bc..41b6d31 100644
--- a/arch/ia64/include/asm/page.h
+++ b/arch/ia64/include/asm/page.h
@@ -41,7 +41,7 @@
#define PAGE_SIZE (__IA64_UL_CONST(1) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE - 1))
-#define PERCPU_PAGE_SHIFT 16 /* log2() of max. size of per-CPU area */
+#define PERCPU_PAGE_SHIFT 18 /* log2() of max. size of per-CPU area */
#define PERCPU_PAGE_SIZE (__IA64_UL_CONST(1) << PERCPU_PAGE_SHIFT)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC] increase ia64 static per cpu area
2010-07-26 22:20 [RFC] increase ia64 static per cpu area Luck, Tony
@ 2010-07-27 8:39 ` Tejun Heo
2010-07-28 20:48 ` Tony Luck
1 sibling, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2010-07-27 8:39 UTC (permalink / raw)
To: linux-ia64
Hello,
On 07/27/2010 12:20 AM, Luck, Tony wrote:
> I've been trying to avoid this for a long time ... but per-cpu space
> has slowly been growing. Tejun has some patches in linux-next that
> pre-reserve some space (PERCPU_DYNAMIC_EARLY_SIZE) for use before
> slab comes online ... and this pushes ia64 above the 64K current
> limit on static percpu space.
Yeah, more stuff are moving to percpu area. I'm thinking about
increasing PERCPU_DYNAMIC_RESERVE too as it's overflowing in most
common cases now, but it's not really a bad thing tho. Many of those
used to use NR_CPUS allocations instead so overall I don't think we're
wasting memory.
> I could probably squeeze it back under (we are only over by 512 bytes).
> But I don't think that I'll be able to squeeze it down enough to build
> a comfortable breathing space - and I don't want to keep nibbling off
> a dozen bytes here and there every time some generic code bumps us
> back over the limit.
>
> Next available supported page size is 256K ... so we have to quadruple
> the available space - a bigger jump than I'd like. But perhaps it will
> be enough to last a few more years before it needs to be increased again.
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
I suppose this would go through ia64 tree?
Thank you.
--
tejun
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] increase ia64 static per cpu area
2010-07-26 22:20 [RFC] increase ia64 static per cpu area Luck, Tony
2010-07-27 8:39 ` Tejun Heo
@ 2010-07-28 20:48 ` Tony Luck
1 sibling, 0 replies; 3+ messages in thread
From: Tony Luck @ 2010-07-28 20:48 UTC (permalink / raw)
To: linux-ia64
> Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
> I suppose this would go through ia64 tree?
Yes. I've just added it to my "test" tree, so it will be merged into
the next linux-next.
I'm assuming your percpu changes are planned for the next merge
window. I'll push this
to Linus then.
-Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-28 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 22:20 [RFC] increase ia64 static per cpu area Luck, Tony
2010-07-27 8:39 ` Tejun Heo
2010-07-28 20:48 ` Tony Luck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox