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!

write big file using SMB freezes at 99%

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

write big file using SMB freezes at 99%

Post by Nikotine »

Hi,

I've been experimenting with SMB2 vs NT1 and asynchronous I/O, sendfile and large read/write settings. I read/write a 3GB file.

I've noticed that whatever I choose, read speeds are fine (though less spikes with NT1), for example:
Image

Write speed is tremendous, but it hangs for about 5 minutes at 99%!
You can see that it starts reading. It takes about 5 minutes to get from 99% to 100%!!
What's happening there?

Image

I should probably say this file is read/written from a Windows 8 system. Oh, and I use ZFS Raidz1, three 2TB WD caviar reds.
Last edited by Nikotine on 05 Mar 2013 14:32, edited 2 times in total.
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

rostreich
Status: Offline

Re: write big file using SMB freezes at 99%

Post by rostreich »

on win7 and win8 use definately smb2. AIO works since .636. sendfile on is ok.
large read/write settings
work with standard settings so far.

but regarding your other NIC problem, I'd say use Intel NIC. ;)

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by Nikotine »

Well, with SMB2, large I/O, asynchronous I/O, but without sendfile, because it can't be enabled with SMB2, I get this:
Image

A lot more spiking, so I suppose NT1 is better, even with Win8.

But the problem is writing, it takes 5 times more time to get from 99 to 100% than it took to get to 99% :)
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by raulfg3 »

you don't say how much RAM do you have and if use ZFSkerntune.

I suggest to tune ZFS using ZFSkerntune in all cases, you see the difference.

PD: I asume that your problem is a ZFS tune problem.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by Nikotine »

I have 8 gb ram, but haven't used ZFSkerntune. I will try that.
So with that ZFSkerntune thing, I should be able to use SMB2 with large read/write, asynchronous I/O, without sendfile?
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by raulfg3 »

Yes
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by Nikotine »

So I've been experimenting with samba settings after using the ZFS kernel tune script.

Using NT1, large read/write, asynchronous I/O, with sendfile:
Image
Image

Using SMB2, large read/write, asynchronous I/O, without sendfile:
Image
Image

All done with a 3GB file from a Windows 8 station.

There's a lot of variation in read speed when using SMB2. It goes over 100 mb/s, but the average speed seems to be slower than NT1. Using the ZFS kernel tune script or switching from NT1 to SMB2 didn't fix the 99% hang!

Is no one else experiencing this?
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by Nikotine »

Anyone's got an idea?
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

rostreich
Status: Offline

Re: write big file using SMB freezes at 99%

Post by rostreich »

Not really.

I don't know if we talked already about trying from a win7 machine on other thread or pm. Do you have a laptop or could a friend bring his to your lan to just try it?

Maybe it could help to deactivate ipv6 on the win8 NICs properties.

Nikotine
Starter
Starter
Posts: 21
Joined: 17 Dec 2012 22:08
Location: Belgium
Contact:
Status: Offline

Re: write big file using SMB freezes at 99%

Post by Nikotine »

Ok, so I bought an Intel Gigabit Pro 1000 CT and man, what a performance boost:

Image
SMB2 - large read write - asynchronous I/O - NO sendfile

Both read and write speed average around 110 MB/s.
The 99% hang still exists, but at least it's a lot shorter.
x64 9.1.0.1 (revision 636) embedded | Asus P5Q Pro + Q9550 | onboard Atheros AR8121 | 8 GB DDR2 | Dell PERC H200 with IT firmware | 3x 2TB WD Caviar Red with RaidZ1 | U204FB-A2 HD44780 LCD (updated 27/02/2013)

Post Reply

Return to “CIFS/SMB (Samba)”