From owner-freebsd-stable@FreeBSD.ORG Wed Nov 19 10:42:31 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 AFB61106564A for ; Wed, 19 Nov 2008 10:42:31 +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 2FF8C8FC12 for ; Wed, 19 Nov 2008 10:42:31 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L2kVu-0002nm-7J for freebsd-stable@freebsd.org; Wed, 19 Nov 2008 10:42:26 +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 ; Wed, 19 Nov 2008 10:42:26 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 10:42:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 19 Nov 2008 11:43:09 +0100 Lines: 55 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6B3D92DE5DE51AF6DA33F1D7" 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: High system in %system load . 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: Wed, 19 Nov 2008 10:42:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6B3D92DE5DE51AF6DA33F1D7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Igor Lyapin wrote: > I already sent # top head in my first mail > that's all non idle top process >=20 > last pid: 56920; load averages: 2.90, 2.25, 1.72 up= > 0+22:10:12 20:04:05 > 210 processes: 2 running, 207 sleeping, 1 zombie > CPU states: 8.3% user, 0.0% nice, 32.5% system, 0.3% interrupt, 58.9= % > idle > Mem: 1268M Active, 1904M Inact, 479M Wired, 154M Cache, 214M Buf, 125M = Free > Swap: 8192M Total, 8192M Free >=20 > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 55546 www 1 -4 0 198M 24912K ufs 1 0:25 29.39% = httpd > 55986 www 1 -4 0 198M 23228K ufs 2 0:08 21.39% = httpd > 56030 www 1 -4 0 199M 23400K ufs 1 0:05 11.23% = httpd Ok, high sys load in "ufs" state for me was often caused by PHP session storage. By default, PHP will store all session records in a single directory, which can grow to monstruous sizes. If this is also your case, here are some things to try: a) increase vfs.ufs.dirhash_maxmem to 10 MB or something like that (look at vfs.ufs.dirhash_mem to see if you're hitting the limit and if so, monitor it to see what your dirhash_maxmem limit should be) b) configure PHP to use "sharded" directory structure for sessions. --------------enig6B3D92DE5DE51AF6DA33F1D7 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 iD8DBQFJI+29ldnAQVacBcgRApC1AJ4nm+ZhR++M+H14SFkidstXOO0bnwCeKQck x5KiLg8QZctkSNc98fKJH5k= =tBBi -----END PGP SIGNATURE----- --------------enig6B3D92DE5DE51AF6DA33F1D7--