Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* compression btrfs
@ 2013-03-26  4:03 lonat_front
  2013-03-26 13:14 ` Josef Bacik
  0 siblings, 1 reply; 4+ messages in thread
From: lonat_front @ 2013-03-26  4:03 UTC (permalink / raw)
  To: linux-btrfs

Hi everyone,

  I have used btrfs as a work partition with compression=zlib. The compression ratio is not satisfied to me. 

   I tracked my workloads in btrfs. The zlib module (zlib.c) seems work well: write size of each write operation in writepage function can be compressed into about 20%. 

  I suspent the workloads may impact the btrfs behavior. My workloads include really a large number of overwrite operations. 

   I briefly reviewed the code about the space reclaim in btrfs, and found the btrfs kicks the defrag off when the overwritten range is smaller than 16KB, And this is the only method of reclaiming freed extents with compression. Am I right?
   
   So my question is if btrfs can successfully reclaim the overwritten space when the cleaner thread can not be started, such as in the case that each overwrite operation is larger than 16KB? 

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

end of thread, other threads:[~2013-03-26 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26  4:03 compression btrfs lonat_front
2013-03-26 13:14 ` Josef Bacik
     [not found]   ` <57473f27.23ac0.13da786afad.Coremail.lonat_front@163.com>
2013-03-26 18:03     ` Josef Bacik
2013-03-26 18:18       ` yiletian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox