From: ebiederm@xmission.com (Eric W. Biederman)
To: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, shai@scalex86.org
Subject: Re: [patch] Pad irq_desc to internode cacheline size
Date: Mon, 09 Apr 2007 16:33:25 -0600 [thread overview]
Message-ID: <m1abxh18lm.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20070409220936.GD5275@localhost.localdomain> (Ravikiran G. Thirumalai's message of "Mon, 9 Apr 2007 15:09:36 -0700")
Ravikiran G Thirumalai <kiran@scalex86.org> writes:
> !!! No. internode aligned is 4k only if CONFIG_X86_VSMP is chosen. The
> internode line size defaults to SMP_CACHE_BYTES for all other machine types.
> Please note that an INTERNODE_CACHE_SHIFT of 12 is defined under
> #ifdef CONFIG_X86_VSMP in include/asm-x86_64/cache.h
You are right. I got confused by the single definition in
asm-x86_64/cache.h
Think you can rewrite that concept so it is readable and maintainable?
Maybe all in Kconfig like INTERNODE_CACHE_BYTES or all in an sub
architecture specific header?
>> I believe this ups our worst case memory consumption for
>> the array from 1M to 32M. Although the low end might be 2M.
>> I can't recall if an irq_desc takes one cache line or two
>> after we have put the cpu masks in it.
>>
>> My gut feel says that what we want to do is delay this until
>> we are dynamically allocating the array members. Then we can at
>> least have the chance of allocating the memory on the proper NUMA
>> node, and won't need the extra NUMA alignment.
>
> I was thinking on those lines as well. But, until we get there, can we have
> this in as stop gap? The patch does not increase the memory footprint for
> any other architecture other than vSMPowered systems.
I don't think so because it doesn't make sense, and we are talking
about extremely generic code. And several other architectures are
already using the INTERNODE_CACHE_SHIFT concept. So even if VSMP
is the only architecture that defines it today, it doesn't look like
the only architecture that will define it tomorrow.
If you are sufficient NUMA to care you will destroy your performance
by handling the irq on the wrong node. So it make no sense to have
an irq_desc that is optimized for handling an irq on the wrong node.
So until we can handle this cleanly let's not let your platform
specific pain and insanity spill into other architectures.
I'm about half way there towards a patchset to get irq_desc
dynamically allocated, and if can find a day or two in the next
couple of weeks I 2.6.23 sounds like a possibility. So this shouldn't
be something that is impossibly distant.
Eric
prev parent reply other threads:[~2007-04-09 22:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 19:56 Ravikiran G Thirumalai
2007-04-09 20:57 ` Andrew Morton
2007-04-09 21:47 ` Eric W. Biederman
2007-04-09 22:09 ` Ravikiran G Thirumalai
2007-04-09 22:33 ` Eric W. Biederman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1abxh18lm.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--cc=kiran@scalex86.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shai@scalex86.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®