[openib-general] Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation
Rik van Riel
riel at redhat.com
Wed May 4 18:27:21 PDT 2005
On Wed, 4 May 2005, William Jordan wrote:
> On 5/3/05, Andy Isaacson <adi at hexapodia.org> wrote:
> > Rather than replacing the fully-registered pages with pages of zeros,
> > you could simply unmap them.
>
> I don't like this option. It is nearly free to map all of the pages to
> the zero-page. You never have to allocate a page if the user never
> writes to it.
Unmapping should work fine, as long as the VMA flags are
set appropriately. The page fault handler can take care
of the rest...
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
More information about the general
mailing list