From: Liang Zhen <Zhen.Liang@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] SMP Scalability, MDS, reducing cpu pingpong
Date: Thu, 30 Jul 2009 21:53:10 +0800 [thread overview]
Message-ID: <4A71A5C6.80806@sun.com> (raw)
In-Reply-To: <7CBBBA6F-3A7F-4966-B76A-AB6B214D4AC8@Sun.COM>
Oleg Drokin wrote:
> Hello!
>
> On Jul 30, 2009, at 5:25 AM, Liang Zhen wrote:
>>>>> Another scenario that I have not seen discussed but that is
>>>>> potentially pretty important for MDS is ability to route expected
>>>>> messages (the ones like rep-ack reply) to a specific cpu regardless
>>>>> of what NID did it come from. E.g. if we did rescheduling of MDS
>>>>> request to some CPU and this is a difficult reply, we definitely
>>>>> want the confirmation to be processed on that same cpu that sent the
>>>>> reply originally, since it references all the locks supposedly
>>>>> served by that CPU, etc. This is better to happen within LNET. I
>>>>> guess similar thing might be beneficial to clients too where a reply
>>>>> is received on the same CPU that sent original request in hopes that
>>>>> the cache is still valid and the processing would be so much faster
>>>>> as a result.
>>>> You could use a "hints" field in the LNET header for this.
>> That's about outgoing LNet message when sending reply, however,
>> sending a message still need go through "connection" & "peer" of LNet
>> and LND as well, and finally go out from the connection of network
>> stack, which are all bound on CPU hashed by NID (again).
>
> Nothing prevents us from introducing extra argument for event handler,
> thoguh?
We actually don't need do that in my branch, when we send reply, LNet
would generate a cookie(MD handle) for the reply buffer which already
contained current CPU id, and remote peer will send back ACK with the
same cookie(MD handle), so the ACK will match to the sending CPU id and
callback for the same CPU. So that's some work we have already done, :)
Regards
Liang
>
> Bye,
> Oleg
next prev parent reply other threads:[~2009-07-30 13:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7580C3C1-7634-47C8-827B-C93157C1301A@Sun.COM>
2009-07-29 15:37 ` [Lustre-devel] SMP Scalability, MDS, reducing cpu pingpong Eric Barton
2009-07-29 16:01 ` Oleg Drokin
2009-07-29 18:55 ` Ricardo M. Correia
2009-07-29 19:05 ` Oleg Drokin
2009-07-29 19:22 ` Nicolas Williams
2009-07-30 1:40 ` Andreas Dilger
2009-07-30 9:25 ` Liang Zhen
2009-07-30 13:35 ` Oleg Drokin
2009-07-30 13:53 ` Liang Zhen [this message]
2009-07-30 23:19 ` Andreas Dilger
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=4A71A5C6.80806@sun.com \
--to=zhen.liang@sun.com \
--cc=lustre-devel@lists.lustre.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.