All of lore.kernel.org
 help / color / mirror / Atom feed
* FileSystem level compression support.
@ 2008-06-11 11:13 Miguel Sousa Filipe
  2008-06-11 13:42 ` Ric Wheeler
  2008-06-11 14:20 ` Chris Mason
  0 siblings, 2 replies; 3+ messages in thread
From: Miguel Sousa Filipe @ 2008-06-11 11:13 UTC (permalink / raw)
  To: linux-btrfs

Hi there,

Providing compression and/or encryption at the file system layer has
proven to be contentious and polemic, at least in the linux kernel
world.

However, I would like to probe you guys (specially Chis Mason) about
your thoughts on the issue.
I have seen quite a few benchs were compression provides better
performance, since it reduces the amount of IO.
It seems to be a cpu/io trade-off. And given that cpu power is more
easily accessible than fast IO.. it is starting to look a good idea
that should be more deeply explored.

Is compression for data on BTRFS a feature that is:
- completely out of the table - it will not happen at the BTRFS layer
- considered, but no efforts on developing this feature are planed.
- considered, and design decisions are contemplating it.. but no code
yet.. not this soon. (not for 1.0)


Kind regards!

-- 
Miguel Sousa Filipe

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

* Re: FileSystem level compression support.
  2008-06-11 11:13 FileSystem level compression support Miguel Sousa Filipe
@ 2008-06-11 13:42 ` Ric Wheeler
  2008-06-11 14:20 ` Chris Mason
  1 sibling, 0 replies; 3+ messages in thread
From: Ric Wheeler @ 2008-06-11 13:42 UTC (permalink / raw)
  To: Miguel Sousa Filipe; +Cc: linux-btrfs

Miguel Sousa Filipe wrote:
> Hi there,
>
> Providing compression and/or encryption at the file system layer has
> proven to be contentious and polemic, at least in the linux kernel
> world.
>
> However, I would like to probe you guys (specially Chis Mason) about
> your thoughts on the issue.
> I have seen quite a few benchs were compression provides better
> performance, since it reduces the amount of IO.
> It seems to be a cpu/io trade-off. And given that cpu power is more
> easily accessible than fast IO.. it is starting to look a good idea
> that should be more deeply explored.
>
> Is compression for data on BTRFS a feature that is:
> - completely out of the table - it will not happen at the BTRFS layer
> - considered, but no efforts on developing this feature are planed.
> - considered, and design decisions are contemplating it.. but no code
> yet.. not this soon. (not for 1.0)
>
>
> Kind regards!
>
>   
One big issue with compression is that it is very workload dependent. 
For example, if you are storing lots of video, sound or image files, the 
format itself it normally already compressed so you end up doing nothing 
but burning CPU cycles ;-) Also, for very small files, compression works 
best when you bunch them up (say compress the contents of a subdirectory).

Also note that some storage devices can do compression for you beneath 
the file system or do other fancy features like block level data 
de-duplication.

ric


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

* Re: FileSystem level compression support.
  2008-06-11 11:13 FileSystem level compression support Miguel Sousa Filipe
  2008-06-11 13:42 ` Ric Wheeler
@ 2008-06-11 14:20 ` Chris Mason
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Mason @ 2008-06-11 14:20 UTC (permalink / raw)
  To: Miguel Sousa Filipe; +Cc: linux-btrfs

On Wed, 2008-06-11 at 12:13 +0100, Miguel Sousa Filipe wrote:
> Hi there,
> 
> Providing compression and/or encryption at the file system layer has
> proven to be contentious and polemic, at least in the linux kernel
> world.
> 
> However, I would like to probe you guys (specially Chis Mason) about
> your thoughts on the issue.
> I have seen quite a few benchs were compression provides better
> performance, since it reduces the amount of IO.
> It seems to be a cpu/io trade-off. And given that cpu power is more
> easily accessible than fast IO.. it is starting to look a good idea
> that should be more deeply explored.
> 
> Is compression for data on BTRFS a feature that is:
> - completely out of the table - it will not happen at the BTRFS layer
> - considered, but no efforts on developing this feature are planed.
> - considered, and design decisions are contemplating it.. but no code
> yet.. not this soon. (not for 1.0)

Compression is definitely on the table, although it probably won't be in
in until after 1.0 unless someone volunteers.

There are lots of different ways to code compression, and some are much
harder than others.  If you restrict the compression support to only
files small enough to have their data packed into the btree, things get
much much easier.

-chris



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

end of thread, other threads:[~2008-06-11 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 11:13 FileSystem level compression support Miguel Sousa Filipe
2008-06-11 13:42 ` Ric Wheeler
2008-06-11 14:20 ` Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.