From owner-freebsd-questions@FreeBSD.ORG Wed Apr 15 08:50:45 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 00A2A17B for ; Wed, 15 Apr 2015 08:50:44 +0000 (UTC) Received: from mail.xtaz.uk (tao.xtaz.uk [IPv6:2001:8b0:202::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5ABE8F3 for ; Wed, 15 Apr 2015 08:50:44 +0000 (UTC) Received: by mail.xtaz.uk (Postfix, from userid 1001) id F0B72209AF21; Wed, 15 Apr 2015 09:50:39 +0100 (BST) Date: Wed, 15 Apr 2015 09:50:39 +0100 From: Matt Smith To: Dimitri Minaev Cc: freebsd-questions@freebsd.org Subject: Re: High LA caused by php-fpm Message-ID: <20150415085039.GF1280@xtaz.uk> Mail-Followup-To: Matt Smith , Dimitri Minaev , freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 08:50:45 -0000 On Apr 15 12:02, Dimitri Minaev wrote: >Today, I tried to move our bunch of Drupal-powered web sites to a new >server. The old server was running FreeBSD 7.2 and I wanted to install a >newer version. In the meanwhile, I transferred the sites to the new server >(FreeBSD 10.1 on ZFS mirror, 1CPU with 6 cores and hyperthreading). >Everything looked fine, but as soon as the requests rate reached the usual >50-150 req/sec, the server shut up. Load average went up to 60, all >requests timed out and the backlog on php-fpm socket was full (2048). All >diagnostic tools showed that I/O was negligible, there was no swapping and >the only problem was high CPU usage caused by php-fpm. Hi, I had exactly this problem myself along with several other things behaving strangely because of the OpenSSL 1.0.2 update. For me, recompiling openssl with the ASM optimisation option switched off worked around the problem. With ASM on php-fpm used up huge amounts of load average, with ASM off the behavior is back to normal. Of course your issue may not be related to this, but it could be something to investigate. I discussed my issues in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198788 , search for php-fpm on that page. -- Matt