On Tue, 7 Sep 2004, Xuefer wrote: > APC works with apache2 DSO, and the optimizer is stable ONLY with my patches > check it out here: > http://pecl.php.net/bugs/search.php?cmd=display&status=Open&bug_type[]=APC > i've used APC from the time my last patch posted till now, having 0 crash. (if i > clear the cache after long time running, about 1/10 chance will get crash) > FYI: my script seems never beyond cache size
I have fixed a number of problems related to running out of shared memory in APC lately. If you grab the current CVS version I think you will find that it is less likely to fill up shared memory, and when it does, it is smarter about handling that scenario when it happens. I really haven't done much to the optimizer. I tend to just leave it off. I would be interested in seeing your patches. > both mmcache and apc does not have "crash recover" The concept of a crash recover is somewhat flawed in my opinion. The only way to really do this is to catch SIGSEGV, SIGBUS and other such fatal signals and twiddle a knob somewhere in shared memory that tells other processes to flush the cache. The problem with doing this is that once you get a SEGV, it really isn't safe to do anything like that. You run a very serious risk of ending up in an infinite crash loop where you catch the crash, try to set the crash-recover flag, crash trying to do that, catch the crash, etc. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php