High system in %system load [SOLVED]
Igor Lyapin
igor.lyapin at gmail.com
Wed Nov 19 04:39:36 PST 2008
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% 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.
--
Best regards,
Igor
More information about the freebsd-stable
mailing list