4 ms·
Neat! I'm very interested to see some benchmarks for this. Given Nginx is pretty minimal in its system load (I think) might it actually be possible to run a re
by thenomad 14y ago
Neat!
I'm very interested to see some benchmarks for this. Given Nginx is pretty minimal in its system load (I think) might it actually be possible to run a reasonable-sized website off one of these servers?
- agumonkey 14y agoAll network interfaces go through the usb stack, a few monthes ago there were issues with usb polling (usb driver being in the closed-source firmware iirc) eating cpu cycles. I don't know if it's been solved since.
- grannyg00se 14y agoSeems like moving to USB 3.0 would be a huge overall gain to the system. Is there some other component that would prevent full USB 3.0 speed?
- voltagex_ 14y agoI think USB 3 is prohibitively expensive at the moment. Power may be an issue there too - you barely get 200mW out of the USB ports by the time the system itself is powered.
- agumonkey 14y agoI'm not knowledgeable but I can only recall one SoC providing usb3.0, mind you those things are for embedded/phone devices, thus usb3 looks like a costly overkill. I'm all for it but that's hardly a motivation for them. usb2 would be fine if it was a sane implementation but AFAIK the rpi SoC was made for ~video-only appliances where there's close to no IO or cpu processing and thus the usb stack firmware code do some bold decisions that induce a nice penalty on usb/cpu. It's possible that they released a new version since (my data dates from a few monthes ago) or that someone published a binary patch to improve the situation.
- sliverstorm 14y agoWhether or not you're hosting static content would probably play a big factor. I've got one, and while it is fully functional it is not fast. The network runs over USB, so bandwidth is limited, and latency is never great. Content is stored on the SD card, which is also over USB. Seek times are good but bandwidth is poor. Me, I'm hoping for a rev2 wherein USB is not used for the system bus and the core is ARMv7 or better. That, or possibly just use NetBSD once it's been fully ported. I've had great luck with BSDs on super-weak hardware.
- coob 14y agoThe models with 512MB RAM could store a small site on a ramdisk.
- ChuckMcM 14y agoYou would have to define 'reasonable sized' but I suspect the answer is yes. If you mount the web files over the network (I use NFS v3) you can run a very nice Nginx web server instance and a full stack. Not surprisingly, one of the 'bottlenecks' in RasPi is the SD card so using network mounted files is quite a bit faster in my experience.
- EwanToo 14y agoI did some benchmarks on a beaglebone ARM board using nginx running wordpress here http://www.ewanleith.com/blog/1066/high-performance-wordpress-on-arm http://www.ewanleith.com/blog/1066/high-performance-wordpres... But fundamentally, IO is crippled on these kind of devices for performance stuff
- luser001 14y agoI did some benchmarking to find the CPU overhead of data transfer. Here is the draft of what I found. https://gist.github.com/4144871 https://gist.github.com/4144871 I was able to saturate a 100 Mbps LAN link with netcat. IIRC CPU was at 70%.