Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 19:11:40 +0200
From:      Andre Oppermann <oppermann@tix.ch>
To:        Mike Silbersack <silby@silby.com>
Cc:        "Kenneth D. Merry" <ken@kdm.org>, net@freebsd.org, current@freebsd.org
Subject:   Re: zero copy code checkin in 2 days, new snapshot
Message-ID:  <3D1752CC.B21627F1@tix.ch>
References:  <20020624120341.K53369-100000@patrocles.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D1752CC.B21627F1>