Re: Stupid (?) Idea about extent lifetimes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert White posted on Tue, 15 Mar 2016 23:32:05 -0700 as excerpted:

> It occurs to me that it would be desirable to mark extents as "least
> favoured nations" and so all new writes would like to not be written
> there and any data written there would have a desire to be somewhere
> else.

I believe the word you wanted here instead of extents is "chunks".

Extents are parts of files, and btrfs is a COW (copy on write) 
filesystem, so writes modifying existing files already move out of the 
existing file extents.

But chunks, in btrfs context at least, are relatively large, nominally 1 
GiB for data, 256 MiB for metadata (tho sizes can be larger on really 
large filesystems or smaller on real small ones), "chunks", that the 
filesystem allocates first as empty, and lets files (or metadata nodes) 
fill.  It's these chunks that balance rewrites, and thus these chunks 
that would logically get your numeric "gravity" ratings.

With that change, it's an interesting concept.  I'm not a dev and can't 
really guess if it's entirely practical to implement or not, but as a 
btrfs user and admin, I can certainly see practical uses, should it /be/ 
implemented.

Very creative concept and definitely worth discussion.  Thanks for 
throwing it out here /for/ discussion.  =:^)

Tho one caution.  There's a lot more worthwhile ideas about what /could/ 
be done with btrfs than developers and developer time to implement them 
all, at least in anything like a reasonable time frame of say five years 
or less.  So even if it's a pretty good idea, unless it happens to be 
practically usable to help implement some other project the devs are 
working on, simply because there's so many other pretty good ideas, it 
might take quite some time (over five years) to actually be implemented.  
So don't get your hopes up for anything too immediate, or even 
intermediate term (2-5 years out), unless you get extremely lucky and the 
devs see it as a way to implement something they already are working on 
or that's already a high priority "next" item on their roadmap.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux