Re: Much improved sendfile(2) kernel implementation

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Thu, 21 Sep 2006 18:08:03 +0100 (BST)
On Thu, 21 Sep 2006, Peter Jeremy wrote:

> On Wed, 2006-Sep-20 23:59:13 +0200, Andre Oppermann wrote:
>> I have rewritten kern_sendfile() to work in two loops, the inner which 
>> turns as many pages into mbufs as it can up to the free send socket buffer 
>> space.
>
> The 64K blocks sounds good but how does this interact with TCP slow start? 
> Is there the possibility that a couple (for some reasonably large value of 
> 'couple') of TCP connections slowly accepting a file could eat all the mbuf 
> space?

In principle, existing socket buffer resource limits are the way to prevent 
this from happening -- sendfile() should continue to obey them as before, we 
are just better able to use the available buffer space if it exists.

Robert N M Watson
Computer Laboratory
University of Cambridge
Received on Thu Sep 21 2006 - 15:08:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC