The netdump-client currently utilizes a 64KB buffer to buffer pages while sending packets to the server. When writing out 64K blocks this buffer is fully utilized, but dump writes only come in 64K chunks when dumping the page directories, all other writes are in chunks of 4K. This patch buffers (at most) 16 of these blocks before sending for a slight performance improvement especially for smaller dump sizes (where the leader and headers are a larger portion of the dump).
This patch won't have a large impact on high memory systems because pages are already dumped in chunks of 64K, further work is needed to add a larger buffer and sliding window to the UDP stack in netdump_send() to see a larger improvement in those cases.