From owner-freebsd-stable@FreeBSD.ORG Tue Nov 20 11:57:04 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 50EB616A417; Tue, 20 Nov 2007 11:57:04 +0000 (UTC) (envelope-from lol@chistydom.ru) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.freebsd.org (Postfix) with ESMTP id 3AB7813C448; Tue, 20 Nov 2007 11:57:02 +0000 (UTC) (envelope-from lol@chistydom.ru) Received: from [80.68.244.40] (account a_popov@rbc.ru [80.68.244.40] verified) by hermes.hw.ru (CommuniGate Pro SMTP 5.0.13) with ESMTPA id 201513087; Tue, 20 Nov 2007 14:56:44 +0300 Message-ID: <4742CB72.1060305@chistydom.ru> Date: Tue, 20 Nov 2007 14:56:34 +0300 From: Alexey Popov User-Agent: Thunderbird 2.0.0.6 (X11/20070924) MIME-Version: 1.0 To: Ivan Voras References: <4741905E.8050300@chistydom.ru> <47419AB3.5030008@chistydom.ru> <4741B3DE.2000009@chistydom.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 20 Nov 2007 11:57:04 -0000 Hi. Ivan Voras wrote: > Some more ideas: How is your disk load (iostat, systat -vm, diskinfo -t) > during the load? You don't use NFS for the web directories, do you? > Can you run bonnie++ while the machine is idle (i.e. apache is stopped) > just to verify it isn't a stupid problem with the disks or the driver? There's almost no disk load except writing ~15 strings per second to logs. All PHP code fits in memory and there's no need to read disk. atime turned off. NFS is not used. > So, you pick the CPU out of the motherboard and plug in another one? If > not, you can't be sure that some other thing isn't wrong. I know you > tried it on Linux, but it might use slightly different commands in the > driver that don't trigger the error. I'm very surprised that both 6.x > and 7.x behave almost the same on your load: since they are very > different in how they support multiple CPU-s, I'd expect a big > difference in this case (in favour of 7.x), not a small one. This might > point that the problem is not in the OS itself, but maybe in the > hardware or in some driver. I did'nt change CPU myself, but I think this 4-core and 8-core servers (Intel SR1500 platform) are different only in CPUs. You can see it in dmesg in the root of this thread. > You don't have WITNESS, INVARIANTS, DIAGNOSTICS or something similar > enabled? Can you try a generic SMP kernel (called "SMP" in 6.x; the > "GENERIC" in 7.x has SMP by default) and see how it works? > Can you disable SMP and try with only one CPU (on the 2xquad machine)? > You can do it in loader.conf by setting kern.smp.disabled=1, or perhaps > in BIOS. If there's a problem in some hardware or a driver, you'd still > get a big load on sys time. You might also want to halt certain logical > CPUs in the OS itself (see smp(4) man page) and see if there's a certain > relationship between how many CPUs are running and what the sys load is. Thank you. I need some time to try all this. I'll report if find something. With best regards, Alexey Popov