Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2007, 08:01 PM
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default Zend_Cache fails under load

Hi all,
Firstly this is quite hard to test so I might be wrong about where the problems are but here goes. It appears that Zend_Cache File fails under high save()+load() loads. If you are only reading from the file you never experience any problems..

If you are reading and you are calling save() from different applications its possibly to get the following to happen --

Code:
2007-08-22T21:58:36+00:00 WARN (4): Zend_Cache_Backend_File::_remove() : we can't remove /tmp/zend_cache---Conf_common---1188424503 => we are going to try to invalidate it 
2007-08-22T21:58:36+00:00 WARN (4): Zend_Cache_Core::save() / write_control : written and read data do not match 
2007-08-22T21:58:36+00:00 WARN (4): Zend_Cache_Backend_File::_remove() : we can't remove /tmp/zend_cache---Conf_common---1188424503 => we are going to try to invalidate it 
2007-08-22T21:58:36+00:00 WARN (4): Zend_Cache_Backend_File::_remove() : we can't remove /tmp/zend_cache---Conf_common---1188424503 => we are going to try to invalidate it 
2007-08-22T21:58:36+00:00 WARN (4): Zend_Cache_Core::save() / write_control : written and read data do not match
This error also causes duplicate files to be created --
Code:
-rw-r--r--  1 root  wheel  3214 Aug 22 22:00 /tmp/zend_cache---Conf_common---1188424803
-rw-r--r--  1 www   wheel  3791 Aug 22 22:00 /tmp/zend_cache---Conf_common---1188424809
Is this a problem with file locking? I believe its due to "$this->remove($id);" on line 225 of Cache/Backend/File.php.

Also the whole of Zend_Cache uses flock() which doesn't handle multiple php processes - is this simply the way it is and using multiple processes can lead to corruptions, or is this something under work / worth discussing ?

Thanks
D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:40 PM.