David Wang wrote: >> Is it possible that total server throughput with gc could actually be >> better than unmodified php by preventing swapping at some higher >> level of concurrent requests? > > Yes, that's certainly true if it becomes the case that concurrent > requests take up so much memory that they induce swapping! If that > ever happens, the system will basically come to a complete standstill. > No matter what the GC does, it still will be effectively infinitely > faster than saving and retrieving information from the hard drive.
It is still extremely rare for code to have cyclic references. So while GC could prevent swapping in the case of a malicious user, or in the case of a coding mistake, I don't think the general case of typical code running under normal circumstances would consume less memory with GC enabled. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php