FreeBSD restartable send/receive over WAN

Shiva Bhanujan Shiva.Bhanujan at Quorum.net
Sun Feb 26 14:09:02 UTC 2017


The compression that we use on our ZFS filesystems is lz4.  So, if I have to pipe it through a compression algorithm, that'd be uncompressing and compressing it 4 times.

disk (lz4) -> zfs send (uncompress) -> compress (gzip) -> (network) -> uncompress (gzip) -> zfs recv (compress) -> disk (lz4)

isn't this quite expensive?  We have to transfer multi terabyte files on a WAN link.  I'm also of the understanding that gzip by itself is single-threaded, so that'd peg one of the CPUs to 100%.  there might be other compression algorithms that can be used, but sending the ZFS as it is compressed on the filesystem is something that would be optimal, and would reduce the overhead of the additional [de]compressions that are taking place?


________________________________________
From: owner-freebsd-fs at freebsd.org [owner-freebsd-fs at freebsd.org] on behalf of Jeremy Faulkner [gldisater at gmail.com]
Sent: Saturday, February 25, 2017 4:03 PM
To: freebsd-fs at freebsd.org
Subject: Re: FreeBSD restartable send/receive over WAN

Pipe it through a compressor

On 2017-02-25 2:09 PM, Shiva Bhanujan wrote:
> Hi,
>
> I just tried restartable send/receive in 10.3 and it works like a charm.  I was wondering if compressed send has made its way into FreeBSD?  I checked 10.3 and 11.0-RELEASE, and I don't see the -c/--compressed option.  Any pointers?
>
> Regards,
> Shiva
>
>
> ________________________________________
> From: owner-freebsd-fs at freebsd.org [owner-freebsd-fs at freebsd.org] on behalf of Adam Nowacki [nowakpl at platinum.linux.pl]
> Sent: Thursday, February 16, 2017 10:41 AM
> To: freebsd-fs at freebsd.org
> Subject: Re: FreeBSD restartable send/receive over WAN
>
> On 2017-02-16 19:22, Shiva Bhanujan wrote:
>> Hello,
>>
>> I was wondering if restartable send/receive is available in FreeBSD?  We're running 10.2 and have a requirement of sending and receiving ZFS snapshots over a WAN link.  The snapshots could be more than a few terabytes.
>>
>> Can somebody please give me pointers, and if this feature is or isn't available in FreeBSD?
>
> FreeBSD 10.3 and later.
>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>
_______________________________________________
freebsd-fs at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"


More information about the freebsd-fs mailing list