#37944 [Bgs]: Very Slow session_start on nfs-mount
| From: | g42 at gmx dot net | Date: | Wed, 28 Jun 2006 11:13:11 +0000 |
| Subject: | #37944 [Bgs]: Very Slow session_start on nfs-mount | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98894@lists.php.net to get a copy of this message | ||
ID: 37944
User updated by: g42 at gmx dot net
Reported By: g42 at gmx dot net
Status: Bogus
Bug Type: Session related
Operating System: Gentoo Linux 2006.0
PHP Version: 5.1.4
New Comment:
sorry, but a difference of 60 seconds just can't really be a problem of
slow I/O. It's some kind of timeout i think, because all other sites on
this share are fast as hell, except those who use sessions as well...
if i change session.save_path to "/tmp" (which is on a local
reiserfs-partition) everything runs smooth and without these
problems...
Previous Comments:
------------------------------------------------------------------------
[2006-06-28 10:29:55] tony2001@php.net
Apparently it was bad idea to use NFS for script, as I/O operations are
very slow with NFS.
Not PHP problem.
------------------------------------------------------------------------
[2006-06-28 10:04:23] g42 at gmx dot net
Description:
------------
Some PHP-Sites take very long to load (>60 seconds). A famous example
is phpmyadmin. The wait-time accours after login, oder after changing
the database. CacheGrind (created with xdebug) shows that
php::session_start takes 60.011ms to start (1 call) while changing to
another Database. The total script took 60.112ms
php.ini changes:
session.save_path = "/www/phptemp/sessions"
/www is a nfs-mount, mounted with options:
soft,retry=5,nfsvers=3,posix,tcp
server-export:
/raid/www 192.168.1.0/24(rw,sync,root_squash)
Reproduce code:
---------------
see phpmyadmin-2.8.1 http://www.phpmyadmin.net
Expected result:
----------------
script-execution time <1 second
Actual result:
--------------
script-execution time >60 seconds
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37944&edit=1