From owner-freebsd-arch@FreeBSD.ORG Wed May 28 13:10:39 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71A8237B401 for ; Wed, 28 May 2003 13:10:39 -0700 (PDT) Received: from mailman.research.att.com (H-135-207-24-32.research.att.com [135.207.24.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82D4E43F3F for ; Wed, 28 May 2003 13:10:38 -0700 (PDT) (envelope-from fenner@research.att.com) Received: from unixmail.research.att.com (unixmail.research.att.com [135.207.26.71])h4SK6D3j011652; Wed, 28 May 2003 16:06:13 -0400 Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46])h4SK9CXs027865; Wed, 28 May 2003 16:09:12 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.11.6+Sun/8.8.5) id h4SKAZh07220; Wed, 28 May 2003 13:10:35 -0700 (PDT) Message-Id: <200305282010.h4SKAZh07220@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: is@rambler-co.ru Date: Wed, 28 May 2003 13:10:34 -0700 Versions: dmail (solaris) 2.5a/makemail 2.9d cc: arch@freebsd.org Subject: Re: sendfile(2) SF_NOPUSH flag proposal X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 20:10:39 -0000 >1) use TF_NOPUSH to coalesce the header and the first file part > or the last file part and the trailer as Matthew Dillon suggested; Is this really necessary? >2) use the same TF_NOPUSH to postpone the sending partial packet while > a reading file page from the disk; PRUS_MORETOCOME does this too, and is quite a bit less hacky. >3) and use PRUS_MORETOCOME to avoid partial packet after EAGAIN > on non-blocking socket. Yup. Bill