[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090911064019.GZ4973@obsidianresearch.com>
Date: Fri, 11 Sep 2009 00:40:19 -0600
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: Roland Dreier <rdreier@...co.com>
Cc: Brice Goglin <Brice.Goglin@...ia.fr>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
general@...ts.openfabrics.org, akpm@...ux-foundation.org,
torvalds@...ux-foundation.org
Subject: Re: [ofa-general] Re: [GIT PULL] please pull ummunotify
On Thu, Sep 10, 2009 at 11:22:20PM -0700, Roland Dreier wrote:
> As I said, it does mean that MPI can invalidate cached registrations for
> COWed memory, which might be useful in case a parent forks and then
> touches memory it used to use for RDMA, but I think that's the easier
> part of the fork/COW problem.
What happens to all the other IB resources (PD, CQ, QP, etc) on fork?
AFAIK, pretty much by design the IB stack cannot/does not duplicate
these objects.
The natural consequence is that a PD is always associated with a
single process at a time, thus a memory registration which is
associated with a PD must also be associated with a single process.
So.. What is the problem with fork? The semantics of what should
happen seem natural enough to me, the PD doesn't get copied to the
child, so the MR stays with the parent. COW events on the pinned
region must be resolved so that the physical page stays with the
process that has pinned it - the pin is logically released in the
child because the MR doesn't exist because the PD doesn't exist.
Is this a general problem with the MR mechanism? If I
mmap(MAP_SHARED|MAP_READONLY) and someone mmaps(MAP_PRIVATE|MAP_WRITE)
on the same file I can generate COW events - will this make RDMAs go
randomly too??
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists