This is a discussion on Semphore blocked for select operation - VxWorks ; Hello All, > > I am using NFS to connect clinet with server. I have 5 task which > performance same operation of writing data to server (different > files). I have observed one write to server failed with RPC ...
> I am using NFS to connect clinet with server. I have 5 task which
> performance same operation of writing data to server (different
> files). I have observed one write to server failed with RPC timeout
> S_rpcLib_RPC_TIMEDOUT) then that task is blocked and waiting for
> binary semaphore. Rest of the four task is working fine. The call
> stacks is given below.
> Any suggestiong or pointers to below query would be appreciated.
> 1. Is there any relation with RPC timeout and locking of binary
> semaphore which inturn used by Select() API.
> 2. If Write has returned RPC timeout then why write() has not
> released lower layer resource.
> 3. Can network congestion or network problem cause blocking of
> 4. Reason of deadlock.
> 5. Also there task blocked is in state Pend + T+I which means
> inherit . Is there some issue with this
> Call Stack:
> 7bb5ac write +5c : iosWrite ()
> 7bcbe8 iosWrite +c8 : 77d9c4 ()
> 77db84 nfsDevInfoGet +b48: 77dd20 ()
> 77dddc nfsDevInfoGet +da0: 77de48 ()
> 77de94 nfsDevInfoGet +e58: nfsFileWrite ()
> 77edbc nfsFileWrite +124: 77f764 ()
> 77f7e0 nfsFsAttrGet +570: 77f510 ()
> 77f614 nfsFsAttrGet +3a4: clntudp_create ()
> 7e41c0 clntudp_create +34 : clntudp_bufcreate () 7e3f80
> clntudp_bufcreate+114: pmap_getport ()
> 7e4a34 pmap_getport +f4 : 7e41d0 ()
> 7e4448 clntudp_create +2bc: select ()
> 7c132c select +2d8: semTake ()
> 7f65d4 semTake +13c: semBTake ()