r982 - trunk/varnish-cache/bin/varnishd
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Sep 15 10:14:47 CEST 2006
In message <ujr3battvhg.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgra
v?= writes:
>phk at projects.linpro.no writes:
>> If after handling a request we find anything in our input buffer,
>> don't waste time putting the session on the herder, but go right
>> back and take the next request in the current worker thread.
>
>This should reduce lock contention under high load, shouldn't it?
I think the bigger saving is context switches, basically a void
a write, a read and a context switch for any session which
pipelines. This is mostly Opera at this point in time.
I'm considering putting in a .1 second timed read there to give
the other browsers a chance as well.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-commit
mailing list