Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-12-25 Thread C Anthony Risinger
On Dec 24, 2010, at 2:46 PM, Chris Mason chris.ma...@oracle.com wrote:
  This is going to be the building block  for our 2.6.38 pull
request to Linus.

hooray christmas came early this year! what a nice gift, thanks!

heh, thanks for all the great work guys.  I'm doing my best to spread
the good btrfs word all over the net, correcting misconceptions,
writing guides/hooks/scripts, and generally helping those that need
it; the majority are most impressed, and looking forward to the onset.

Just thought I'd say that my travels have found many satisfied users,
who are, including myself, very appreciative of the work being done
here.

So thanks!  Happy holidays!  And to all a good night!

C Anthony [mobile]

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-12-24 Thread Chris Mason
Excerpts from Li Zefan's message of 2010-12-24 01:55:53 -0500:
 cwillu wrote:
  On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:
  Hi Chris,
 
  Here's the updated patchset. As I still haven't got a kernel.org
  account, I have set up a git tree in another public git repository,
  and I'll use it for now.
 
  You can pull from:
 
 git://repo.or.cz/linux-btrfs-devel.git lzo-support

I pulled this in last night and an all night run completed without
troubles.  I'm trying a few more this morning, but it looks really good.

I think I'll also bump the compressed extent size up to 512KB, which
will cut down on the number of extents in files that compress well.

-chris
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-12-24 Thread Chris Mason
Excerpts from Chris Mason's message of 2010-12-24 07:32:16 -0500:
 Excerpts from Li Zefan's message of 2010-12-24 01:55:53 -0500:
  cwillu wrote:
   On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:
   Hi Chris,
  
   Here's the updated patchset. As I still haven't got a kernel.org
   account, I have set up a git tree in another public git repository,
   and I'll use it for now.
  
   You can pull from:
  
  git://repo.or.cz/linux-btrfs-devel.git lzo-support
 
 I pulled this in last night and an all night run completed without
 troubles.  I'm trying a few more this morning, but it looks really good.
 
 I think I'll also bump the compressed extent size up to 512KB, which
 will cut down on the number of extents in files that compress well.

The next branch of the btrfs unstable tree has lzo and the other fujitsu
work so far.  This is going to be the building block for our 2.6.38 pull
request to Linus.

It might get rebased, but it seems good so far.

-chris
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-12-23 Thread cwillu
On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:
 Hi Chris,

 Here's the updated patchset. As I still haven't got a kernel.org
 account, I have set up a git tree in another public git repository,
 and I'll use it for now.

 You can pull from:

        git://repo.or.cz/linux-btrfs-devel.git lzo-support


 Lzo is a much faster compression algorithm than gzib, so would allow
 more users to enable transparent compression, and some users can
 choose from compression ratio and compression speed.

 Usage:

 # mount -t btrfs -o compress[=zlib,lzo] dev /mnt
 or
 # mount -t btrfs -o compress-force[=zlib,lzo] dev /mnt

 -o compress without argument is still allowed for compatability.

This doesn't seem to work with -o remount.  mount / -o
remount,compress=lzo fails with [90192.345382] btrfs: unrecognized
mount option 'compress=lzo'.  The -clzo option to defrag works fine.
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-12-23 Thread Li Zefan
cwillu wrote:
 On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:
 Hi Chris,

 Here's the updated patchset. As I still haven't got a kernel.org
 account, I have set up a git tree in another public git repository,
 and I'll use it for now.

 You can pull from:

git://repo.or.cz/linux-btrfs-devel.git lzo-support


 Lzo is a much faster compression algorithm than gzib, so would allow
 more users to enable transparent compression, and some users can
 choose from compression ratio and compression speed.

 Usage:

 # mount -t btrfs -o compress[=zlib,lzo] dev /mnt
 or
 # mount -t btrfs -o compress-force[=zlib,lzo] dev /mnt

 -o compress without argument is still allowed for compatability.
 
 This doesn't seem to work with -o remount.  mount / -o
 remount,compress=lzo fails with [90192.345382] btrfs: unrecognized
 mount option 'compress=lzo'.  The -clzo option to defrag works fine.
 

