News for hackers. Stuff that matters.

pp3345

Re:Pancake HTTP Server faster than nginx running PHP on Monday November 12, 2012 @05:18PM (#4775095)
Okay, I've taken a look at your benchmark. The failing requests are due to a typo in the configuration. It should be "phpsocketbacklog" instead of just "socketbacklog". Pancake uses unix sockets for the internal communication between RequestWorkers and PHPWorkers. When a RequestWorker tries to send a request to a PHPWorker while the internal socket backlog is full, Pancake will abort the request due to the lack of available resources. Therefore the backlog is needed on high concurrency. I've updated the configuration at pancakehttp.net including some additional performance optimizations.

Even though requests won't fail anymore with the fixed configuration, throughput on high concurrency still isn't quite satisfying. This seems to me like a bug as the PHPWorkers seem to process the requests perfectly concurrent and finish each in about the same time, but then the delivery of the result to the client is somehow delayed, probably due to a problem with the internal communication. I've tested Pancake with php-fpm (Pancake supports FastCGI) and high concurrency and it seemed to scale quite good.

I'm investigating on this problem and hope to provide a fix soon.

Regarding static file throughput, I know that Pancake does not really reach the speed of other webservers here. Pancake was designed to execute PHP as fast as possible and I still have a lot of ideas in my mind on how I could further improve PHP execution speed. PHP itself isn't quite fast and therefore it is difficult to develop a webserver in PHP that reaches the same speed when serving static files as webservers written in languages like C. I am currently experimenting with a new feature that will hopefully increase the speed of static file serving but I still don't know if it'll really work.

Re:Pancake HTTP Server faster than nginx running PHP on Sunday November 11, 2012 @06:10PM (#4770910)
I am not a lawyer, I don't have a clue about law and licenses. Even though it is prohibited to use Pancake for commercial websites with this license I won't kill anyone because he is hosting a small blog making a few dollars with AdSense or developing some small scripts for friends for little money. Just in case someone would like to use Pancake for a online shop or something making bigger amounts of money I'd like that person to contact me.
Re:Pancake HTTP Server faster than nginx running PHP on Sunday November 11, 2012 @06:01PM (#4770878)
I am the developer of Pancake. I've found here after I got a mail saying that Pancake was mentioned here.

I have to admit that benchmarking on an OpenVZ VM probably isn't the best idea. However, at the time of benchmarking, my VM was the only one on the host node and I've made sure that no other service on my VM could create high load.

I believe that CodeCache is more efficient than APC and easier to use. In a future version I will also improve the CodeCache, allowing more code to be cached than now possible. I am also planning on having a feature for automatic configuration of the CodeCache.