RE: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application

2012-12-06 Thread Thorn Roby
@oracle.com] Sent: Wednesday, December 05, 2012 11:59 PM To: Thorn Roby Cc: linux-btrfs@vger.kernel.org Subject: Re: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application On Wed, Dec 05, 2012 at 05:42:51PM +, Thorn Roby wrote: My previous reply

RE: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application

2012-12-05 Thread Thorn Roby
My previous reply was incorrect in one point - the data is never copied from the transaction log into the sparse datafiles, instead the application writes the same data independently to both locations. Also, I failed to mention that the files are memmapped, and it's possible that the write

Re: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application

2012-12-05 Thread Liu Bo
On Wed, Dec 05, 2012 at 05:42:51PM +, Thorn Roby wrote: My previous reply was incorrect in one point - the data is never copied from the transaction log into the sparse datafiles, instead the application writes the same data independently to both locations. Also, I failed to mention that

Re: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application

2012-12-04 Thread Liu Bo
On Tue, Dec 04, 2012 at 07:44:16PM +, Thorn Roby wrote: I am trying to use a btrfs filesystem (Oracle Linux 6.3 X86_64, UEK kernel) with data RAID0 and metadata RAID1, mounted as follows: /dev/sda3 on /data type btrfs (rw,noatime,compress-force=zlib,noacl) dmesg shows btrfs: