From owner-freebsd-stable@FreeBSD.ORG Tue Nov 20 16:47:07 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 7174E16A49E for ; Tue, 20 Nov 2007 16:47:07 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 0E72813C4C6 for ; Tue, 20 Nov 2007 16:47:06 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by nf-out-0910.google.com with SMTP id b2so1824549nfb for ; Tue, 20 Nov 2007 08:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=W1MbGB6/uuHrD1Hhymk2V+TqrhuftTqbX1VzIClx+hs=; b=iHCOCgHPEPkAav7NbjznFmbO/pebK0bpRLBZuRU674dmL1Cu9wc/Ao7ee0fxp1YXuuf3kpBrDndK4jyLSezTLU6XV4zQrQSWyeZ9a205cFnw7hhHZuU9XT6SGB6Zr4YbmtK//9wiG5sNcv9whDuoEl2SEI96eNShE8PpB7NdTpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=CW/lzO8vpRMCNj8wpW0PNR9sNWPBLAyO4ssejlgtgN1dLbn13uE+jKaD76W5gXO0oK5x2eZUxmrPUeYPxBPdUMILgOAAYlpUWoFmXxY7rzvuRt4NbTrmbJPIheYlJs0qeA+d4qgOLp3IT3AKDzMeYnyCqgPV0AxByEk7CoJyFs4= Received: by 10.82.114.3 with SMTP id m3mr17884251buc.1195577224754; Tue, 20 Nov 2007 08:47:04 -0800 (PST) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id m5sm3389592gve.2007.11.20.08.47.02 (version=SSLv3 cipher=RC4-MD5); Tue, 20 Nov 2007 08:47:03 -0800 (PST) From: Tom Evans To: Alexey Popov In-Reply-To: <47430AE8.7050408@chistydom.ru> References: <4741905E.8050300@chistydom.ru> <47419AB3.5030008@chistydom.ru> <4741B3DE.2000009@chistydom.ru> <47430AE8.7050408@chistydom.ru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3EIiZa0Krddtsz1adeD/" Date: Tue, 20 Nov 2007 16:47:02 +0000 Message-Id: <1195577222.82763.20.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-stable@freebsd.org, Ivan Voras 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: Tue, 20 Nov 2007 16:47:07 -0000 --=-3EIiZa0Krddtsz1adeD/ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-11-20 at 19:27 +0300, Alexey Popov wrote: > Hi. > > After that I rebuilt with SMP GENERIC kernel and put on that server 2=20 > times more requests that UP could handle. For the first time it worked=20 > good. Then I increased load to 2.5 times more than UP. Immediately=20 > Apache child count increased to MaxClients (24), most of them in RUN=20 > state, and %sys became greater than %user (see attach). I think after=20 > some threshold of load FreeBSD is paying more CPU time to the management=20 > of running processes than to run them. >=20 > Also I tried to halt CPUs by machdep.hlt_cpus sysctl, but in that case=20 > %sys in top was still much greater than %user. MaxClients of 24 seems very low for a 8 cpu box, running prefork MPM. On our quad CPU boxes, running custom apache modules, we use=20 MaxClients 70 MinSpareServers 5 MaxSpareServers 15 StartServers 20 Perhaps you are seeing high system load because the system is having to maintain a lot of queued connections. Certainly, our load remains in-between comfortable margins, except when heavily stressed. Tom --=-3EIiZa0Krddtsz1adeD/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHQw+AlcRvFfyds/cRAk0PAKDCzGQHCCNT29eueBa8/xZeq+1XaQCgqmi8 eb9xKET6MT0hxDCA2IIvG0k= =ozz2 -----END PGP SIGNATURE----- --=-3EIiZa0Krddtsz1adeD/--