Re: [zfs-discuss] Confused by compressratio

2008-04-17 Thread Richard Elling
Stuart Anderson wrote: > On Wed, Apr 16, 2008 at 02:07:53PM -0700, Richard Elling wrote: > Personally, I'd estimate using du rather than ls. >>> They report the exact same number as far as I can tell. With the caveat >>> that Solaris ls -s returns the number of 512-by

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Stuart Anderson
On Wed, Apr 16, 2008 at 02:07:53PM -0700, Richard Elling wrote: > > >>Personally, I'd estimate using du rather than ls. > >> > > > >They report the exact same number as far as I can tell. With the caveat > >that Solaris ls -s returns the number of 512-byte blocks, whereas > >GNU ls -s returns

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Joerg Schilling
Stuart Anderson <[EMAIL PROTECTED]> wrote: > They report the exact same number as far as I can tell. With the caveat > that Solaris ls -s returns the number of 512-byte blocks, whereas > GNU ls -s returns the number of 1024byte blocks by default. IIRC, this may be controlled by environment variab

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Richard Elling
Stuart Anderson wrote: > On Wed, Apr 16, 2008 at 10:09:00AM -0700, Richard Elling wrote: > >> Stuart Anderson wrote: >> >>> On Tue, Apr 15, 2008 at 03:51:17PM -0700, Richard Elling wrote: >>> >>> UTSL. compressratio is the ratio of uncompressed bytes to compressed bytes

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Stuart Anderson
On Wed, Apr 16, 2008 at 10:09:00AM -0700, Richard Elling wrote: > Stuart Anderson wrote: > >On Tue, Apr 15, 2008 at 03:51:17PM -0700, Richard Elling wrote: > > > >>UTSL. compressratio is the ratio of uncompressed bytes to compressed > >>bytes. > >>http://cvs.opensolaris.org/source/search?q=ZFS_

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Richard Elling
Stuart Anderson wrote: > On Tue, Apr 15, 2008 at 03:51:17PM -0700, Richard Elling wrote: > >> UTSL. compressratio is the ratio of uncompressed bytes to compressed bytes. >> http://cvs.opensolaris.org/source/search?q=ZFS_PROP_COMPRESSRATIO&defs=&refs=&path=zfs&hist=&project=%2Fonnv >> >> IMHO, y

Re: [zfs-discuss] Confused by compressratio

2008-04-16 Thread Robert Milkowski
Hello Luke, Tuesday, April 15, 2008, 4:50:17 PM, you wrote: LS> You can fill up an ext3 filesystem with the following command: LS> dd if=/dev/zero of=delme.dat LS> You can't really fill up a ZFS filesystme that way. I guess you could, LS> but I've never had the patience -- when several GB wo

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Stuart Anderson
On Tue, Apr 15, 2008 at 03:51:17PM -0700, Richard Elling wrote: > UTSL. compressratio is the ratio of uncompressed bytes to compressed bytes. > http://cvs.opensolaris.org/source/search?q=ZFS_PROP_COMPRESSRATIO&defs=&refs=&path=zfs&hist=&project=%2Fonnv > > IMHO, you will (almost) never get the sa

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Richard Elling
UTSL. compressratio is the ratio of uncompressed bytes to compressed bytes. http://cvs.opensolaris.org/source/search?q=ZFS_PROP_COMPRESSRATIO&defs=&refs=&path=zfs&hist=&project=%2Fonnv IMHO, you will (almost) never get the same number looking at bytes as you get from counting blocks. -- richard

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Stuart Anderson
On Tue, Apr 15, 2008 at 01:37:43PM -0400, Luke Scharf wrote: > > >>>zfs list /export/compress > >>> > >>> > >>NAME USED AVAIL REFER MOUNTPOINT > >>export-cit/compress 90.4M 1.17T 90.4M /export/compress > >> > >>is 2GB/90.4M = 2048 / 90.4 = 22.65 > >> > >> > >>That

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Luke Scharf
>>> zfs list /export/compress >>> >>> >> NAME USED AVAIL REFER MOUNTPOINT >> export-cit/compress 90.4M 1.17T 90.4M /export/compress >> >> is 2GB/90.4M = 2048 / 90.4 = 22.65 >> >> >> That still leaves me puzzled what the precise definition of compressratio is? >>

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Bob Friesenhahn
On Tue, 15 Apr 2008, Luke Scharf wrote: > > AFAIK, ext3 supports sparse files just like it should -- but it doesn't > dynamically figure out what to write based on the contents of the file. Since zfs inspects all data anyway in order to compute the block checksum, it can easily know if a block is

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Luke Scharf
? > > > -Original Message- > From: Stuart Anderson <[EMAIL PROTECTED]> > > Date: Mon, 14 Apr 2008 15:45:03 > To:Luke Scharf <[EMAIL PROTECTED]> > Cc:zfs-discuss@opensolaris.org > Subject: Re: [zfs-discuss] Confused by compressratio > > > On Mon

Re: [zfs-discuss] Confused by compressratio

2008-04-15 Thread Jeremy F.
ct: Re: [zfs-discuss] Confused by compressratio On Mon, Apr 14, 2008 at 05:22:03PM -0400, Luke Scharf wrote: > Stuart Anderson wrote: > >On Mon, Apr 14, 2008 at 09:59:48AM -0400, Luke Scharf wrote: > > > >>Stuart Anderson wrote: > >> > >>>As an artific

Re: [zfs-discuss] Confused by compressratio

2008-04-14 Thread Stuart Anderson
On Mon, Apr 14, 2008 at 05:22:03PM -0400, Luke Scharf wrote: > Stuart Anderson wrote: > >On Mon, Apr 14, 2008 at 09:59:48AM -0400, Luke Scharf wrote: > > > >>Stuart Anderson wrote: > >> > >>>As an artificial test, I created a filesystem with compression enabled > >>>and ran "mkfile 1g" and th

Re: [zfs-discuss] Confused by compressratio

2008-04-14 Thread Luke Scharf
Stuart Anderson wrote: > On Mon, Apr 14, 2008 at 09:59:48AM -0400, Luke Scharf wrote: > >> Stuart Anderson wrote: >> >>> As an artificial test, I created a filesystem with compression enabled >>> and ran "mkfile 1g" and the reported compressratio for that filesystem >>> is 1.00x even though

Re: [zfs-discuss] Confused by compressratio

2008-04-14 Thread Stuart Anderson
On Mon, Apr 14, 2008 at 09:59:48AM -0400, Luke Scharf wrote: > Stuart Anderson wrote: > >As an artificial test, I created a filesystem with compression enabled > >and ran "mkfile 1g" and the reported compressratio for that filesystem > >is 1.00x even though this 1GB file only uses only 1kB. > > >

Re: [zfs-discuss] Confused by compressratio

2008-04-14 Thread Luke Scharf
Stuart Anderson wrote: > As an artificial test, I created a filesystem with compression enabled > and ran "mkfile 1g" and the reported compressratio for that filesystem > is 1.00x even though this 1GB file only uses only 1kB. > ZFS seems to treat files filled with zeroes as sparse files, regard

[zfs-discuss] Confused by compressratio

2008-04-11 Thread Stuart Anderson
I am confused by the numerical value of compressratio. I copied a compressed ZFS filesystem that is 38.5G in size (zfs list USED and REFER value) and reports a compressratio value of "2.52x" to an uncompressed ZFS filesystem and it expanded to 198G. So why is the compressratio 2.52 rather than 198/