From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 5 21:40:11 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 C9FBF1065672; Sat, 5 Feb 2011 21:40:11 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7888FC19; Sat, 5 Feb 2011 21:40:10 +0000 (UTC) Received: by qyk8 with SMTP id 8so491079qyk.13 for ; Sat, 05 Feb 2011 13:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=A1l8gwYWrlD05yIi2lzVHkTOTmgCBLJenDAoYcHSjWM=; b=jB6IyHvOgAH66IFyyUNiXpt8vbQproezMlY06TPR9y7p6HP81IJ75qwdD76+VDWNWa cq+myVZ6nSDgNjtwgaQGl7ByOCqaZyUJB0+2HC2MyV1yDpcQ30wEmhWA+SoickUKr6EB fcxn/yB/9onCF/9OqxuRTpvWJZWxPtF/0r3Kg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=sfUvIwuO6yk02Bqu/cxK3kCmZOpcv14+mlY2lwBE9TLau88majw+qRbKw5H/+rJxbC dGYLkpLdYggQZ2OHTaqBhn2TU7/GW/PuYE5Nn63rVVjuPVaipvV3B1xbeyceKUf8jp8B iP05qNm85Bv2nTx/p48PchlhrSSO5GkGyVd3A= Received: by 10.229.228.2 with SMTP id jc2mr11401380qcb.177.1296942007584; Sat, 05 Feb 2011 13:40:07 -0800 (PST) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.67.2 with HTTP; Sat, 5 Feb 2011 13:39:26 -0800 (PST) In-Reply-To: References: <4D3CB2AF.9050003@yandex.ru> <4D4D9A4D.2070508@yandex.ru> <4D4DAD05.2070707@yandex.ru> From: Ivan Voras Date: Sat, 5 Feb 2011 22:39:26 +0100 X-Google-Sender-Auth: bI7hc-oS2OADHJx8mAy02IJqqoU Message-ID: To: Ruslan Mahmatkhanov Content-Type: text/plain; charset=UTF-8 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 21:40:11 -0000 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.