On 28 Oct 2012 12:27 -0600, from li...@colorremedies.com (Chris Murphy): > I think we're all trained to see file size as absolute, even when > the file is in effect duplicated. I think it's possible we need to > be retrained to look at this from a storage point of view. The > storage "pool" is 200GB in size, and data allocation is 2x in raid1. > I find new users intuit this, rather than thinking the file size is > no different, there in a sense no second copy, but the file system > is half the size. With conventional raid, this logic sorta works > because the raid isn't a file system, so the filesystem really > wasn't twice the size. But in btrfs it is. Same for ZFS for that > matter.
This makes a valid point. And there's another issue potentially at play: file system level compression, _which btrfs already supports_. Say you store a highly compressible file (a web server access log, perhaps) on a compressed volume that is set up with RAID 1 across a set of physical drives. You know the pool size, and you know the data allocation ratio. What you _don't_ know and can't predict is the _compression_ ratio for any new data, which means that you still can't calculate how much more payload data can be added to the file before you run out of storage space. You _can_ calculate a worst case scenario figure (no compression possible on the new payload data), but that's about it. _However_, while thinking in terms of storage pool sizes, allocation ratios and so forth might work for technically inclined people, I'm not so sure it'll work for ordinary users. But then again: * How many ordinary users are going to use multi-device file systems in the first place? Most ordinary users I know have only a single internal disk for primary storage. Even the tiny subset of those who use Linux aren't magically going to add several disks to their PCs to create a storage pool encompassing multiple physical devices just because the file system supports it. * "btrfs" _is_ the file system administration tool. In a way, it makes sense that the data provided by it will be geared more toward technically minded people. -- Michael Kjörling • http://michael.kjorling.se • mich...@kjorling.se “People who think they know everything really annoy those of us who know we don’t.” (Bjarne Stroustrup) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html