[openib-general] Re: [resend][RFC][PATCH] adding call to madvise

Roland Dreier rdreier at cisco.com
Thu May 18 11:48:21 PDT 2006


    Michael> Will this break libibverbs on older kernels that don't
    Michael> have madvise?  Maybe test MADV_DONTFORK during library
    Michael> startup and set a flag?

All kernels have madvise() -- the only question is whether they
support MADV_DONTFORK.  The cost on kernels that don't is a system
call to return -EINVAL.

It might be worth setting a flag on library initialization to save all
the system calls.  But maybe not.

 - R.



More information about the general mailing list