This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS or N4F is SO SLOW! And a data sizing problem.

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
serverguy
Starter
Starter
Posts: 22
Joined: 25 Oct 2014 13:18
Contact:
Status: Offline

ZFS or N4F is SO SLOW! And a data sizing problem.

Post by serverguy »

I have two N4F boxes built and running. One has 8 3TB drives on it. The other has 4 4TB drives on it. The 8 and 4 drives groupings are each a single ZFS partition. So that's a total of 2, of course. And they are SO SLOW!!! By comparison, the units they are supposed to be replacing are Synology NAS units. They are quite fast listing directories while the ZFS on N4F is at least 10 times slower. Possibly far slower than that. I have not timed it exactly but from what I have counted myself, there is a minimum of 10 to 1 speed difference.

They are both running on ASRock 960GM/U3S3 FX with American Megatrends Inc. version: P1.40 10/02/2013 pushed along with a x64-embedded on AMD Athlon(tm) II X2 250 Processor. One has 5GB of memory, the other (the one I am watching grind) has 8GB of memory. It is 27% used. No thrashing. And they don't run CPU bound. In fact, I have never seen them more than 50% busy. Right now, while I am getting a size of the entire ZFS partition on one of them and the CPU is only 8% busy. So it is not a CPU problem.

The connection is SMB to both N4S and Synology from the same Windows 7 box on the same 1 Gb connection. It is hardly used for this process.

I started the file sizing process before I started writing this and it is only about 1/3 through. On the Synology it would be through by now. In fact, during the time I wrote this sentence, the Synology already started and finished. N4F is still chugging along about half way done. This is HORRIBLE!!

Why is this so slow? Is there any optimization I should do? Anything to look at? WHY is it running SO SLOW?!?!?!

Then there's the size problem. The Synology is using 9.4 TB. The EXACT same data (mirrored with Robocopy) is on both. The properties windows shows the same number of files and they are almost the same size. But the ZFS info shows 13 TB used to hold this 9.4 TB of data. That's 38% larger! Synology shows 9730 GB used and N4F/ZFS shows 13000 GB used. This is a HUGE difference. No, there is nothing else stored to account for this. Recycle is empty. No web site or anything else. They are both running 4 ea. 4TB drives with 1 disk redundancy. On Synology, it is called SHR and feels a lot like ZFS. The drives don't have to be the same size. It will use what is there and autoexpands when a larger drive is added.

So...

Double mystery here. Would appreciate any help with this dual problematic situation. Slow response and far larger data size on ZFS.

Mike Morrow

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by kenZ71 »

Have you tried the ZFS Kern Tune? Search the forum, it can help speed up ZFS quite a bit.

As for the size reporting what do you see from linux / Windows clients?
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by crowi »

But the ZFS info shows 13 TB used to hold this 9.4 TB of data.
Where exactly do you get this data from? Can you post a screenshot?

Then you should not use this Asrock 960GM/U3S3 FX mainboard for ZFS
Supports DDR3 1866(OC)/1600(OC)/1333/1066/800 non-ECC, un-buffered memory
as ECC memory is HIGHLY needed for ZFS:
https://forums.freenas.org/index.php?th ... zfs.15449/

And finally:
They are quite fast listing directories while the ZFS on N4F is at least 10 times slower. Possibly far slower than that. I have not timed it exactly but from what I have counted myself, there is a minimum of 10 to 1 speed difference.
This is dependent on how you have configured SMB.
Use sendfile -> turn off
EA support -> turn off
Store DOS attributes -> turn off
Asynchronous I/O (AIO) -> turn on

On SMB shares:
ZFS ACL -> turn off
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

serverguy
Starter
Starter
Posts: 22
Joined: 25 Oct 2014 13:18
Contact:
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by serverguy »

Did those changes, restarted SMB. No improvement. Still has huge waits between files.

Haven't changed the motherboard of memory yet.

"Free" just got a whole lot less free!

Mike
You do not have the required permissions to view the files attached to this post.

serverguy
Starter
Starter
Posts: 22
Joined: 25 Oct 2014 13:18
Contact:
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by serverguy »

I documented where I got the data. I guess I could go around to the three systems and capture screen shots that will show exactly what I typed but... will that do any good? I typed exactly what I saw. Due to space limitations, I had to split the one partition into two and I have to get the new two loaded up before I can get the new numbers.

Can we just address the numbers presented? They are true and the sources are documented.

Mike

Lord Crc
Starter
Starter
Posts: 51
Joined: 17 Jun 2013 12:29
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by Lord Crc »

Since you're using SMB, you could try the config changes I mention in this post here: viewtopic.php?p=52332#p52332

It made a big difference for me when accessing the directory structure (ie listing files in directory etc). Remember to reboot after saving the changes :)

jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: ZFS or N4F is SO SLOW! And a data sizing problem.

Post by jasch »

Just a tip, dont use robocopy, use zfs send and recive to copy or sync zfs.
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

Post Reply

Return to “ZFS (only!)”