Hi Carsten,

thank you for your suggestion.

I had not time yet to test my script with netcat, but I will give mbuffer a try!

I heard from that tool some time ago, but I did not think on it.

CU
Florian

On 09/14/2012 08:29 AM, real-men-dont-cl...@gmx.net wrote:
-----Original message-----
To:     openindiana-discuss@openindiana.org;
From:   Flo <flor...@acw.at>
Sent:   Thu 13-09-2012 10:56
Subject:        Re: [OpenIndiana-discuss] Problems with netcat zfs receive
Hello,

thank you very much! With the "d" flag, the nc commands works very well!

Regards
Florian



Hi Florian,

I played with zfs send/reveive some time ago. One important thing I learned was 
that netcat is not the first choice to use.
There is a tool called mbuffer out there. mbuffer works similar to netcat but 
allows a specific buffer size and block size.
From various resources I found out that the best buffer and block sizes for zfs 
send/receive seem to be 1GB for the buffer with a block size of 131073.
Replacing netcat by mubuffer dramatically increases the throughput.


The resulting commands are like:

ssh -f $REMOTESRV "/opt/csw/bin/mbuffer -q -I $PORT -m 1G -s 131072 | zfs receive 
-vFd $REMOTEPOOL"

zfs send $CURRENTLOCAL | /opt/csw/bin/mbuffer -q -O $REMOTESRV:$PORT -m 1G -s 
131072 > /dev/null


cu


Carsten

_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss



_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to