freenas iscsi wifi write too slow

Joined
Mar 20, 2019
Messages
6
my english is bad sorry :(

I transfer 24gb video.
My iscsi worked very well in Lan acces. Freenas -> (my pc) write&read(80~100mb/s)
But when i use wifi read speed is normal but write speed is too slow. Freenas -> (my pc) read(60mb/s) but my write speed is(5~10mb/s)
I need your help

I already tryed https://www.ixsystems.com/community...very-slow-only-to-freenas-sanity-check.43811/ but i can't solve it.
I use my freenas on hyper-v.
FreeNAS-11.2-U2.1
memory: 8958MB
router : ac-68u
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
What are your iperf results up to the Freenas?
 
Joined
Mar 20, 2019
Messages
6
iperf results

Code:
[root@freenas ~]# iperf -s                                                     



------------------------------------------------------------                   

Server listening on TCP port 5001                                             

TCP window size:  599 KByte (default)                                         

------------------------------------------------------------                   

[  4] local 192.168.1.79 port 5001 connected with 192.168.1.248 port 62529     

[ ID] Interval       Transfer     Bandwidth                                   

[  4]  0.0- 8.8 sec   132 MBytes   126 Mbits/sec  



Code:
C:\Users\A>iperf -c 192.168.1.79
------------------------------------------------------------
Client connecting to 192.168.1.79, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.248 port 62529 connected with 192.168.1.79 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec   132 MBytes   110 Mbits/sec


what's the problem
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
That kind of matches up then doesn't it? If you are writing at 10MBps (I assume that's in bytes?) and iperf hits 110Mbits it's close.
 
Joined
Mar 20, 2019
Messages
6
100mbits/sec means 12.5mb/s=100mbps
my router and my notebook linked in 867mbps.
but iperf speed test is too slow.
I think the write speed at least 200~300mbps.
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
How are you testing this? Do you have a drive formatted ntfs attached via iscsi in windows that you are copying files to?

If you are actually connected at 867mbps on your notebook, and no other devices are using it, you could get up to 500mbps via iperf depending on how good the router/wireless card is and how close you are.

Have you isolated this to just freenas? Or have you tested with other devices? How do you know your wifi isn't the issue?
 
Joined
Mar 20, 2019
Messages
6
Wifi isn't the issue. Becaue I test ftp sever to transfer my file(24gb video). the result is write 400mbps, read 600mbps.
And i disconnect all device except my notebook and desktop computer
I have a drive formatted ntfs attached via iscsi in windows.
and iperf and iperf3 have different result.
i can't understand

Code:
-----------------------------------------------------------                     
Server listening on 5201                                                       
-----------------------------------------------------------                     
Accepted connection from 192.168.1.248, port 63018                             
[  5] local 192.168.1.79 port 5201 connected to 192.168.1.248 port 63019       
[ ID] Interval           Transfer     Bitrate                                   
[  5]   0.00-1.61   sec   346 KBytes  1.76 Mbits/sec                           
[  5]   1.61-2.00   sec  14.3 MBytes   307 Mbits/sec                           
[  5]   2.00-3.00   sec  35.5 MBytes   298 Mbits/sec                           
[  5]   3.00-4.00   sec  34.7 MBytes   291 Mbits/sec                           
[  5]   4.00-5.00   sec  34.8 MBytes   292 Mbits/sec                           
[  5]   5.00-6.00   sec  35.2 MBytes   295 Mbits/sec                           
[  5]   6.00-7.00   sec  34.3 MBytes   288 Mbits/sec                           
[  5]   7.00-8.00   sec  35.2 MBytes   295 Mbits/sec                           
[  5]   8.00-9.00   sec  36.0 MBytes   302 Mbits/sec                           
[  5]   9.00-10.00  sec  35.7 MBytes   300 Mbits/sec                           
[  5]  10.00-10.01  sec   411 KBytes   293 Mbits/sec                           
- - - - - - - - - - - - - - - - - - - - - - - - -                               
[ ID] Interval           Transfer     Bitrate                                   
[  5]   0.00-10.01  sec   296 MBytes   248 Mbits/sec                  receiver 
-----------------------------------------------------------                     
Server listening on 5201                                                       
----------------------------------------------------------- 
 

file_haver

Explorer
Joined
Sep 19, 2018
Messages
55
If you have any very old devices on your wifi
it may be forcing the wifi to run at a slower speed.
Have you verified if this is the case?
Any old stuff connected at 802.11b, g?
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
If you are getting 300mbit with iperf3 that's not that bad (ideal would be about 500mbit). You could try increasing the thread count by adding -P 3. I've had luck increasing window size to over 1MB as well. I think that's -w 1MB. Different protocols will give you different speeds. My iperf3 results without modification are quite different that my smb transfer results in windows.

For that matter, you may want to test out an SMB share with your laptop to Freenas to see if it's different than iSCSI.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
my english is bad sorry :(

I transfer 24gb video.
My iscsi worked very well in Lan acces. Freenas -> (my pc) write&read(80~100mb/s)
But when i use wifi read speed is normal but write speed is too slow. Freenas -> (my pc) read(60mb/s) but my write speed is(5~10mb/s)
I need your help

I already tryed https://www.ixsystems.com/community...very-slow-only-to-freenas-sanity-check.43811/ but i can't solve it.
I use my freenas on hyper-v.
FreeNAS-11.2-U2.1
memory: 8958MB
router : ac-68u

iSCSI is inherently a single TCP connection and won't work well over WiFi. iSCSI also often doesn't work well without lots of memory.

You would be well-advised to check the FreeNAS Terminology and Abbreviations Primer -

https://www.ixsystems.com/community/threads/terminology-and-abbreviations-primer.28174/

Your mishmash of various bits vs bytes abbreviations and consistent use of lowercase makes your messages VERY annoying to try to parse, to the point where I'm not really finding it worth the effort.

I suspect @mgittelman is giving you good advice though.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Also the potential of sync writes over WIFI while using iSCSI...
But also, dont use iSCSI of wifi unless you want to lose data...
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
But also, don't use iSCSI of wifi unless you want to lose data...

Actually that's a really good point. I didn't think of that point because I'd never even think to try iSCSI over wifi.

I wouldn't advise ANY filesharing protocol over wifi, simply because it's bad and risky design, but at least with a filesharing protocol, the NAS end is driving the filesystem layer.

Running a SAN protocol over wifi is extra levels of just-asking-for-bad-to-happen, as an inadvertent disconnect would leave the filesystem in an indeterminate state.
 
Top