[OpenIndiana-discuss] Problems with netcat zfs receive
florian at acw.at
Fri Sep 14 06:37:27 UTC 2012
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.
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
>> thank you very much! With the "d" flag, the nc commands works very well!
> 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
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
More information about the OpenIndiana-discuss