Jump to content

NAS & Link Aggregation

asheenlevrai

Hi 🙂

 

I have a question about how data transfer works...

Let's imagine a home NAS with 2 HDDs in RAID1 and a GbE connection.

 

A) Each HDD is capable of ~150MBps (read/write)

1) -> Does RAID1 mean the theoretical max for reads is going to be around 300MBps (both drives can be accessed simultaneously)

2) -> Does RAID1 mean the theoretical max for writes is going to be below 150MBps (around 75MBps?) since both drives need to be written to simultaneously? Or will it stay around 150MBps?

 

B) 1GbE = 125MBps so this will not be a bottleneck, right?

 

Now enters link aggregation (IEEE 802.3ad). Let's say 4x 1GbE NICs. IIUC this means up to 4 concurrent clients could access the NAS at 1GbE, no one can go above 1GbE since the connections are not "pooled".

 

Now let's imagine 4 clients connect simultaneously to the NAS and start a large transfer of data (they read data from the NAS). If the answer to 1-A above is 300MBps, could all 4 clients actually get 125MBps? Or do these 300MBps need to be shared between the 4 clients?

 

Now let's say we remove the bottleneck from the disk array by replacing these HDDs with sATA SSDs:

C) Each SSD is capable of 500MBps (read/write)

3) -> RAID1, so 1000MBps reads?

 

Now, with link aggregation, could all 4 clients reach 125MBps reads? I guess so, right?

 

I imagine I probably made several mistakes in my reasoning.

Please help and correct me.

 

Thank you very much in advance for sharing your knowledge.

Best,

-a-

Link to comment
Share on other sites

Link to post
Share on other sites

1GbE is 125MB/s

RAID1 means you get no benefit to read or writes and no penalty either (iirc) but just a second copy on the second drive.

 

Current Network Layout:

Current Build Log/PC:

Prior Build Log/PC:

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, asheenlevrai said:

1) -> Does RAID1 mean the theoretical max for reads is going to be around 300MBps (both drives can be accessed simultaneously)

 

Yup, but I very rarely see those speeds. Also depends on the implemtation.

 

9 minutes ago, asheenlevrai said:

2) -> Does RAID1 mean the theoretical max for writes is going to be below 150MBps (around 75MBps?) since both drives need to be written to simultaneously? Or will it stay around 150MBps?

Raid 1 would have the 

 

10 minutes ago, asheenlevrai said:

 

Now enters link aggregation (IEEE 802.3ad). Let's say 4x 1GbE NICs, all connected to a 10GbE router. IIUC this means up to 4 concurrent clients could access the NAS at 1GbE, no one can go above 1GbE since the connections are not "pooled".

 

Or you can pool all the connections using something like SMBv3 multichannel. THen no network config is needed.

 

10 minutes ago, asheenlevrai said:

Now, with link aggregation, could all 4 clients reach 250MBps reads? I guess so, right?

 

You probably want smbv3 multichannel. It will work much better here, and it won't need any network configuration.

Link to comment
Share on other sites

Link to post
Share on other sites

If you have already 10Gbps Switch, then just buy a NAS with 10Gbps port, or a adin 10Gbps NIC for it. 
iscsi mpio and SMB multichannel is generaly use, to avoid spending money on faster network hardware. If you already have that network infrastructure, just use it.  Diagnosing leter the performance issues will be easier.

   
 
 
 
