Sensible Performance/Growth Strategies?
Rainer Duffner
rainer at ultra-secure.de
Thu Aug 5 22:44:46 MSD 2010
Am 05.08.2010 um 18:55 schrieb Igor Sysoev:
> On Thu, Aug 05, 2010 at 06:49:21PM +0200, rainer at ultra-secure.de
> wrote:
>
>>> On Thu, Aug 05, 2010 at 12:24:23PM -0400, Alex Sergeyev wrote:
>>
>>> varnish relies on OS internals too: it mmap()s a huge file that
>>> may be larger tens times physical memory and perfomance relies on
>>> how OS flushes modified pages to a disk and how then OS reads them
>>> back to memory.
>>>
>>>> I'm not sure about internals of each project and how they work
>>>> under
>>>> Linux vs FreeBSD servers. This could be a decision reason too.
>>>
>>> Both Varnish and nginx are developed on FreeBSD.
>>
>> Recently, we did a test with serving just static files (from a
>> FreeBSD8.1
>> VM), a very small data-set.
>> nginx0.7 was 1.8 times faster than varnish (both mostly untuned).
>> So, I'd say that OOTB, just serving static files, nginx wins.
>> Though, I still think that varnish has a place and there are probably
>> certain situations where it can beat and will nginx.
>
> What have you set behind Varnish ?
>
Apache-worker-mpm + php (though not used, as everything is static).
IIRC, I first had no expire-headers on the apache-side and the
difference was even larger.
nginx is _very_ impressive.
Rainer
More information about the nginx
mailing list