From owner-freebsd-stable@FreeBSD.ORG Mon Nov 19 14:24:15 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 01B7916A420 for ; Mon, 19 Nov 2007 14:24:15 +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 86DB613C4B8 for ; Mon, 19 Nov 2007 14:24:14 +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 201272467; Mon, 19 Nov 2007 17:23:45 +0300 Message-ID: <47419C6F.80903@chistydom.ru> Date: Mon, 19 Nov 2007 17:23:43 +0300 From: Alexey Popov User-Agent: Thunderbird 2.0.0.6 (X11/20070924) MIME-Version: 1.0 To: Robert Watson References: <4741905E.8050300@chistydom.ru> <20071119140019.V80667@fledge.watson.org> In-Reply-To: <20071119140019.V80667@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; 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: Mon, 19 Nov 2007 14:24:15 -0000 Hi. Robert Watson wrote: >> Also I faced the same problem moving heavily loaded MySQL-server to >> new hardware. That time I thought that the problem is in the >> mysql-server itself and I had to install Linux. >> What can I do to make FreeBSD run faster on many-CPU systems??? > Have you configured libmap.conf to force MySQL to use libthr instead of > libpthread? libpthread is known to have serious performance bottlenecks > for MySQL as compared to libthr. I'm always using libthr with MySQL on 6-STABLE and it really helps. But that time with MySQL (and this time with Apache) the bottleneck was somewhere else. > FreeBSD 7 contains significant optimization for increased numbers of > cores, and is where a lot of the work optimizing MySQL has ended up. I > see you're trying out a 6.3 beta, any chance you could try out a 7.0 > beta instead? Also, consider switching to "options SCHED_ULE" in the 7.0 > kernel rather than "options SCHED_4BSD". I tried 7-BETA with SHED_4BSD and id did not help. Now I'll try SHED_ULE, thanks. With best regards, Alexey Popov