From owner-freebsd-net Mon Jun 24 10:13: 7 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by hub.freebsd.org (Postfix) with SMTP id 2F76037B40A for ; Mon, 24 Jun 2002 10:12:52 -0700 (PDT) Received: (qmail 94370 invoked from network); 24 Jun 2002 17:12:02 -0000 Received: from unknown (HELO tix.ch) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 24 Jun 2002 17:12:02 -0000 Message-ID: <3D1752CC.B21627F1@tix.ch> Date: Mon, 24 Jun 2002 19:11:40 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Silbersack Cc: "Kenneth D. Merry" , net@freebsd.org, current@freebsd.org Subject: Re: zero copy code checkin in 2 days, new snapshot References: <20020624120341.K53369-100000@patrocles.silby.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mike Silbersack wrote: > > On Mon, 24 Jun 2002, Kenneth D. Merry wrote: > > > On Mon, Jun 24, 2002 at 01:17:03 -0500, Mike Silbersack wrote: > > > On Sun, 23 Jun 2002, Kenneth D. Merry wrote: > > > > > > > I'm planning on checking in the zero copy sockets code Tuesday evening, > > > > MDT. If there are any concerns, I'm more than willing to delay it. > > > > > > Out of curiousity, what happens when the page being write()n is a mmap'd > > > page shared by multiple processes? Will the page be shared? That could > > > be a big reduction in mbuf cluster usage on some http/ftp systems, I'd > > > guess. > > > > The page would be shared, until one of the processes decides to write to it > > while it is still referenced in the kernel. If that happens, it'll get > > copied. > > > > Ken > > Cool, thttpd / others should benefit greatly then. The last time I checked thttpd didn't even use sendfile(2). It does use accf_http(9). Maybe kqueue(2) could speed it up further. -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message