From: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
To: "Håkon Bugge" <Haakon.Bugge-UdXhSnd/wVw@public.gmane.org>
Cc: Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Eric B Munson <ebmunson-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org,
peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org,
pavel-+ZI9xUNit7I@public.gmane.org,
mingo-X9Un+BFzKDI@public.gmane.org,
jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org
Subject: Re: [PATCH] ummunotify: Userspace support for MMU notifications
Date: Tue, 13 Apr 2010 10:57:32 -0700 [thread overview]
Message-ID: <adahbnfme0j.fsf@roland-alpha.cisco.com> (raw)
In-Reply-To: <3251DDDA-D705-4B1E-9595-9C24709EF146-U0mLk4xYmo8@public.gmane.org> ("Håkon Bugge"'s message of "Tue, 13 Apr 2010 10:29:41 +0200")
> I am not sure I agree with the premises here. ptMalloc and malloc
> hooks are not related to the issue in my opinion. User space library
> calls do not change virtual to physical mapping, system calls do. The
> following sys calls might change virtual to physical mapping:
> munmap(), mremap(), sbrk(), madvice(). What we need is glibc to
> provide hooks for these 4 sys calls and the general syscall() when
> its argument is one of the four mentioned syscalls. To me, that is
> what is needed, and the ummunotify direction seems way too
> complicated to me.
Are those system calls the only possible way that virtual to physical
mappings can change? Can't page migration or something like that
potentially affect things? And even if you did have hooks into every
system call that mattered (keep in mind that relying on glibc is not
enough, since an MPI application may not use glibc) would decoding them
and figuring out what happened really be preferable to a single event
type that tells you exactly what address range was affected?
> It is further claimed that "… other tricks are not robust". I wrote
> the code used in Scali/Platform MPI handling the issue. I do not
> think its fair to claim that this MPI is not robust in this matter
> nor that is performance is bad.
The Open MPI developers have spent a lot of effort trying to handle this
purely in userspace and still do not believe that a truly robust
solution is possible without kernel help. Perhaps they can expand on
what the obstacles are.
- R.
--
Roland Dreier <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-04-13 17:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 6:22 [PATCH] ummunotify: Userspace support for MMU notifications Eric B Munson
[not found] ` <1271053337-7121-1-git-send-email-ebmunson-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-04-12 20:20 ` Pavel Machek
2010-04-14 16:43 ` [PATCH] ummunotify: fix umn-test build Randy Dunlap
[not found] ` <20100414094341.ba69842d.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2010-04-17 17:44 ` Eric B Munson
[not found] ` <20100417174404.GB3579-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-04-18 14:38 ` Roland Dreier
2010-04-12 23:03 ` [PATCH] ummunotify: Userspace support for MMU notifications Andrew Morton
[not found] ` <20100412160359.1d9074dc.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2010-04-12 23:59 ` Jason Gunthorpe
[not found] ` <20100412235937.GF15629-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-04-13 8:29 ` Håkon Bugge
[not found] ` <3251DDDA-D705-4B1E-9595-9C24709EF146-U0mLk4xYmo8@public.gmane.org>
2010-04-13 17:57 ` Roland Dreier [this message]
[not found] ` <adahbnfme0j.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-04-13 18:02 ` Peter Zijlstra
2010-04-14 5:18 ` Håkon Bugge
2010-04-14 8:52 ` Gleb Natapov
2010-04-15 13:48 ` Peter Zijlstra
2010-04-14 9:06 ` Gleb Natapov
[not found] ` <20100414090623.GM23554-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-14 14:36 ` Jeff Squyres
2010-04-17 17:41 ` Eric B Munson
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=adahbnfme0j.fsf@roland-alpha.cisco.com \
--to=rdreier-fyb4gu1cfyuavxtiumwx3w@public.gmane.org \
--cc=Haakon.Bugge-UdXhSnd/wVw@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=ebmunson-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mingo-X9Un+BFzKDI@public.gmane.org \
--cc=pavel-+ZI9xUNit7I@public.gmane.org \
--cc=peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.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