It works for me:

# mount -t btrfs -o compress=zlib /dev/loop1 /mnt
# mount -o remount,compress=lzo /dev/loop1 /mnt
# dmesg
...
device fsid c142fef10429f78f-540f99158993f7a2 devid 1 transid 31 /dev/loop1
btrfs: use zlib compression
btrfs: use lzo compression
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-11-30 Thread C Anthony Risinger
On Mon, Nov 29, 2010 at 7:00 PM, Li Zefan l...@cn.fujitsu.com wrote:
 C Anthony Risinger wrote:
 On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:

 You can pull from:

        git://repo.or.cz/linux-btrfs-devel.git lzo-support


 Lzo is a much faster compression algorithm than gzib, so would allow
 more users to enable transparent compression, and some users can
 choose from compression ratio and compression speed.

 is this in a branch somewhere?  or for inclusion in .37/.38?  this is
 a very attractive feature.

 what's the proper place (repo/branch) to see what is pending?

 As a new feature, it's too late for .37. Hope to see it merged in .38
 merge window.

:-(

yeah i thought it was already too late for .37, but i'd love to see
this for .38... should add even more kick to my eee s101 netbook.

 Chris' btrfs-unstable git tree is the official place to see what is
 pending, but just he hasn't picked up those patches, so for now it
 only sits in my own tree.

i knew about Chris' tree, i probably should have been more clear;
instead of pending i should have said awaiting review, ie. is
there a repo Chris or someone else keeps with all the potential
patches (such as this, or the recent readonly ones, etc.)?

i keep a pretty good eye on the list, but i thought maybe someone
already had a nice central point to see these up and coming patches
that aren't necessarily pending for mainline yet.

thanks Li,

C Anthony
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-11-29 Thread C Anthony Risinger
On Wed, Nov 17, 2010 at 8:08 PM, Li Zefan l...@cn.fujitsu.com wrote:
 Hi Chris,

 Here's the updated patchset. As I still haven't got a kernel.org
 account, I have set up a git tree in another public git repository,
 and I'll use it for now.

 You can pull from:

        git://repo.or.cz/linux-btrfs-devel.git lzo-support


 Lzo is a much faster compression algorithm than gzib, so would allow
 more users to enable transparent compression, and some users can
 choose from compression ratio and compression speed.

 Usage:

 # mount -t btrfs -o compress[=zlib,lzo] dev /mnt
 or
 # mount -t btrfs -o compress-force[=zlib,lzo] dev /mnt

 -o compress without argument is still allowed for compatability.

 Compatibility:

 If we mount a filesystem with lzo compression, it will not be able be
 mounted in old kernels. One reason is, otherwise btrfs will directly
 dump compressed data, which sits in inline extent, to user.

 Performance:

 The test copied a linux source tarball (~400M) from an ext4 partition
 to the btrfs partition, and then extracted the tarball.

 (time in second)
           lzo        zlib        nocompress
 copy:      10.6       21.7        14.9
 extract:   70.1       94.4        66.6

 (data size in MB)
           lzo        zlib        nocompress
 copy:      185.87     108.69      394.49
 extract:   193.80     132.36      381.21

 Test:

 Mitch has tested the patchset, and provided some positive feedback.
 According to him, the patchset works as expected and nothing bad
 has he experienced.

 Other:

 The defrag ioctl is also updated, so one can choose lzo or zlib when
 turning on compression in defrag operation.

 Main change from v1:

 - Add incompat flag.
 - Fix build issue by selecting kernel lzo module.
 - Check compression type in defrag ioctl.

 
 Li Zefan (6):
      btrfs: Fix bugs in zlib workspace
      btrfs: Fix error handling in zlib
      btrfs: Allow to add new compression algorithm
      btrfs: Add lzo compression support
      btrfs: Allow to specify compress method when defrag
      btrfs: Extract duplicate decompress code

  fs/btrfs/Makefile       |    2 +-
  fs/btrfs/btrfs_inode.h  |    2 +-
  fs/btrfs/compression.c  |  329 +-
  fs/btrfs/compression.h  |   72 ++--
  fs/btrfs/ctree.h        |   11 +-
  fs/btrfs/extent_io.c    |    5 +-
  fs/btrfs/extent_io.h    |   17 ++-
  fs/btrfs/extent_map.c   |    2 +
  fs/btrfs/extent_map.h   |    3 +-
  fs/btrfs/file.c         |    2 +
  fs/btrfs/inode.c        |   82 ++
  fs/btrfs/ioctl.c        |   10 +-
  fs/btrfs/ioctl.h        |    9 +-
  fs/btrfs/lzo.c          |  409 
 +++
  fs/btrfs/ordered-data.c |   18 ++-
  fs/btrfs/ordered-data.h |    8 +-
  fs/btrfs/super.c        |   47 +-
  fs/btrfs/zlib.c         |  361 +++--
  18 files changed, 1013 insertions(+), 376 deletions(-)

is this in a branch somewhere?  or for inclusion in .37/.38?  this is
a very attractive feature.

what's the proper place (repo/branch) to see what is pending?

C Anthony
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL][PATCH v2 0/6] btrfs: Add lzo compression support

