From owner-freebsd-net@FreeBSD.ORG Thu Sep 21 07:59:10 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8796916A415; Thu, 21 Sep 2006 07:59:10 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail29.syd.optusnet.com.au (mail29.syd.optusnet.com.au [211.29.132.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D3C443D5A; Thu, 21 Sep 2006 07:59:06 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail29.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k8L7x30a014406 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 21 Sep 2006 17:59:04 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id k8L7x3ob001188; Thu, 21 Sep 2006 17:59:03 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id k8L7x3fu001187; Thu, 21 Sep 2006 17:59:03 +1000 (EST) (envelope-from peter) Date: Thu, 21 Sep 2006 17:59:03 +1000 From: Peter Jeremy To: Andre Oppermann Message-ID: <20060921075903.GD960@turion.vk2pj.dyndns.org> References: <4511B9B1.2000903@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pk6IbRAofICFmK5e" Content-Disposition: inline In-Reply-To: <4511B9B1.2000903@freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: Much improved sendfile(2) kernel implementation X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 07:59:10 -0000 --Pk6IbRAofICFmK5e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 tur= ns >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? --=20 Peter Jeremy --Pk6IbRAofICFmK5e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEkZH/opHv/APuIcRAhDiAJ9him08wniFTAjcmVqdhFvVpAN5GgCfYtE5 +6i5j8cghQVlzSOqu+LjT0I= =TCn6 -----END PGP SIGNATURE----- --Pk6IbRAofICFmK5e--