Spoiler
CPU : Intel 14gen i7-14700K
COOLER :  Thermalright Peerless Assassin 120 White + thermaltake toughfan 12 white + Thermal Grizzly - CPU Contact Frame Intel 13./14. +  Coollaboratory Liquid Ultra
GPU : MSI RTX 2070 Armor @GPU 2050MHz Mem 8200MHz -> USB C 10Gb/s cable 2m -> Unitek 4x USB HUB 10 Gb/s (Y-HB08003)
MOBO : MSI MEG Z690 UNIFY
RAM :  Corsair VENGEANCE DDR5 RAM 64 GB (2 x 32 GB) 6400 MHz CL32 (CMK64GX5M2B6400C32)
SSD : Intel Optane 905P 960GB U.2 (OS) + 2 x WD SN850X 4TB + 2 x PNY CS3140 2TB + ASM2824 PCIe switch -> 4 x Plextor M8PeG 1TB + flexiDOCK MB014SP-B -> Crucial MX500 2TB + GoodRam Iridium PRO 960GB + Samsung 850 Pro 512GB
HDD : WD White 18TB WD180EDFZ + SATA port multiplier adp6st0-j05 (JMB575) ->  WD Gold 8TB WD8002FRYZ + WD Gold 4TB WD4002FYYZ + WD Red PRO 4TB WD4001FFSX + WD Green 2TB WD20EARS
EXTERNAL
HDD/SSD : 
XT-XINTE LM906 (JMS583) -> Plextor M8PeG 1TB + WD My Passport slim 1TB + LaCie Porsche Design Mobile Drive 1TB USB-C + Zalman ZM-VE350 -> Goodram IRDM PRO 240GB
PSU :  Super Flower leadex platinum 750 W biały -> Bitfenix alchemy extensions białe/białe + AsiaHorse 16AWG White 
UPS :  CyberPower CP1500EPFCLCD -> Brennenstuhl primera-line 8 -> Brennenstuhl primera-line 10
LCD :  LG 32UD59-B + LG flatron IPS236 -> Silverstone SST-ARM11BC
CASE :  Fractal R5 Biały + Lian Li BZ-H06A srebrny + 6 x Thermaltake toughfan 14 white + Thermalright TL-B8W
SPEAKERS :  Aune S6 Pro -> Topping PA3-B -> Polk S20e black -> Monoprice stand 16250
HEADPHONES :  TOSLINK 2m -> Aune S6 Pro -> 2 x Monoprice Premier 1.8m 16AWG 3-pin XLR -> Monoprice Monolith THX AAA 887 -> 4-pin XLR na 2 x 3.5mm 16 cores OCC 2m Cable -> HiFiMAN Edition XS -> sheepskin pads + 4-pin XLR na 2 x 2.5mm ABLET silver 2m  Cable -> Monoprice Monolith M1060 + Brainwavz HM100 -> Brainwavz sheepskin oval pads + Wooden double Ɪ Stand + Audio-Technica ATH-MSR7BK -> sheepskin pads + Multibrackets MB1893 + Sennheiser Momentum 3 +  Philips Fidelio X2HR/00 + JBL J88 White
MIC :  Tonor TC30 -> Mozos SB38
KEYBOARD : Corsair STRAFE RGB Cherry MX Silent (EU) + Glorious PC Gaming Race Stealth Slim - Full Size Black + PQI MyLockey
MOUSE :  Logitech MX ERGO + 2 x Logitech MX Performance + Logitech G Pro wireless + Logitech G Pro Gaming -> Hotline Games 2.0 Plus + Corsair MM500 3xl + Corsair MM300 Extended + Razer goliathus control
CONTROLLERS :  Microsoft xbox series x controller pc (1VA-00002) -> brainwavz audio Controller Holder UGC2 + Microsoft xbox 360 wireless black + Ravcore Javelin
NET :  Intel x520-DA2 -> 2 x FTLX8571D3BCV-IT + 2 x ASUS ZenWiFi Pro XT12
NAS :  Qnap TS-932X-2G -> Noctua NF-P14s redux 1200 PWM -> Kingston 16GB 2400Mhz CL14 (HX424S14IB/16) -> 9 x Crucial MX500 2TB ->  2 x FTLX8571D3BCV-IT -> 2 x Digitus (DK-HD2533-05/3)
Link to comment
Share on other sites

Link to post
Share on other sites

14 hours ago, Electronics Wizardy said:

Raid 1 would have the 

 

Seems like part of your reply was cropped

14 hours ago, Electronics Wizardy said:

 

Or you can pool all the connections using something like SMBv3 multichannel. THen no network config is needed.

 

You probably want smbv3 multichannel. It will work much better here, and it won't need any network configuration.

I need to look into smbv3 then. I never heard about it and didn't know such a thing was possible (I was always told link aggregation couldn't break the limit of a single connection). I also need to check if my NAS is compatible with smbv3.

 

Thanks a lot 🙂

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, kokosnh said:

