From owner-freebsd-stable@FreeBSD.ORG Wed Nov 19 12:39:36 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 344E91065675 for ; Wed, 19 Nov 2008 12:39:36 +0000 (UTC) (envelope-from igor.lyapin@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.183]) by mx1.freebsd.org (Postfix) with ESMTP id B18128FC1A for ; Wed, 19 Nov 2008 12:39:35 +0000 (UTC) (envelope-from igor.lyapin@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so1580441ika.3 for ; Wed, 19 Nov 2008 04:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-priority :message-id:to:cc:subject:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=CbaVFohwf8Uw2ZVns+HeFWtnyQrBVtwbJMg2qeOfXcA=; b=fZ2H3Jcjzev1mfy71XDA/yYtLAGXkhPlhZWrc4zEsRVq2QdYN9/S+YrcQm+YCvBlOH hXcjoNuKVWdQgti4Ko5h/RFMwz7JADPXis7ocb/hVxVtOEY2BzyZ4O3PFQ3W6adQdVDg 7EDl8hZOM1y6jlzWJTQILm+bj2TCqM49XdHMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-priority:message-id:to:cc:subject:in-reply-to :references:mime-version:content-type:content-transfer-encoding; b=whWVzp5ZBjVjyaZzOLOn8/jx+Pw/2AId2X+ZQpFDk073KIZ3VZa8R09O12Hfb3DXwX ImMBx7t1UQGIY/aWTBoNNlLLWNQIA0alRnDkoRjt1uRADkwIkhW/63eFO3KGPAUqknvd qNAFJamhO3r52XcmsGCd71bhV4jY7suaUI5o4= Received: by 10.86.59.2 with SMTP id h2mr689977fga.30.1227098374444; Wed, 19 Nov 2008 04:39:34 -0800 (PST) Received: from vk04mg43ialyapi.msk.vek (ns.vek.ru [194.84.13.9]) by mx.google.com with ESMTPS id 3sm1036822fge.3.2008.11.19.04.39.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Nov 2008 04:39:33 -0800 (PST) Date: Wed, 19 Nov 2008 15:39:29 +0300 From: Igor Lyapin X-Priority: 3 (Normal) Message-ID: <1283377972.20081119153929@gmail.com> To: freebsd-stable@freebsd.org In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Ivan Voras Subject: Re[2]: High system in %system load [SOLVED] 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 12:39:36 -0000 Hello Ivan, Thank's Ivan you quite right this was problem with php session. Programmer = set up in script's 2 years of session life. It was about 460k files in /var/tmp. >> COMMAND >> 55546 www 1 -4 0 198M 24912K ufs 1 0:25 29.39% h= ttpd >> 55986 www 1 -4 0 198M 23228K ufs 2 0:08 21.39% h= ttpd >> 56030 www 1 -4 0 199M 23400K ufs 1 0:05 11.23% h= ttpd > 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. --=20 Best regards, Igor =20