*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

HAST initial memsync speed

Everything to improve your speed, LAGG, VLAN, VPN, Port Forwarding, DNS, Gateway
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
tiger1342
NewUser
NewUser
Posts: 1
Joined: 27 Jan 2015 14:37
Status: Offline

HAST initial memsync speed

#1

Post by tiger1342 » 05 Feb 2015 13:25

Hi All!

I have 2 Nas4Free nodes configured with Carp and Hast with ZFS.
In idle time the initial sync between 2 nodes is about 50 kbps, but while copying a file it goes up to 50-80 mbps.
I found the solution in FreeBSD forum to set MAX SEND SIZE in hastd and recompile the daemon, but cannot find the mentioned files:

Could you edit sbin/hastd/proto_common.c and change MAX_SEND_SIZE at the
begining of the file from 131072 to 32768?
http://freebsd.1045724.n5.nabble.com/HA ... 27033.html
Then do the following:

# cd /usr/src
# make buildenv
# cd sbin/hastd
# make && make install

Can anybody help me what to do?
Thank You.

zdenyx
NewUser
NewUser
Posts: 12
Joined: 04 Jan 2013 14:47
Location: Czech Republic
Status: Offline

Re: HAST initial memsync speed

#2

Post by zdenyx » 02 Apr 2015 10:27

Hello,

which version of NAS4Free do you have ? I have NAS4Free 9.3.0.2 (revision 1349). My initial sync speed is also slower (30-50 MB/s) than copying a file (50-90 MB/s), but it is not poor as your.

Yesterday a tried this:

http://wiki.nas4free.org/doku.php?id=do ... om_scratch

I mean that it's an option how to potentially change any parameter and build your own ISO.

In FreeBSD 9.3.p10 is MAX_SEND_SIZE=32768

Here are some info to "HAST tunning", but i mean the defaults are OK.
https://www.freebsd.org/cgi/man.cgi?que ... &sektion=5
- Interesting values are checksum, compression

And finally my test HAST hardware:
both nodes have

Gigabyte Z77-DS3H
CPU Pentium G2020 2.90GHz
8GB RAM
4x HDD WD60EFRX in RADZ1
1x SSD ADATA SP900 as ZIL
2x NIC Intel EXPI9400PT in lagg0 - LACP (LAN connection)
1x NIC Intel EXPI9301CTBLK (HAST sync cross connection)

Regards,
Zdenyx
HAST config with 2x Supermicro X9SRL-F, Xeon(R) CPU E5-1620 v2 @ 3.70GHz, 32 GB ECC RAM, 16x HDD ST3000VN0001

Post Reply

Return to “XigmaNAS Networking Tune-up”