I recently integrated this fix into ON: 6536606 gzip compression for ZFS With this, ZFS now supports gzip compression. To enable gzip compression just set the ''compression'' property to ''gzip'' (or ''gzip-N'' where N=1..9). Existing pools will need to upgrade in order to use this feature, and, yes, this is the second ZFS version number update this week. Recall that once you''ve upgraded a pool older software will no longer be able to access it regardless of whether you''re using the gzip compression algorithm. I did some very simple tests to look at relative size and time requirements: http://blogs.sun.com/ahl/entry/gzip_for_zfs_update I''ve also asked Roch Bourbonnais and Richard Elling to do some more extensive tests. Adam>From zfs(1M):compression=on | off | lzjb | gzip | gzip-N Controls the compression algorithm used for this dataset. The "lzjb" compression algorithm is optimized for performance while providing decent data compression. Setting compression to "on" uses the "lzjb" compression algorithm. The "gzip" compression algorithm uses the same compression as the gzip(1) command. You can specify the gzip level by using the value "gzip-N", where N is an integer from 1 (fastest) to 9 (best compression ratio). Currently, "gzip" is equivalent to "gzip-6" (which is also the default for gzip(1)). This property can also be referred to by its shortened column name "compress". -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
On Fri, 23 Mar 2007, Adam Leventhal wrote:> I recently integrated this fix into ON: > > 6536606 gzip compression for ZFSCool! Can you recall into which build it went? -- Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com
On Fri, Mar 23, 2007 at 11:41:21AM -0700, Rich Teer wrote:> > I recently integrated this fix into ON: > > > > 6536606 gzip compression for ZFS > > Cool! Can you recall into which build it went?I put it back yesterday so it will be in build 62. Adam -- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
snv_62 On Fri, 23 Mar 2007, Rich Teer wrote:> Date: Fri, 23 Mar 2007 11:41:21 -0700 (PDT) > From: Rich Teer <rich.teer at rite-group.com> > To: Adam Leventhal <ahl at eng.sun.com> > Cc: zfs-discuss at opensolaris.org > Subject: Re: [zfs-discuss] gzip compression support > > On Fri, 23 Mar 2007, Adam Leventhal wrote: > >> I recently integrated this fix into ON: >> >> 6536606 gzip compression for ZFS > > Cool! Can you recall into which build it went? > >
Hello Adam, Friday, March 23, 2007, 8:31:25 PM, you wrote: AL> I recently integrated this fix into ON: AL> 6536606 gzip compression for ZFS AL> With this, ZFS now supports gzip compression. To enable gzip compression Great! AL> just set the ''compression'' property to ''gzip'' (or ''gzip-N'' where N=1..9). AL> Existing pools will need to upgrade in order to use this feature, and, yes, AL> this is the second ZFS version number update this week. Recall that once Both version updates are in the same build, right? If it is so zfs version would be +2 or +1? -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
Hi Robert,> AL> With this, ZFS now supports gzip compression. To enable gzip compression > > Great! > > AL> just set the ''compression'' property to ''gzip'' (or ''gzip-N'' where N=1..9). > AL> Existing pools will need to upgrade in order to use this feature, and, yes, > AL> this is the second ZFS version number update this week. Recall that once > > Both version updates are in the same build, right? > If it is so zfs version would be +2 or +1? >Answer is very simple - just have a look here: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/zfs.h#130 http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/zfs.h#152 So the most current ZFS on-disk format version is 5. Victor
Hello Victor, Sunday, March 25, 2007, 12:08:03 PM, you wrote: VL> Hi Robert,>> AL> With this, ZFS now supports gzip compression. To enable gzip compression >> >> Great! >> >> AL> just set the ''compression'' property to ''gzip'' (or ''gzip-N'' where N=1..9). >> AL> Existing pools will need to upgrade in order to use this feature, and, yes, >> AL> this is the second ZFS version number update this week. Recall that once >> >> Both version updates are in the same build, right? >> If it is so zfs version would be +2 or +1? >>VL> Answer is very simple - just have a look here: VL> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/zfs.h#130 VL> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/fs/zfs.h#152 VL> So the most current ZFS on-disk format version is 5. Thanks. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com