[OpenIndiana-discuss] Problems with netcat zfs receive

Flo florian at acw.at
Fri Sep 14 06:37:27 UTC 2012


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-click at gmx.net wrote:
> -----Original message-----
> To:	openindiana-discuss at openindiana.org;
> From:	Flo <florian at 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 at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>




More information about the OpenIndiana-discuss mailing list