* Copying between lzo compressed BtrFS's: de/re-compressing. @ 2016-01-15 9:00 Diagon 2016-01-15 9:56 ` Timofey Titovets 0 siblings, 1 reply; 7+ messages in thread From: Diagon @ 2016-01-15 9:00 UTC (permalink / raw) To: linux-btrfs I'm copying a large number of files between two lzo compressed BtrFS filesystems on different drives mounted on the same machine. It appears that the files are being de/re-compressed. Is there a way avoid this? Thanks /D ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-15 9:00 Copying between lzo compressed BtrFS's: de/re-compressing Diagon @ 2016-01-15 9:56 ` Timofey Titovets 2016-01-15 12:25 ` Filipe Manana 0 siblings, 1 reply; 7+ messages in thread From: Timofey Titovets @ 2016-01-15 9:56 UTC (permalink / raw) To: Diagon; +Cc: linux-btrfs 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: > I'm copying a large number of files between two lzo compressed BtrFS > filesystems on different drives mounted on the same machine. It appears > that the files are being de/re-compressed. Is there a way avoid this? If you just copy files, files will be decompressed while reading and recompressed while writing For avoiding this, you must use send receive feature -- Have a nice day, Timofey. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-15 9:56 ` Timofey Titovets @ 2016-01-15 12:25 ` Filipe Manana 2016-01-15 12:28 ` Timofey Titovets 2016-01-17 20:42 ` Diagon 0 siblings, 2 replies; 7+ messages in thread From: Filipe Manana @ 2016-01-15 12:25 UTC (permalink / raw) To: Timofey Titovets; +Cc: Diagon, linux-btrfs On Fri, Jan 15, 2016 at 9:56 AM, Timofey Titovets <nefelim4ag@gmail.com> wrote: > 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: >> I'm copying a large number of files between two lzo compressed BtrFS >> filesystems on different drives mounted on the same machine. It appears >> that the files are being de/re-compressed. Is there a way avoid this? > > If you just copy files, files will be decompressed while reading and > recompressed while writing > For avoiding this, you must use send receive feature No, send/receive does not avoid decompression on the send side nor re-compression at the receiving side. The receiving side writes the data from a send stream, which is uncompressed, to the destination filesystem using standard system calls like write/pwrite. > > > -- > Have a nice day, > Timofey. > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Filipe David Manana, "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men." ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-15 12:25 ` Filipe Manana @ 2016-01-15 12:28 ` Timofey Titovets 2016-01-17 20:42 ` Diagon 1 sibling, 0 replies; 7+ messages in thread From: Timofey Titovets @ 2016-01-15 12:28 UTC (permalink / raw) To: Filipe Manana; +Cc: Diagon, linux-btrfs Thanks, Filipe ^_^ 2016-01-15 15:25 GMT+03:00 Filipe Manana <fdmanana@gmail.com>: > On Fri, Jan 15, 2016 at 9:56 AM, Timofey Titovets <nefelim4ag@gmail.com> wrote: >> 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: >>> I'm copying a large number of files between two lzo compressed BtrFS >>> filesystems on different drives mounted on the same machine. It appears >>> that the files are being de/re-compressed. Is there a way avoid this? >> >> If you just copy files, files will be decompressed while reading and >> recompressed while writing >> For avoiding this, you must use send receive feature > > No, send/receive does not avoid decompression on the send side nor > re-compression at the receiving side. The receiving side writes the > data from a send stream, which is uncompressed, to the destination > filesystem using standard system calls like write/pwrite. > >> >> >> -- >> Have a nice day, >> Timofey. >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > -- > Filipe David Manana, > > "Reasonable men adapt themselves to the world. > Unreasonable men adapt the world to themselves. > That's why all progress depends on unreasonable men." -- Have a nice day, Timofey. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-15 12:25 ` Filipe Manana 2016-01-15 12:28 ` Timofey Titovets @ 2016-01-17 20:42 ` Diagon 2016-01-17 21:27 ` Chris Murphy 1 sibling, 1 reply; 7+ messages in thread From: Diagon @ 2016-01-17 20:42 UTC (permalink / raw) To: linux-btrfs On 01/15/2016 04:25 AM, Filipe Manana wrote: > On Fri, Jan 15, 2016 at 9:56 AM, Timofey Titovets <nefelim4ag@gmail.com> wrote: >> 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: >>> I'm copying a large number of files between two lzo compressed BtrFS >>> filesystems on different drives mounted on the same machine. It appears >>> that the files are being de/re-compressed. Is there a way avoid this? >> >> If you just copy files, files will be decompressed while reading and >> recompressed while writing >> For avoiding this, you must use send receive feature > > No, send/receive does not avoid decompression on the send side nor > re-compression at the receiving side. The receiving side writes the > data from a send stream, which is uncompressed, to the destination > filesystem using standard system calls like write/pwrite. So, just to spell it out, I understand that de/re-compression is unavoidable? (And I'll post that to my stackexchange question.) >> Have a nice day, >> Timofey. Thanks /D. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-17 20:42 ` Diagon @ 2016-01-17 21:27 ` Chris Murphy 2016-01-17 21:57 ` Diagon 0 siblings, 1 reply; 7+ messages in thread From: Chris Murphy @ 2016-01-17 21:27 UTC (permalink / raw) To: Diagon; +Cc: linux-btrfs On Sun, Jan 17, 2016 at 1:42 PM, Diagon <kernel.boxy@xoxy.net> wrote: > On 01/15/2016 04:25 AM, Filipe Manana wrote: >> On Fri, Jan 15, 2016 at 9:56 AM, Timofey Titovets <nefelim4ag@gmail.com> wrote: > >>> 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: > >>>> I'm copying a large number of files between two lzo compressed BtrFS >>>> filesystems on different drives mounted on the same machine. It appears >>>> that the files are being de/re-compressed. Is there a way avoid this? >>> >>> If you just copy files, files will be decompressed while reading and >>> recompressed while writing >>> For avoiding this, you must use send receive feature >> >> No, send/receive does not avoid decompression on the send side nor >> re-compression at the receiving side. The receiving side writes the >> data from a send stream, which is uncompressed, to the destination >> filesystem using standard system calls like write/pwrite. > > So, just to spell it out, I understand that de/re-compression is > unavoidable? (And I'll post that to my stackexchange question.) It's unavoidable when replicating data across file systems (send/receive, rsync, cp). It's avoidable if you use a seed device, add a new device, then delete the seed. While the volume UUID changes with this process, the duplicate volume is essentially the same as the source (the process copies chunks), which means the chunk profile is also preserved. -- Chris Murphy ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Copying between lzo compressed BtrFS's: de/re-compressing. 2016-01-17 21:27 ` Chris Murphy @ 2016-01-17 21:57 ` Diagon 0 siblings, 0 replies; 7+ messages in thread From: Diagon @ 2016-01-17 21:57 UTC (permalink / raw) To: linux-btrfs On 01/17/2016 01:27 PM, Chris Murphy - lists@colorremedies.com wrote: > On Sun, Jan 17, 2016 at 1:42 PM, Diagon <kernel.boxy@xoxy.net> wrote: >> On 01/15/2016 04:25 AM, Filipe Manana wrote: >>> On Fri, Jan 15, 2016 at 9:56 AM, Timofey Titovets <nefelim4ag@gmail.com> wrote: >> >>>> 2016-01-15 12:00 GMT+03:00 Diagon <kernel.boxy@xoxy.net>: >> >>>>> I'm copying a large number of files between two lzo compressed BtrFS >>>>> filesystems on different drives mounted on the same machine. It appears >>>>> that the files are being de/re-compressed. Is there a way avoid this? >>>> >>>> If you just copy files, files will be decompressed while reading and >>>> recompressed while writing >>>> For avoiding this, you must use send receive feature >>> >>> No, send/receive does not avoid decompression on the send side nor >>> re-compression at the receiving side. The receiving side writes the >>> data from a send stream, which is uncompressed, to the destination >>> filesystem using standard system calls like write/pwrite. >> >> So, just to spell it out, I understand that de/re-compression is >> unavoidable? (And I'll post that to my stackexchange question.) > > It's unavoidable when replicating data across file systems > (send/receive, rsync, cp). Got it. > It's avoidable if you use a seed device, > add a new device, then delete the seed. While the volume UUID changes > with this process, the duplicate volume is essentially the same as the > source (the process copies chunks), which means the chunk profile is > also preserved. Fantastic! I could have actually used this on a new build by using the installer to build into a new subvolume and then moving the files over. I'll know next time. Much appreciated. /D ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-01-17 21:58 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-01-15 9:00 Copying between lzo compressed BtrFS's: de/re-compressing Diagon 2016-01-15 9:56 ` Timofey Titovets 2016-01-15 12:25 ` Filipe Manana 2016-01-15 12:28 ` Timofey Titovets 2016-01-17 20:42 ` Diagon 2016-01-17 21:27 ` Chris Murphy 2016-01-17 21:57 ` Diagon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).