摘要 |
<p>A method and apparatus for combining writes and avoiding redundant writes are disclosed. Based on values such as overhead message size, largest message size, packet round trip time, cache block size, dirty cache region size and separation, channel throughput, and the identity of cached data values, a write region (60) containing cached data (68) is selected and (if non-empty) is written across the network (10). Depending on conditions, the selected write region includes either two dirty regions (62, 68) and an intervening clean region (70) or only one dirty region. In the latter case, the other dirty region is flushed by a subsequent write operation. The goals of avoiding network congestion, updating the cache promptly, and utilizing available network bandwidth are balanced according to conditions in the cache (60) and on the network (10).</p> |