linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running compsize utility on btrfs compress mount point
@ 2017-09-22  6:31 shally verma
  2017-09-22  7:33 ` Duncan
  0 siblings, 1 reply; 2+ messages in thread
From: shally verma @ 2017-09-22  6:31 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Verma, Shally

Hi

This email is in context of another thread initiated by me (with
Subject: using fio to test btrfs compression).

Just as brief background, I am trying to verify btrfs compression
where I am writing data using
fio, dd or cp command.

In response to my question in another thread:
> Is there any command that i can run to confirm file has been compressed?

I've gotten response from Duncan:
>>There is the quite recently posted (and actively updated since then)
>>compsize command.

>>https://github.com/kilobyte/compsize

On running compsize on btrfs mount point created, I get following:

Type       Perc     Disk Usage   Uncompressed Referenced
Data        50%      128K         256K         256K
zlib          50%      128K         256K         256K
Data       100%       10G          10G          10G
none       100%       10G          10G          10G

but then how do I interpret above information?
if I go by each line, then Does ..

1st entry means
Data        50%      128K         256K         256K
 - It is just raw uncompressed data but occupying only 50% of disk
space w.r.t its size (may be because of its CoW or deduplication?)

zlib          50%      128K         256K         256K
- This is zlib compressed data occupying 50% of disk usage ?

Data       100%       10G          10G          10G
- This is uncompressed data with no compression/cow/deduplication
occupying 100% of disk of its size?

none       100%       10G          10G          10G
- Did not understand how to interpret none entry here.. any help?

Thanks
Shally

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-22  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22  6:31 Running compsize utility on btrfs compress mount point shally verma
2017-09-22  7:33 ` Duncan

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).