2010-11-17 Thread Li Zefan
Hi Chris,

Here's the updated patchset. As I still haven't got a kernel.org
account, I have set up a git tree in another public git repository,
and I'll use it for now.

You can pull from:

git://repo.or.cz/linux-btrfs-devel.git lzo-support


Lzo is a much faster compression algorithm than gzib, so would allow
more users to enable transparent compression, and some users can
choose from compression ratio and compression speed.

Usage:

# mount -t btrfs -o compress[=zlib,lzo] dev /mnt
or
# mount -t btrfs -o compress-force[=zlib,lzo] dev /mnt

-o compress without argument is still allowed for compatability.

Compatibility:

If we mount a filesystem with lzo compression, it will not be able be
mounted in old kernels. One reason is, otherwise btrfs will directly
dump compressed data, which sits in inline extent, to user.

Performance:

The test copied a linux source tarball (~400M) from an ext4 partition
to the btrfs partition, and then extracted the tarball.

(time in second)
   lzozlibnocompress
copy:  10.6   21.714.9
extract:   70.1   94.466.6

(data size in MB)
   lzozlibnocompress
copy:  185.87 108.69  394.49
extract:   193.80 132.36  381.21

Test:

Mitch has tested the patchset, and provided some positive feedback.
According to him, the patchset works as expected and nothing bad
has he experienced.

Other:

The defrag ioctl is also updated, so one can choose lzo or zlib when
turning on compression in defrag operation.

Main change from v1:

- Add incompat flag.
- Fix build issue by selecting kernel lzo module.
- Check compression type in defrag ioctl.


Li Zefan (6):
  btrfs: Fix bugs in zlib workspace
  btrfs: Fix error handling in zlib
  btrfs: Allow to add new compression algorithm
  btrfs: Add lzo compression support
  btrfs: Allow to specify compress method when defrag
  btrfs: Extract duplicate decompress code

 fs/btrfs/Makefile   |2 +-
 fs/btrfs/btrfs_inode.h  |2 +-
 fs/btrfs/compression.c  |  329 +-
 fs/btrfs/compression.h  |   72 ++--
 fs/btrfs/ctree.h|   11 +-
 fs/btrfs/extent_io.c|5 +-
 fs/btrfs/extent_io.h|   17 ++-
 fs/btrfs/extent_map.c   |2 +
 fs/btrfs/extent_map.h   |3 +-
 fs/btrfs/file.c |2 +
 fs/btrfs/inode.c|   82 ++
 fs/btrfs/ioctl.c|   10 +-
 fs/btrfs/ioctl.h|9 +-
 fs/btrfs/lzo.c  |  409 +++
 fs/btrfs/ordered-data.c |   18 ++-
 fs/btrfs/ordered-data.h |8 +-
 fs/btrfs/super.c|   47 +-
 fs/btrfs/zlib.c |  361 +++--
 18 files changed, 1013 insertions(+), 376 deletions(-)


--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html