Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2007 11:16:39 +0100
From:      "Ivan Voras" <ivoras@freebsd.org>
To:        "Krassimir Slavchev" <krassi@bulinfo.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 2 x quad-core system is slower that 2 x dual core on FreeBSD
Message-ID:  <9bbcef730711230216l74c30a08ja04a558742789b17@mail.gmail.com>
In-Reply-To: <47469EF9.70409@bulinfo.net>
References:  <4741905E.8050300@chistydom.ru> <fhs3s5$knj$1@ger.gmane.org> <47419AB3.5030008@chistydom.ru> <fhs7db$2es$1@ger.gmane.org> <4741B3DE.2000009@chistydom.ru> <fhsl0v$n85$1@ger.gmane.org> <47430AE8.7050408@chistydom.ru> <9bbcef730711200915n12e37efcs67cf260641b9baab@mail.gmail.com> <47469EF9.70409@bulinfo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23/11/2007, Krassimir Slavchev <krassi@bulinfo.net> wrote:

> Would someone define what exact tests to be performed.
> Ok, using "ab" is fine but with what parameters it is used and against
> what, script or static html? It will be good to have written some perl,

In this thread, it's always PHP code, with database backends.

> php ... scripts or C programs which simulates some kind of 'real world'
> work.

The problem is that a realistic applications does a lot of things that
are not easily simulated:

- usually has a lot of code, lots of include files, libraries, etc.
(so it stresses file systems, as was shown with fstat() in the thread
- the code is most likely checking for changes in PHP libraries)
- uses a database, which is populated with real-world data (so it has
a lot of IPC of very varied sizes)
- uses some kind of caching, both of compiled PHP code (eAccelerator,
pecl-APC) and of data (eAccelerator, memcached) (which uses SysV SHM
and IPC).

Reducing all that to a C file that does all of it is very nontrivial.
For "classic" setups with mod_php, it's not uncommon that httpd
processes grow to 100 MB or more each, with all the heavy stuff
brought in.



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