Thread (2 messages) 2 messages, 2 authors, 2016-08-28

Re: Is there a performance advantage in using Btrfs subvolumes over raw (MBR/GPT) partitions on rotational disks?

From: Chris Murphy <hidden>
Date: 2016-08-28 16:23:36

On Sun, Aug 28, 2016 at 5:17 AM, Alexander Tomokhov [off-list ref] wrote:
Let's say I use a 128GiB MBR partition for OS and remaining 800GiB+ on disk serves another purpose. Then all OS files will be physically close to each other on the disk, thus reducing seek times.
If I use the whole disk for OS partition, then files will be spread across the disk and even OS-only operations will require hard drive heads to perform longer seeks.

What effect have Btrfs subvolumes in this case if I use them instead of MBR partitions?
Writes to subvolumes doesn't directly affect where on disk the data is
written, those data extents will be put into a block group by the
allocator regardless of what subvolume the data originated from.
Btrfs wiki says: "btrfs does write optimisation (sequential writes) across a filesystem", "subvolume write performance will benefit from this algorithm".
I'm pretty sure this means it's aggregating random writes such that
they end up being more like sequential writes, and is related to
delayed allocation. It may also be referring to the use of subvolumes
instead of directories for multiple write streams has better
concurrency handling and less contention.


-- 
Chris Murphy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help