From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 5 22:12:41 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DAE9106566B; Sat, 5 Feb 2011 22:12:41 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [95.108.130.119]) by mx1.freebsd.org (Postfix) with ESMTP id BC8918FC16; Sat, 5 Feb 2011 22:12:40 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward15.mail.yandex.net (Yandex) with ESMTP id 566E9445902D; Sun, 6 Feb 2011 01:12:39 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1296943959; bh=tm2rOyh9SmcLyMMmKDzLPrQYUa9VRW2kCSgD0a/Kw3o=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ARPX3G3sMNmfeN+ug5c5UQVRYZ39+7+wunsR2IxkyzafUeqbRYELhUDAIbc4fQwmG Zgitsdxe2nFtEn6PCEwLZ0ZZok5/ZaJFn0E/mKdn7VQhi7FtVqKDJEEeizQrwQtfQV Cu5xbwYzP9JZORbboiVYrHa/+EZ4vMsBNHsrWDws= Received: from smeshariki2.local (unknown [213.138.85.225]) by smtp14.mail.yandex.net (Yandex) with ESMTPSA id 1114419B8076; Sun, 6 Feb 2011 01:12:39 +0300 (MSK) Message-ID: <4D4DCB0E.8050706@yandex.ru> Date: Sun, 06 Feb 2011 01:11:26 +0300 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.13) Gecko/20110106 Thunderbird/3.1.7 MIME-Version: 1.0 To: Ivan Voras References: <4D3CB2AF.9050003@yandex.ru> <4D4D9A4D.2070508@yandex.ru> <4D4DAD05.2070707@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, davidxu@freebsd.org Subject: Re: Tracking down a problem with php on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 22:12:41 -0000 06.02.2011 00:39, Ivan Voras пишет: > On 5 February 2011 21:22, Ivan Voras wrote: >> On 5 February 2011 21:03, Ruslan Mahmatkhanov wrote: >> >>> >>> Can you please tell me more what you mean by ""robust" pthreads mutexes" and >> >> It's just a name for properties of a mutex; actually this is >> imprecise, what's needed here is process-shared& robust >> (fpm_shm_slots.c: FPM uses shared memory). > > Actually I think "robustness" is the key here (in this context it > means that the locks of a thread / processes are released if a thread > / process dies unexpectedly (crashes)); It is very likely that in your > case the PHP process with FPM SAPI module dies while holding a lock > shared between processes and the other processes get stuck waiting for > this lock to unlock. Yes, it seems so. But all of this locking/threading is a black magick for me right now, and i don't feel to be able to study out with this fpm issue by myself. So i just sent this last obtained info to php-fpm mailing list. And thank you again, Ivan, for your analysis and explanations. -- Regards, Ruslan