News for hackers. Stuff that matters.
Re:PHP functions you (probably) never use by streety on Thursday January 14, 2010 @05:43AM (#1052321)
Agreed on sys_getloadavg(), by the time you get to PHP much of the overhead of serving the connection has already been incurred.
Re:PHP functions you (probably) never use by pvg on Thursday January 14, 2010 @05:58AM (#1052336)
It's also a poor way to decide whether to stop serving pages. Depending on circumstances, it's possible for request handling to be still reasonable or completely wedged for same load numbers. The number is also dependent on the configuration of the machine so moving to a box with, say, more cores might make whatever magic constant threshold you put in your code even wronger.