Date: Fri, 07 Nov 2008 15:50:54 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-stable@freebsd.org Subject: Re: php-cgi frozen with sbwait when SMP enable Message-ID: <gf1kka$oj6$1@ger.gmane.org> In-Reply-To: <d018a9bd0811070610t6eaa5b08l4b59cc1857e2fbd1@mail.gmail.com> References: <d018a9bd0811070329s30b463b0m6885e1f568217b89@mail.gmail.com> <gf1bc5$lbu$1@ger.gmane.org> <d018a9bd0811070610t6eaa5b08l4b59cc1857e2fbd1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gf1kka$oj6$1>