2 ms·
> Do you really know this? What's the limiting factor? Yes, I've got a bunch of RasPi's (originals, v2's, and V3s). The big issue is I/O bandwidth. All of the
by ChuckMcM 9y ago
> Do you really know this? What's the limiting factor?
Yes, I've got a bunch of RasPi's (originals, v2's, and V3s).
The big issue is I/O bandwidth. All of the meaningful I/O in a server setup goes through one USB 2.1 hub. The second issue is that all of the memory accesses have to traverse the (useless) GPU to get to the CPU.
As designed for a phone, having the CPU be a ride along to the GPU makes perfect sense. The "thing" that is important in a smartphone is the screen, its updates and I/O to and from it. But as a general purpose server that isn't balanced.
We put RasPi servers on the Internet and local network at Blekko for a variety of tasks, and I've used them at home as well for servers. Very successful having them be single purpose servers (a DNS cache, a video streamer, a data collector) and very unsuccessful when they are multitasking multiple 'kinds' of network clients. Tried various configs with EXIM and Dovecot as a mail server, it processes very slowly. (an SSH session on the machine was 10s of seconds between the key press and the appearance of the character on my end, took me back to the worst of times on a timeshared system :-).
But seriously, everyone should try this. Set up a minecraft server, set up a web server, set up what ever you want and watch it. It is easy to set up multiple "stressor" clients with Python. Trace the flow of data from client to network to app to disk to app to network to client etc.
Then do the same thing on a machine with the same numbers and twice the I/O bandwidth (Odroid has a couple of boards with similar specs but better I/O bandwidth as do a bunch of boards in the 96boards.org spec)
It will be time well spent if you're ever asked to get the most out of a system.
- pdonis 9y ago> All of the meaningful I/O in a server setup goes through one USB 2.1 hub. Even Ethernet and 802.11 wifi packets?
- trafficlight 9y agoEthernet certainly does. https://raspberrypi.stackexchange.com/questions/46076/soc-cpu-and-ethernet-controller-internal-connection-in-raspberry-pi-3 https://raspberrypi.stackexchange.com/questions/46076/soc-cp...
- Kubuxu 9y agoYes, RPi uses USB-Eth adapter on board.
- heavenlyblue 9y agoRPI's Ethernet adapter is internally connected through USB (you may also see another hub connected to the motherboard hub here). pi@raspberrypi:~ $ lsusb Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- pdonis 9y agoI see. Does anyone know what the rationale for that design decision was? I'm comparing to, for example, the Dragino, which is in the same general price range but does not have this, um, "feature".
- voltagex_ 9y agoPossibly because there was nowhere else to hang the port off with that Broadcom SoC. See also the myriad SoCs and devices that use a USB->SATA converter where I really just want SATA (e.g. a little known, obscure device called the Playstation 3).
- pdonis 9y ago> Possibly because there was nowhere else to hang the port off with that Broadcom SoC. Ah. Dragino uses an Atheros SoC. Not the first time I've seen a Broadcom chip have an...interesting feature.
- wang_li 9y agoEthernet does, but wifi does not. https://www.element14.com/community/servlet/JiveServlet/showImage/38-24733-365232/pi3-block-diagram-rev4.png https://www.element14.com/community/servlet/JiveServlet/show...
- wang_li 9y agoThe original Raspberry Pi is quite slow. But, the latest models are quite fast. I've run a variety of microbenchmarks and a RPi3B has twice the memory bandwidth of a Sun V240 (which is many times the machine that a SS10 was.) It has roughly the same single threaded CPU/FPU performance and twice as many cores a the V240. Storage wise the microsd is faster than the SCSI drives you'd find in an SS10. The SS10 ethernet was 10 Mbps. You could add an SBUS adapter to get up to 100 Mbps, but that's it. Realistically, you would be able to support 10x whatever an SS10 would do. But if you hang your storage off that USB port, then you're likely to be pretty unhappy. But still would be more of a machine than an SS10.
- ChuckMcM 9y agoI would love to run the same benchmarks here, have you got a github repo or a write up somewhere that I could read?
- HurrdurrHodor 9y ago"Trace the flow of data from client to network to app to disk to app to network to client etc." How would one go about doing that?
- ChuckMcM 9y agoIn the ideal world? With a copy of the full schematic, a datasheet for the SoC, and source code to the kernel and drivers. Its harder with RasPi because various bits are obscured but many of the drivers are open enough to figure much of it out.