From owner-freebsd-stable@FreeBSD.ORG Fri Nov 7 14:50:59 2008 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 CA2161065695 for ; Fri, 7 Nov 2008 14:50:59 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4E5758FC1F for ; Fri, 7 Nov 2008 14:50:59 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KySfp-0002xB-7a for freebsd-stable@freebsd.org; Fri, 07 Nov 2008 14:50:57 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Nov 2008 14:50:57 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Nov 2008 14:50:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Fri, 07 Nov 2008 15:50:54 +0100 Lines: 101 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC98013515810BEE7EBC34C72" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: php-cgi frozen with sbwait when SMP enable 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: Fri, 07 Nov 2008 14:51:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC98013515810BEE7EBC34C72 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ken Chen wrote: > Oh.. sorry, I forgot to provide the information of my environment. >=20 > web4# php-cgi -v > PHP 5.2.6 (cgi-fcgi) (built: Nov 2 2008 11:16:30) > Copyright (c) 1997-2008 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies > with XCache v1.2.2, Copyright (c) 2005-2007, by mOo > web4# /usr/local/lighttpd/sbin/lighttpd -v > lighttpd-1.4.19 - a light and fast webserver > Build-Date: Sep 1 2008 16:58:51 > web4# uname -a > FreeBSD web4.xxxx.com 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #11: Mon No= v 3 > 01:10:36 CST 2008 root@web4.xxxx.com:/usr/obj/usr/src/sys/WEB4 i38= 6 > web4# ps alx | grep php-cgi | grep -v grep | grep sbwait > 65534 57776 47240 0 4 0 182328 84984 sbwait I ?? 2:02.12 > /usr/local/bin/php-cgi > 65534 57801 47240 0 4 0 182328 82408 sbwait I ?? 0:19.97 > /usr/local/bin/php-cgi > 65534 57809 47240 0 4 0 182328 84096 sbwait I ?? 1:12.03 > /usr/local/bin/php-cgi > 65534 57823 47240 0 4 0 182328 84492 sbwait I ?? 2:04.21 > /usr/local/bin/php-cgi > 65534 57833 47240 0 4 0 183352 83316 sbwait I ?? 0:28.62 > /usr/local/bin/php-cgi > 65534 57866 47240 0 4 0 182328 79952 sbwait I ?? 0:05.92 > /usr/local/bin/php-cgi > 65534 57870 47240 0 4 0 182328 83184 sbwait I ?? 0:56.83 > /usr/local/bin/php-cgi > 65534 57871 47240 0 4 0 182328 83388 sbwait I ?? 0:54.96 > /usr/local/bin/php-cgi > 65534 57891 47240 0 4 0 182328 84436 sbwait I ?? 1:58.32 > /usr/local/bin/php-cgi > 65534 57925 47240 0 4 0 182328 84380 sbwait I ?? 2:03.53 > /usr/local/bin/php-cgi > 65534 65944 47240 0 4 0 182328 84184 sbwait I ?? 0:39.97 > /usr/local/bin/php-cgi > 65534 65952 47240 0 4 0 182328 84408 sbwait I ?? 0:21.37 > /usr/local/bin/php-cgi This does seem a bit unusual, but seeing that your execution times are not null it might that the PHP servers are actually doing some useful work. You should have a mixture of various states in PHP - do they show up in top? My own example is: last pid: 77421; load averages: 2.82, 2.59, 2.13 up 55+16:58:49 15:48:16 209 processes: 2 running, 206 sleeping, 1 zombie CPU: 49.8% user, 0.0% nice, 2.8% system, 0.0% interrupt, 47.4% idle Mem: 1493M Active, 1583M Inact, 278M Wired, 139M Cache, 112M Buf, 505M Fr= ee Swap: 4500M Total, 416M Used, 4084M Free, 9% Inuse PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND= 75863 www 1 4 0 162M 50020K sbwait 3 2:54 36.77% php-cgi= 76830 www 1 103 0 156M 41556K CPU2 3 1:28 36.77% php-cgi= 76834 www 1 4 0 163M 56628K sbwait 0 2:23 33.59% php-cgi= 76019 www 1 4 0 150M 38948K accept 3 3:12 20.56% php-cgi= 76825 www 1 4 0 158M 42912K accept 2 1:21 18.16% php-cgi= 76846 www 1 4 0 162M 42600K sbwait 1 1:07 14.36% php-cgi= 76835 www 1 4 0 151M 39948K accept 2 1:28 12.60% php-cgi= 76829 www 1 4 0 150M 36564K sbwait 2 1:46 2.98% php-cgi= This is unusually high load, a spike, for this server but it has many cores and it's stable. It's also running 7.1-PRERELEASE. --------------enigC98013515810BEE7EBC34C72 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJFFXOldnAQVacBcgRAnGfAKDk/SfcR6fZPZngJRhdG+0YPA6AEQCgz3or 8wLpu1sy5xqtWifaOjVat5E= =3bC0 -----END PGP SIGNATURE----- --------------enigC98013515810BEE7EBC34C72--