Thread (14 messages) 14 messages, 5 authors, 2018-03-05

Re: btrfs space used issue

From: Duncan <hidden>
Date: 2018-03-03 07:01:46

vinayak hegde posted on Thu, 01 Mar 2018 14:56:46 +0530 as excerpted:
This will happen over and over again until we have completely
overwritten the original extent, at which point your space usage will go
back down to ~302g.We split big extents with cow, so unless you've got
lots of space to spare or are going to use nodatacow you should probably
not pre-allocate virt images
Indeed.  Preallocation with COW doesn't make the sense it does on an 
overwrite-in-place filesystem.  Either nocow it and take the penalties 
that brings[1], or configure your app not to preallocate in the first 
place[2].

---
[1] On btrfs, nocow implies no checksumming or transparent compression, 
either.  Also, the nocow attribute needs to be set on the empty file, 
with the easiest way to do that being to set it on the parent directory 
before file creation, so it's inherited by any newly created files/
subdirs within it.

[2] Many apps that preallocate by default have an option to turn 
preallocation off.

-- 
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help