[ofa-general] QP connection healthy detection problem with fork/exec
Tang, Changqing
changquing.tang at hp.com
Fri Mar 28 12:58:12 PDT 2008
Thanks. Closing all unused fd except 0,1,2 is our current solution.
--CQ
> -----Original Message-----
> From: Roland Dreier [mailto:rdreier at cisco.com]
> Sent: Friday, March 28, 2008 12:33 PM
> To: Tang, Changqing
> Cc: dpn at lampreynetworks.com; general at lists.openfabrics.org
> Subject: Re: [ofa-general] QP connection healthy detection
> problem with fork/exec
>
> > When a process fork/exec, isn't QP destroyed automatically
> ? If the QP is destroyed, then > RDMA operation is based on
> QP connection and should fail.
>
> No, the QP is not destroyed automatically.
>
> The kernel will clean up resources when the user verbs
> context's file descriptor is closed, and that does not happen
> on fork/exec.
>
> A safe thing to do when you fork/exec is to close any file
> descriptors that you don't need... you can use a loop up to
> getdtablesize() to close everything.
>
> - R.
>
More information about the general
mailing list