Building an SBC NanoPi SATA hat based NAS
-
-
Writing many tiny files, like a whole bunch of small ebooks, over GbE (this use case is the one most important to me) to an RK3399-based SBC, will probably yield no more than about 40MB/sec
As it's the case with any other GbE equipped device, be it x86 or ARM, right?
A bunch of small files will always end up being transferred way slower than some huge files, there's nothing one should be surprised about. It's about knowing the individual bottlenecks between the client's and the server's disks and understanding how they 'interact'.
-
-
Did you send a few larger files over rsync, or a bunch of tiny files?
He sent one file (since received 35 bytes). But in his case wireless is the bottleneck anyway and due to higher latency sending a bunch of really small files wirelessly will take more time than over an Ethernet connection with lower latency (bandwidth and latency are two different things but always interact).
-
OK, I tried uploading 2GB of ebooks (2029 files in 756 folders) to my Nano Pi Neo2, just to compare.
The upload happened through all-GbE, and I tried two different GbE dongles on my laptop (An Anker AH212, and a TP-Link UE300).
I uploaded using rsync, into a SATA drive connected to a USB port on the NanoPi (the SATA drive was in a SATA enclosure, with a JMS578 chip). Both dongles had almost the exact same speed: 19.3MB/sec for the TP-Link, and 19.1 MB/sec for the Anker.
-
two different GbE dongles on my laptop ... I uploaded using rsync
What a great test given that I already tried to explain the latency stuff (USB --> high latency) and also this in the very same thread here:
With rsync and scp you're likely to be CPU bound since encryption might be involved now and then single-threaded CPU performance starts to matter depending on which cipher got negotiated between machines
So the next time you retest you might want to fire up htop on your SBC and most probably see one CPU core being at 100% all the time?
-
I just got my M4 and SATA hat as well. I bought a Meanwell LRS-100-12 and plan to power the M4 over the 4 pin connector and shove everything into one of these.
Maybe I'll add some sort of case around it (3D printed or laser cut acrylic or something similar). I can add a fan in the front if needed.
I have 2 HDDs and I'll probably add a SSD, so power shouldn't be an issue.EDIT: Too bad they didn't solder any pins next to the power button on the hat, that would have made it easier to connect a separate power button... I guess I'll have to solder it myself.
-
I just got my M4 and SATA hat as well. I bought a Meanwell LRS-100-12 and plan to power the M4 over the 4 pin connector and shove everything into one of these.
If time permits please open up a new thread in "My NAS build" subforum with pictures then
Maybe I'll add some sort of case around it (3D printed or laser cut acrylic or something similar)
My main concern with spinning rust is vibrations so I clearly would prefer vibration free montage (inside a cabinet or similar) than a slightly unstable enclosure helping with vibrations.
-
Yes, I'll open a new thread once everything arrived.
I am not quite sure about the case right now. Lets see how good the aliexpress cage is -
This is a really good thread. I have to say that I've been seriously considering getting the NanoPi M4 with the SATA HAT and Jean-Luc over at CNXSOFT - emended systems was getting some different read and write speeds. What do you guys think?CNXSOFT - Emended Systems
I do have a question for anyone that has built the SATA HAT with the M4. What did you end up using for to power the board and 4 drives? I'm deciding on what to use for an enclosure and power needs. I'm also wondering if this HAT will work with the PiJuice hat in conjunction with the SATA HAT.
-
What did you end up using for to power the board and 4 drives?
https://forum.openmediavault.o…/27002-Multi-system-case/
I'm also wondering if this HAT will work with the PiJuice hat in conjunction with the SATA HAT.
That doesn't supply 12V that the HAT wants.
What do you guys think?
Where are you seeing different speeds? The HAT is much faster than SD and EMMC but I don't see any other tests.
-
Jean-Luc over at CNXSOFT - emended systems was getting some different read and write speeds
Compared to what? The @esbeeb numbers made on something entirely different?
-
With respect to the above. I would say compared to other SBCs with the same RK3399 chip or other ARM boards that we're talked about in the post. Jen-Luc does a pretty good overview on his site, and I posted the link above in my first post. Some board's do have random write speeds of 47MB/s.
-
and I posted the link above in my first post. Some board's do have random write speeds of 47MB/s.
That was accessing the Samsung eMMC on these boards and is not related to SATA.
-
There is more than 40MB/s possible with the hat. I´m testing at the moment with my setup and I can see higher transfer rates as reported here. I see write speeds in raid 5 even with slow drives around 60MB/s and higher when directly connected to a pc via crosslink ethernet.
I realized speed drops and lags when the heatsink of the sata hat is getting hot. Workaround a tiny fan for the heatsink as long as the NAS is not in a case with active cooling.
-
There is more than 40MB/s possible with the hat.
Close to 400 MB/s to be precise. That's the 'magical' barrier those PCIe SATA adapters connected with a single Gen2 PCIe lane are limited to. Applies to ASM1061 (SATA card for RockPro64) as well as 88SE9215 on the M4 SATA HAT.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!