You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2008/03/10 08:35:24 UTC

Re: Obervation Apache 2.2.8 with Visual Studio 2008

Steffen wrote:
> I noticed that here the memory used by httpd.exe is less when I comment 
> out:
> 
> #Win32DisableAcceptEx
> #EnableSendfile Off
> #EnableMMAP off

Yup; because those features aren't memory intensive; they actually save
memory (acceptex is atomic instead of several calls, sendfile means no
local file buffering, etc).

> Looks like  the use of AcceptEx()is no pain anymore.

ROFL.

It never was, until you use a buggy winsock layered provider who's authors
didn't think through all the API's (but developed by what they observed to
work for most apps).  So add in some bogus firewall/vpn/antispam filtering
and voila - TransmitFile (sendfile) or AcceptEx remain broke.

sendfile/TransmitFile semantics can also be suboptimal for serving content
off of network attached storage (e.g. another machine's share), and should
probably be turned off in that case (and must be turned off in the case
of some drivers, on a number of operating systems).

> Interesting new in VC9 is:
> The compiler contains tuning for the Intel Core microarchitecture during 
> code generation. This tuning is on by default and cannot be disabled as 
> it also helps Pentium 4 and other processors.

Hmmm... but it's tuning; you aren't locked into a specific processor?