Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2008 15:39:29 +0300
From:      Igor Lyapin <igor.lyapin@gmail.com>
To:        freebsd-stable@freebsd.org
Cc:        Ivan Voras <ivoras@freebsd.org>
Subject:   Re[2]: High system in %system load [SOLVED]
Message-ID:  <1283377972.20081119153929@gmail.com>
In-Reply-To: <gg0qi7$v7n$1@ger.gmane.org>
References:  <fd2a4c1f0811180637m6ee44d4fv4cf97d18e322ca5a@mail.gmail.com> <gfun0o$lvq$1@ger.gmane.org> <fd2a4c1f0811180904k396dff47m43d537a07ae87579@mail.gmail.com> <gg0qi7$v7n$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1283377972.20081119153929>