From owner-freebsd-stable@FreeBSD.ORG Fri Nov 23 11:06:47 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0477516A418; Fri, 23 Nov 2007 11:06:47 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9DAA913C45D; Fri, 23 Nov 2007 11:06:46 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 1F98265FF6; Fri, 23 Nov 2007 13:06:26 +0200 (EET) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 53150-05; Fri, 23 Nov 2007 13:06:24 +0200 (EET) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 027B465FF4; Fri, 23 Nov 2007 13:06:23 +0200 (EET) Message-ID: <4746B42E.4040709@bulinfo.net> Date: Fri, 23 Nov 2007 13:06:22 +0200 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: Ivan Voras References: <4741905E.8050300@chistydom.ru> <47419AB3.5030008@chistydom.ru> <4741B3DE.2000009@chistydom.ru> <47430AE8.7050408@chistydom.ru> <9bbcef730711200915n12e37efcs67cf260641b9baab@mail.gmail.com> <47469EF9.70409@bulinfo.net> <9bbcef730711230216l74c30a08ja04a558742789b17@mail.gmail.com> In-Reply-To: <9bbcef730711230216l74c30a08ja04a558742789b17@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-stable@freebsd.org Subject: Re: 2 x quad-core system is slower that 2 x dual core on FreeBSD X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2007 11:06:47 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ivan Voras wrote: > On 23/11/2007, Krassimir Slavchev 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: That's true but if the tests are same then they can be compared. > > - 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) This is not recommended for production systems. > - 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. Yes, may be it is easier to write perl/php scripts. > 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. > Yes, that is true for mod_perl too. However, it is hard to simulate real workload. I will have 2 2xQuad Core(X5450) with 8G RAM systems (DL380G5) soon and will have about a month to play with them before put in production. If someone wish I can run specific test on them. Best Regards -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHRrQuxJBWvpalMpkRAvL9AJ9tBgeZPxg6zYWqJUgVimIJgaxl1ACeK2kS POeyNbZBGuiQB0OKHIEtoSk= =pjb2 -----END PGP SIGNATURE-----