32GB ram but speed slows down after a few seconds

vimsi

Cadet
Joined
Aug 5, 2023
Messages
3
Hi @ all,
I know there are A LOT of those threads already but none did really help me figure out how to solve this issue (or they are already several years old).

I have a dedicated Server with TrueNas Scale running:
CPURAM.png


In there I have a Software-Raid 5(RAIDZ1) of 3x4TB HDD from Toshiba with 7200rpm and 128MB Cache.
My home network between the NAS and PC is 10Gbit - iperf speed test also confirms this speed in both directions.

If I copy a large file the speed plummets after a few seconds:
from:
500mbps.png


to:

20mbps.png


What can I do to maintain the speed the whole time?

Thank you for reading this far :)
 
Joined
Jun 15, 2022
Messages
674
The data has something like 5 seconds to sit in memory and then starts to ferment, so if the drive array cannot keep up the server will stop accepting new data until the current data is written. Tweaking the settings manually is dangerous.

You can, in my limited experience, set the array up so it's faster, add an NVME cache, or use Ubuntu and software RAID with ext4.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
In order to add L2ARC you need at least 64GB of RAM.
You can also change the block size of the dataset to match your files size.
Besides, RAIDZ# is not the most performing configuration: mirrors are.
Even then, you don't have enough drives to saturate your network.
Oh, and make sure you aren't using a Realtek NIC.

Suggested readings:
 
Last edited:
Joined
Jul 3, 2015
Messages
926
Can we see a screenshot of your dataset settings just to sanity check them?
 
Joined
Jul 3, 2015
Messages
926
So your RAID-Z1 of 3 drives will have a streaming write speed of 2 of your 3 drives. So let’s say the drives can do approx 185MB/s you would get two times that so 370MB/s or 2.96Gb/s. This is the absolute theoretical best you can expect from your current setup when hitting your data pool just to put things into perspective.
 

vimsi

Cadet
Joined
Aug 5, 2023
Messages
3
Can we see a screenshot of your dataset settings just to sanity check them?
1691321820643.png

this details?



In order to add L2ARC you need at least 64GB of RAM.
You can also change the block size of the dataset to match your files size.
Besides, RAIDZ# is not the most performing configuration: mirrors are.
Even then, you don't have enough drives to saturate your network.
Oh, and make sure you aren't using a Realtek NIC.

so I have to double my ram at least?
i am not using realtek i think.
should i use more HDDs instead of larger ones?
 

Attachments

  • 1691321807556.png
    1691321807556.png
    16.9 KB · Views: 166

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,829
To saturate a 10GbE connection on write with HDDs likely requires at least 4 Zx VDEVS, if not more… and that’s only if you’re writing big, continuous files to a fairly empty pool. Small file saturation @ 10GbE to HDD would likely require multiples more, and then only if you have multiple users doing the saturating.

“Caches” aren’t used by TrueNAS like they are on other platforms, so you won’t find simply adding a SSD to suddenly speed things up. TrueNAS cares first and foremost about permanence - so writing something to a fast cache and potentially mangling it in there before transferring mangled content to the HDD pool is not something they’re interested in. Never mind losses, etc.

You can create fusion pools where SSDs help HDDs by picking up the small files and handling directory services. But your fusion pool will die if either the parity limits of your HDD VDEVs or the SSD VDEVs are exceeded. Plus, some planning up front is a really good idea since the GUI still doesn’t alert the admin re a full sVDEV.

I’m kind of wondering if what windows was showing you re progress was some kind of mirage. I’d confirm the kind of network transfer speed at the NAS GUI.
 
Last edited:
Joined
Jun 15, 2022
Messages
674
I'll mention as a friendly note many gamers see YouTube videos saying how great TrueNAS is, and it is, but usually not in the context of game data storage.

