Reworking after run through with Paolo.
[libguestfs-talks.git] / 2019-kvm-forum / 8300-tradeoff-poll-v-notify.html
1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
2 <link rel="stylesheet" href="style.css" type="text/css"/>
3 <script src="code.js" type="text/javascript"></script>
4
5 <h1>Tradeoff: poll or notify</h1>
6
7 <p>
8   Polling:
9   <ul>
10     <li>Server cannot report size unless client asks
11     <li>Each server reply sets <code>NBD_REPLY_DONE</code> flag bit
12     <li>Client must ask in a loop when polling for a change from the
13       server
14   </ul>
15 <p>
16   <img src="8300-poll.png"/>
17
18 <p>
19   Notify:
20   <ul>
21     <li>Client uses <code>NBD_CMD_FLAG_RESIZE_NOTIFY</code> to
22       request an open-ended command
23     <li>Server replies with <code>NBD_REPLY_DONE</code> flag clear
24       whenever it has a new size to report
25   </ul>
26 <p>
27   <img src="8300-notify.png"/>
28 </p>