If you have already 10Gbps Switch, then just buy a NAS with 10Gbps port, or a adin 10Gbps NIC for it. 
iscsi mpio and SMB multichannel is generaly use, to avoid spending money on faster network hardware. If you already have that network infrastructure, just use it.  Diagnosing leter the performance issues will be easier.

You are right. This was a mistake of mine to include a 10GbE switch in that example. Let's say none of the network is compatible with 10GbE.

I'll change that in the OP.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, asheenlevrai said:

I need to look into smbv3 then. I never heard about it and didn't know such a thing was possible (I was always told link aggregation couldn't break the limit of a single connection). I also need to check if my NAS is compatible with smbv3.

 

Thanks a lot 🙂

what nas do you have?

 

What switch and network gear are you using?

 

Id try to use 10gbe as its just simpler than multiple links for home use.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

what nas do you have?

 

What switch and network gear are you using?

 

Id try to use 10gbe as its just simpler than multiple links for home use.

Mostly Synologys. Most of them do not support AIC.

Network is not compatible with 10GbE AFAIK and I cannot modify it.

Thanks 🙂

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, asheenlevrai said:

Mostly Synologys. Most of them do not support AIC.

Network is not compatible with 10GbE AFAIK and I cannot modify it.

Thanks 🙂

Then I know there are some hacks to get smbv3 multichannel working on them.

 

But you may be cpu limited on those before hitting network/disk limits on some models.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Electronics Wizardy said:

Then I know there are some hacks to get smbv3 multichannel working on them.

 

But you may be cpu limited on those before hitting network/disk limits on some models.

 

 

Thanks 🙂

 

Now back to my original question, If we ignore the network limitation, would the 4 clients accessing the array simultaneously need to share the max throughput of the disk array? Or can the disk provide the same transfer speed to all clients in parallel.

In the OP I mentioned : "Now let's imagine 4 clients connect simultaneously to the NAS and start a large transfer of data (they read data from the NAS). If the answer to 1-A above is 300MBps [limit of the disk array], could all 4 clients actually get 125MBps [limit of the network connection]? Or do these 300MBps need to be shared between the 4 clients?"[so 75MBps per client if all 4 access the NAS at the same time].

 

How can I evaluate how the CPU would be limiting here? Is there any metric that could let me know about this?

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, asheenlevrai said:

 

In the OP I mentioned : "Now let's imagine 4 clients connect simultaneously to the NAS and start a large transfer of data (they read data from the NAS). If the answer to 1-A above is 300MBps [limit of the disk array], could all 4 clients actually get 125MBps [limit of the network connection]? Or do these 300MBps need to be shared between the 4 clients?"[so 75MBps per client if all 4 access the NAS at the same time].

Yea, the clients are limited to the max speed of the disk array.

 

Depending on the workload, this can be a bit faster or slower than a single client using the disk, but you normally won't see much faster than 300mB/s in this example.

 

Also HDDs will slow down as they are filled as the diameter of the disks go down.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Electronics Wizardy said:

Yea, the clients are limited to the max speed of the disk array.

 

Depending on the workload, this can be a bit faster or slower than a single client using the disk, but you normally won't see much faster than 300mB/s in this example.

But is it 300MBps for each client or 300MBps shared among all the concurrent clients? Parallel vs sequential handling of the requests.

 

In the case it is shared among clients, would it be different if using SSDs? Can SSDs handle multiple concurrent requests in parallel better than HDDs or they are just faster at sequentially handling requests?

Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, asheenlevrai said:

But is it 300MBps for each client or 300MBps shared among all the concurrent clients? Parallel vs sequential handling of the requests.

 

In the case it is shared among clients, would it be different if using SSDs? Can SSDs handle multiple concurrent requests in parallel better than HDDs or they are just faster at sequentially handling requests?

The number of client doesn't affect the speed of the disks, the queue depth does. More tasks at once = higher queue depth, so more clients normally would have a higher queue depth. HDDs don't get that much faster with a high queue depth, while ssds do(but your gonna be network limited with ssds here anyways).

 

But this also really depends on your use case. If performance is an issue, what models of nas are you using? You want the higerperformacne ones, and you want 10gbe on them.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×