Gamers are looking for raw speed at the expense of reliability--if a few bits are lost here and there it's usually imperceptable. Gamers usually try to repurpose old gaming systems, which in their own right are very fast, however also not well-suited to industrial storage solutions like TrueNAS. For ripping data fast use Ubuntu, for reliability and speed use TrueNAS--but throw datacenter grade equipment at it; just like a gaming system is designed for a specific purpose a data storage system is also, and they're vastly different in requirements.

I mention this because many gamers are disappointed in TrueNAS performance without understanding the purpose of TrueNAS and without having configured a system that meets their desires. Whatever your goals we want you to achive them and are supportive of you having a great outcome within your budget.
 
Last edited:

Constantin

Vampire Pig
Joined
May 19, 2017
Messages
1,829
It’s a philosophy you have to consider important before going down its path. Data integrity supreme is not for everyone.

But if data integrity is important to you, then TrueNAS is a great vehicle to ride down the ZFS path to potential zero data corruption/loss.
 
Joined
Jul 3, 2015
Messages
926

vimsi

Cadet
Joined
Aug 5, 2023
Messages
3
I'll mention as a friendly note many gamers see YouTube videos saying how great TrueNAS is, and it is, but usually not in the context of game data storage.

Gamers are looking for raw speed at the expense of reliability--if a few bits are lost here and there it's usually imperceptable. Gamers usually try to repurpose old gaming systems, which in their own right are very fast, however also not well-suited to industrial storage solutions like TrueNAS. For ripping data fast use Ubuntu, for reliability and speed use TrueNAS--but throw datacenter grade equipment at it; just like a gaming system is designed for a specific purpose a data storage system is also, and they're vastly different in requirements.

I mention this because many gamers are disappointed in TrueNAS performance without understanding the purpose of TrueNAS and without having configured a system that meets their desires. Whatever your goals we want you to achive them and are supportive of you having a great outcome within your budget.
well, i am for data security over everything else!
beside my raid i drive a daily backup onto anoethr drive - and i am also building a second raid 5 on another server to backup everything once again.. i dont want to lose any data anymore in my life
and as you swa i don't repurpose an old gaming rig - all my 3 servers running xeon CPUs with DDR ECC Memory at least

But since I also invested into 10Gbit ethernet I would like to have not only data integrity and security but also speed.

To saturate a 10GbE connection on write with HDDs likely requires at least 4 Zx VDEVS, if not more… and that’s only if you’re writing big, continuous files to a fairly empty pool. Small file saturation @ 10GbE to HDD would likely require multiples more, and then only if you have multiple users doing the saturating.

“Caches” aren’t used by TrueNAS like they are on other platforms, so you won’t find simply adding a SSD to suddenly speed things up. TrueNAS cares first and foremost about permanence - so writing something to a fast cache and potentially mangling it in there before transferring mangled content to the HDD pool is not something they’re interested in. Never mind losses, etc.

You can create fusion pools where SSDs help HDDs by picking up the small files and handling directory services. But your fusion pool will die if either the parity limits of your HDD VDEVs or the SSD VDEVs are exceeded. Plus, some planning up front is a really good idea since the GUI still doesn’t alert the admin re a full sVDEV.

I’m kind of wondering if what windows was showing you re progress was some kind of mirage. I’d confirm the kind of network transfer speed at the NAS GUI.
i rather keep it safe and simple and don't mess around with Fusion Pools.. I'd rather make a raid out of a couple more drives, maybe 5 instead of 3. eventually this gives me a couple more MB/s


Yep. That all looks fine.
at least one good news :D
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
well, i am for data security over everything else!
beside my raid i drive a daily backup onto anoethr drive - and i am also building a second raid 5 on another server to backup everything once again.. i dont want to lose any data anymore in my life
and as you swa i don't repurpose an old gaming rig - all my 3 servers running xeon CPUs with DDR ECC Memory at least

But since I also invested into 10Gbit ethernet I would like to have not only data integrity and security but also speed.


i rather keep it safe and simple and don't mess around with Fusion Pools.. I'd rather make a raid out of a couple more drives, maybe 5 instead of 3. eventually this gives me a couple more MB/s
Please, stop using hardware RAID terminilogy.

 
Top