From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 5 00:29:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A79F16A4CE for ; Wed, 5 Nov 2003 00:29:56 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F1D0043FBF for ; Wed, 5 Nov 2003 00:29:54 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 26229 invoked from network); 5 Nov 2003 08:29:53 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 5 Nov 2003 08:29:53 -0000 X-pair-Authenticated: 209.68.2.70 Date: Wed, 5 Nov 2003 02:29:47 -0600 (CST) From: Mike Silbersack To: Vivek Pai In-Reply-To: <3FA897E7.5020103@cs.princeton.edu> Message-ID: <20031105022737.J1370@odysseus.silby.com> References: <1066789354.21430.39.camel@boxster.onthenet.com.au> <20031022082953.GA69506@rot13.obsecurity.org> <1066816287.25609.34.camel@boxster.onthenet.com.au> <20031022095754.GA70026@rot13.obsecurity.org> <1067183332.3f9bece4c0cf4@webmail.cs.princeton.edu> <3FA2C43E.3030204@cs.princeton.edu> <3FA7EF77.5010808@cs.princeton.edu> <20031104221455.I9997@odysseus.silby.com> <3FA897E7.5020103@cs.princeton.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: Alan Cox Subject: Re: Update: Debox sendfile modifications X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 08:29:56 -0000 On Wed, 5 Nov 2003, Vivek Pai wrote: > If you were to have sendfile issue the disk reads, how would you signal > completion? I guess one approach is to make the socket buffer appear to > have no space while the sendfile-initiated read is in progress, but > it seems to me that such an approach would be considered too ugly. It > would cause the least modification to applications, because otherwise > apps need to disable interest on the socket having space, and re-enable > it after getting notified that the sendfile-initiated read (and > transfer) completed. Am I missing something? > > -Vivek I'm not quite certain how I would do it yet. At this point in time I'm just brainstorming. I have some other things I'd like to work on in the next few weeks, I'll sit down and think about this more in late November / early December if I'm still in the right mindset. Mike "Silby" Silbersack