From owner-freebsd-stable@FreeBSD.ORG Fri Nov 23 10:16:46 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 5657E16A417 for ; Fri, 23 Nov 2007 10:16:46 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id C6F1E13C4CE for ; Fri, 23 Nov 2007 10:16:45 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2653633rvb for ; Fri, 23 Nov 2007 02:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=elG5ix0J43kK4WmkobCW5acFRZdguztniXyrbPjgjcE=; b=GSPIhhXiO5ezXlcUVgk8doVuYJu+E/6rdNg3mpS+CGHCZO92U2Yo4bcnMGXnPTF486OeoDqPQYBVTZjzHsQ6riDKmGttNA8TPW0bBkHBFc+YFoDtPhs44H7QKlwSOJyXJvcV7zzmt3wP6MY/NoMw1YiBXHnwTslatSc4ZYlJrnI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ry7bxbwvfOc72vnSOxYtkXjA5QTlQLWkLPuEFpJEvgTl7p/qC6zIjye+DIV/F8MbrAUEJu+jb55uauZF85xGUMKzZORm8J+bFIPXi2rYl7CEydmwiAwTaJJTa/d4XC2nqjirzxu+fqktjrpVenhT7jViNV/dyUAFPnhTp+rh1Oc= Received: by 10.141.153.16 with SMTP id f16mr4385583rvo.1195812999336; Fri, 23 Nov 2007 02:16:39 -0800 (PST) Received: by 10.141.63.14 with HTTP; Fri, 23 Nov 2007 02:16:39 -0800 (PST) Message-ID: <9bbcef730711230216l74c30a08ja04a558742789b17@mail.gmail.com> Date: Fri, 23 Nov 2007 11:16:39 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: "Krassimir Slavchev" In-Reply-To: <47469EF9.70409@bulinfo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Google-Sender-Auth: 43004d686d60b561 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 10:16:46 -0000 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: - 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.