Check out the new USENIX Web site. next up previous
Next: Read-Ahead from Network Memory Up: Read-Ahead with Nonblocking RPC Previous: Read-Ahead with Nonblocking RPC

Nonblocking RPC

Any form of prefetching imposes new demands on the communication layer and is highly dependent on its performance. In particular, prefetching requests are RPC calls that generate replies, but the replies must be handled asynchronously and outside of the issuing thread context, so as not to block the issuing thread while the request is pending. NFS client implementations typically solve this problem by handing off read-ahead calls to a system I/O daemon that can wait for RPC replies without affecting user processes [22]. This solution requires a context switch to the I/O daemon for each request and response.

To reduce context switching overhead, GMS/Trapeze implements read-ahead and prefetching using nonblocking RPCs. To implement nonblocking RPC, gms_net supplements the call record with support for continuation procedures invoked directly from the receiver interrupt handler to process the reply. These continuations are similar to Draves et. al. [12], but they execute at interrupt time with no associated thread context. Also, each nonblocking RPC call may have several continuations; the issuing stub pushes pointers to these continuation procedures and their arguments onto a continuation stack linked to the call record returned by gms_net_makebuf. When the reply arrives, the gms_net receiver interrupt handler locates the call record for the reply as before, pops the continuations from the stack, and calls them in order with their arguments. Like other interrupt handling code, continuation procedures are not permitted to sleep.

Continuations in gms_net nonblocking RPC are related to callbacks in Rover's QRPC [19]. In Rover, asynchronous RPC calls are used to allow applications to tolerate slow and unreliable mobile networks, whereas in GMS/Trapeze their purpose is to support pipelined RPC operations (e.g., prefetching) on a fast and reliable cluster interconnect.


next up previous
Next: Read-Ahead from Network Memory Up: Read-Ahead with Nonblocking RPC Previous: Read-Ahead with Nonblocking RPC
Darrell Anderson
1998-04-27