Re: Feature requests: online backup - defrag - change RAID level

2019-09-18 Thread Zygo Blaxell
On Wed, Sep 18, 2019 at 12:37:42AM -0400, General Zed wrote: > It just postpones the inevitable, but you missed the point. The point of > shutting down dedupe is to avoid nasty bugs caused by dedupe-defrag > interaction. They are the same bugs you'll have to fix anyway. Dedupe isn't particularly

Re: Feature requests: online backup - defrag - change RAID level

2019-09-17 Thread General Zed
Quoting Zygo Blaxell : On Tue, Sep 17, 2019 at 06:07:24AM -0400, General Zed wrote: Quoting Zygo Blaxell : > I doubt that on a 50TB filesystem you need to read the whole tree...are > you going to globally optimize 50TB at once? That will take a while. I need to read the whole free-space tr

Re: Feature requests: online backup - defrag - change RAID level

2019-09-17 Thread Zygo Blaxell
On Tue, Sep 17, 2019 at 06:07:24AM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > I doubt that on a 50TB filesystem you need to read the whole tree...are > > you going to globally optimize 50TB at once? That will take a while. > > I need to read the whole free-space tree to find a few

Re: Feature requests: online backup - defrag - change RAID level

2019-09-17 Thread General Zed
Quoting Zygo Blaxell : On Mon, Sep 16, 2019 at 10:30:39PM -0400, General Zed wrote: Quoting Zygo Blaxell : > and I think that's impossible so I start from designs > that make forward progress with a fixed allocation of resources. Well, that's not useless, but it's kind of meh. Waste of time.

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Mon, Sep 16, 2019 at 10:30:39PM -0400, General Zed wrote: > Quoting Zygo Blaxell : > > and I think that's impossible so I start from designs > > that make forward progress with a fixed allocation of resources. > > Well, that's not useless, but it's kind of meh. Waste of time. Solve the > proble

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Mon, Sep 16, 2019 at 07:44:31PM -0600, Chris Murphy wrote: > Reflinks are like a file based snapshot, they're a file with its own > inode and other metadata you expect for a file, but points to the same > extents as another file. Off hand I'm not sure other than age if > there's any difference b

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Mon, Sep 16, 2019 at 09:03:17PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > Reflinks are the forward references--there is no other kind of forward > > reference in btrfs (contrast with other filesystems which use one data > > structure for single references and another for multiple

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting General Zed : Quoting Zygo Blaxell : On Sun, Sep 15, 2019 at 01:54:07PM -0400, General Zed wrote: Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting Zygo Blaxell : On Sun, Sep 15, 2019 at 01:54:07PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > > > > > Quo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting Zygo Blaxell : On Mon, Sep 16, 2019 at 07:42:51AM -0400, General Zed wrote: Quoting Zygo Blaxell : > Your defrag ideas are interesting, but you should spend a lot more > time learning the btrfs fundamentals before continuing. Right now > you do not understand what btrfs is capable o

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Chris Murphy
On Mon, Sep 16, 2019 at 7:03 PM General Zed wrote: > > Ok, so a reflink contains a virtual address. Did I get that right? > > All extent ref items are reflinks which contain a 4 KB aligned address > because the extents have that same alignment. Did I get that right? > > Virtual addresses are 8-byt

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting General Zed : Quoting Zygo Blaxell : On Sun, Sep 15, 2019 at 01:54:07PM -0400, General Zed wrote: Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting Zygo Blaxell : On Sun, Sep 15, 2019 at 01:54:07PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > > > > > Quo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Mon, Sep 16, 2019 at 07:42:51AM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > Your defrag ideas are interesting, but you should spend a lot more > > time learning the btrfs fundamentals before continuing. Right now > > you do not understand what btrfs is capable of doing easily, and

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Sun, Sep 15, 2019 at 02:05:47PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > 3% of 45TB is 1.35TB...seems a little harsh. Recall no extent can be > > larger than 128MB, so we're talking about enough space for ten thousand > > of defrag's worst-case output extents. A limit based on

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread Zygo Blaxell
On Sun, Sep 15, 2019 at 01:54:07PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > > > > > Quoting Zygo Blaxell : > > > > > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > > > > > > > Quoting Zy

Re: Feature requests: online backup - defrag - change RAID level

2019-09-16 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 05:23:21PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Wed, Sep 11, 2019 at 07:21:31PM -0400, webmas...@zedlx.com wrote: > > > > Quoting Zygo Blaxell : [...etc...] > > > On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com

Re: Feature requests: online backup - defrag - change RAID level

2019-09-15 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 09:28:49PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Fri, Sep 13, 2019 at 05:25:20AM -0400, General Zed wrote: > > > > Quoting General Zed : > > > > > Quoting Zygo Blaxell : > > > > > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, Ge

Re: Feature requests: online backup - defrag - change RAID level

2019-09-15 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > > > > > Quo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-14 Thread Zygo Blaxell
On Sat, Sep 14, 2019 at 12:29:09PM -0600, Chris Murphy wrote: > On Fri, Sep 13, 2019 at 5:04 AM Austin S. Hemmelgarn > wrote: > > > > Do you have a source for this claim of a 128MB max extent size? Because > > everything I've seen indicates the max extent size is a full data chunk > > (so 1GB for

Re: Feature requests: online backup - defrag - change RAID level

2019-09-14 Thread Chris Murphy
On Fri, Sep 13, 2019 at 5:04 AM Austin S. Hemmelgarn wrote: > > Do you have a source for this claim of a 128MB max extent size? Because > everything I've seen indicates the max extent size is a full data chunk > (so 1GB for the common case, potentially up to about 5GB for really big > filesystems

Re: Feature requests: online backup - defrag - change RAID level

2019-09-14 Thread Jukka Larja
General Zed kirjoitti 13.9.2019 klo 22.40: I think everyone here can see that I am versed in programming, and very proficient in solving the high-level issues. No. I certainly can't. Doesn't matter how good a programmer you are. No-one's good enough to get anywhere near my code base with the

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Sat, Sep 14, 2019 at 12:42:19AM -0400, Zygo Blaxell wrote: > On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > > > > > Quoting Zygo Blaxell : > > > > > > > > > On Thu, Sep

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Fri, Sep 13, 2019 at 09:50:38PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > > > > > Quoting Zygo Blaxell : > > > > > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > > > > > > > Quoting Zy

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Fri, Sep 13, 2019 at 09:28:49PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Fri, Sep 13, 2019 at 05:25:20AM -0400, General Zed wrote: > > > > > > Quoting General Zed : > > > > > > > Quoting Zygo Blaxell : > > > > > > > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Z

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Thu, Sep 12, 2019 at 05:23:21PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Wed, Sep 11, 2019 at 07:21:31PM -0400, webmas...@zedlx.com wrote: > > > > > > Quoting Zygo Blaxell : [...etc...] > > > > On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com wrote: > > It's

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > Don't forget you have to write new checksum and free space tree pages. > > > In

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > Quoting Zygo Blaxell : > > > > > Don't forget you have to write new checksum and free space tree pages. > > > In

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 05:25:20AM -0400, General Zed wrote: Quoting General Zed : > Quoting Zygo Blaxell : > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > > > Quoting Zygo Blaxell : > > > > > > > On Thu, Sep 12, 2019 at 06:57:26PM -0400, Ge

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Fri, Sep 13, 2019 at 05:25:20AM -0400, General Zed wrote: > > Quoting General Zed : > > > Quoting Zygo Blaxell : > > > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > > > > > Quoting Zygo Blaxell : > > > > > > > > > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Fri, Sep 13, 2019 at 01:05:52AM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > > > > > Quoting Zygo Blaxell : > > > > > > > Don't forget you have to write new checksum and free space tree pages. > > > > In the worst

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting Zygo Blaxell : On Fri, Sep 13, 2019 at 07:04:28AM -0400, Austin S. Hemmelgarn wrote: On 2019-09-12 19:54, Zygo Blaxell wrote: > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > > > Quoting Chris Murphy : > > > > > On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote:

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Zygo Blaxell
On Fri, Sep 13, 2019 at 07:04:28AM -0400, Austin S. Hemmelgarn wrote: > On 2019-09-12 19:54, Zygo Blaxell wrote: > > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > > > > > Quoting Chris Murphy : > > > > > > > On Thu, Sep 12, 2019 at 3:34 PM General Zed > > > > wrote: > > > > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting "Austin S. Hemmelgarn" : On 2019-09-13 12:54, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 18:21, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, w

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Austin S. Hemmelgarn
On 2019-09-13 12:54, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 18:21, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting General Zed : Quoting "Austin S. Hemmelgarn" : On 2019-09-12 18:57, General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 1:18 PM wrote: It is normal and common for defrag operation to

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting "Austin S. Hemmelgarn" : On 2019-09-12 18:57, General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 1:18 PM wrote: It is normal and common for defrag operation to use some disk space whil

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting General Zed : Quoting General Zed : Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: At worst, it just has to completely write-out "all metadata", all the

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting "Austin S. Hemmelgarn" : On 2019-09-12 18:21, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Austin S. Hemmelgarn
On 2019-09-12 18:21, General Zed wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Q

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Austin S. Hemmelgarn
On 2019-09-12 18:57, General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: Quoting Chris Murphy : > On Thu, Sep 12, 2019 at 1:18 PM wrote: >> >> It is normal and common for defrag operation to use some disk space >> while it is running. I estimate t

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread Austin S. Hemmelgarn
On 2019-09-12 19:54, Zygo Blaxell wrote: On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: Quoting Chris Murphy : On Thu, Sep 12, 2019 at 1:18 PM wrote: It is normal and common for defrag operation t

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting General Zed : Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > At worst, it just has to completely write-out "all metadata", all the way up > to the super

Re: Feature requests: online backup - defrag - change RAID level

2019-09-13 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > > > Quoting Chris Murphy : > > > > > On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: > > > > > > > > > > > > Q

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > > > At worst, it just has to completely write-out "all metadata", all the way up > > to the super. It needs to be

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : You mean: all metadata size is 156 GB on one of your systems. However, you don't typically have to put ALL metadata in RAM. You need just some parts needed for defrag operation. So, fo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : You mean: all metadata size is 156 GB on one of your systems. However, you don't typically have to put ALL metadata in RAM. You need just some parts needed for defrag operation. So, fo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: Quoting Zygo Blaxell : > Don't forget you have to write new checksum and free space tree pages. > In the worst case, you'll need about 1GB of new metadata pages for each > 128MB you defrag (though you get to

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Zygo Blaxell
On Thu, Sep 12, 2019 at 08:26:04PM -0400, General Zed wrote: > > Quoting Zygo Blaxell : > > > On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > > > > > Quoting Chris Murphy : > > > > > > > On Thu, Sep 12, 2019 at 3:34 PM General Zed > > > > wrote: > > > > > > > > > > > > > > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Wed, Sep 11, 2019 at 04:01:01PM -0400, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : > Not necessarily. Even ignoring the case of data deduplication (which > needs to be considered if you care at all about enterprise usage, and is > part of the who

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: Quoting Chris Murphy : > On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: > > > > > > Quoting Chris Murphy : > > > > > On Thu, Sep 12, 2019 at 1:18 PM wrote: > > >> > > >> It is normal and common for def

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Zygo Blaxell
On Thu, Sep 12, 2019 at 06:57:26PM -0400, General Zed wrote: > > Quoting Chris Murphy : > > > On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: > > > > > > > > > Quoting Chris Murphy : > > > > > > > On Thu, Sep 12, 2019 at 1:18 PM wrote: > > > >> > > > >> It is normal and common for defrag

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Chris Murphy : On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: Quoting Chris Murphy : > On Thu, Sep 12, 2019 at 1:18 PM wrote: >> >> It is normal and common for defrag operation to use some disk space >> while it is running. I estimate that a reasonable limit would be to >> us

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 201

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Zygo Blaxell : On Wed, Sep 11, 2019 at 07:21:31PM -0400, webmas...@zedlx.com wrote: Quoting Zygo Blaxell : > On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com wrote: > > > > Quoting "Austin S. Hemmelgarn" : > > > > > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Chris Murphy
On Thu, Sep 12, 2019 at 3:34 PM General Zed wrote: > > > Quoting Chris Murphy : > > > On Thu, Sep 12, 2019 at 1:18 PM wrote: > >> > >> It is normal and common for defrag operation to use some disk space > >> while it is running. I estimate that a reasonable limit would be to > >> use up to 1% of

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting "Austin S. Hemmelgarn" : On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 201

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread General Zed
Quoting Chris Murphy : On Thu, Sep 12, 2019 at 1:18 PM wrote: It is normal and common for defrag operation to use some disk space while it is running. I estimate that a reasonable limit would be to use up to 1% of total partition size. So, if a partition size is 100 GB, the defrag can use 1

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Austin S. Hemmelgarn
On 2019-09-12 15:18, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wr

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Chris Murphy
On Thu, Sep 12, 2019 at 1:18 PM wrote: > > It is normal and common for defrag operation to use some disk space > while it is running. I estimate that a reasonable limit would be to > use up to 1% of total partition size. So, if a partition size is 100 > GB, the defrag can use 1 GB. Lets call this

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread webmaster
Quoting "Austin S. Hemmelgarn" : On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : Given

Re: Feature requests: online backup - defrag - change RAID level

2019-09-12 Thread Austin S. Hemmelgarn
On 2019-09-11 17:37, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : Given this, defrag isn't willfully unshari

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Zygo Blaxell
On Wed, Sep 11, 2019 at 07:21:31PM -0400, webmas...@zedlx.com wrote: > > Quoting Zygo Blaxell : > > > On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com wrote: > > > > > > Quoting "Austin S. Hemmelgarn" : > > > > > > > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > > > > > > > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Remi Gauvin
On 2019-09-11 11:30 p.m., Remi Gauvin wrote: > > This statement makes me wonder if you really belong on a Linux > Development list. > > This is why I should avoid getting into debates,, ha.. ext4 does now have defrag.. sorry :) signature.asc Description: OpenPGP digital signature

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Remi Gauvin
On 2019-09-11 11:05 p.m., webmas...@zedlx.com wrote: > > Close, but essentially: yes. I'm implying that snapshots induce future > fragmentation. The mere act of snapshoting won't create fragments > immediately, but if there are any future writes to previously snapshoted > files, those writes are

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread webmaster
Quoting Remi Gauvin : On 2019-09-11 7:21 p.m., webmas...@zedlx.com wrote: For example, lets examine the typical home user. If he is using btrfs, it means he probably wants snapshots of his data. And, after a few snapshots, his data is fragmented, and the current defrag can't help because it

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Remi Gauvin
On 2019-09-11 7:21 p.m., webmas...@zedlx.com wrote: > > For example, lets examine the typical home user. If he is using btrfs, > it means he probably wants snapshots of his data. And, after a few > snapshots, his data is fragmented, and the current defrag can't help > because it does a terrible

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread webmaster
Quoting Zygo Blaxell : On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > > > Quoting "Austin S. Hemmelgarn" : > > > > > > === I CHALLENGE you and anyone else on this mailing list: ===

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Zygo Blaxell
On Wed, Sep 11, 2019 at 04:01:01PM -0400, webmas...@zedlx.com wrote: > > Quoting "Austin S. Hemmelgarn" : > > > On 2019-09-11 13:20, webmas...@zedlx.com wrote: > > > > > > Quoting "Austin S. Hemmelgarn" : > > > > > > > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > > > > > > > > > Quoting

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread webmaster
Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : Given this, defrag isn't willfully unsharing anything, it's just a side-effect of how it

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Zygo Blaxell
On Wed, Sep 11, 2019 at 01:20:53PM -0400, webmas...@zedlx.com wrote: > > Quoting "Austin S. Hemmelgarn" : > > > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > > > > > Quoting "Austin S. Hemmelgarn" : > > > > > > > > > > === I CHALLENGE you and anyone else on this mailing list: === > > >

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread webmaster
Quoting "Austin S. Hemmelgarn" : On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : === I CHALLENGE you and anyone else on this mailing list: ===  - Show me an exaple wher

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Austin S. Hemmelgarn
On 2019-09-11 13:20, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : === I CHALLENGE you and anyone else on this mailing list: ===  - Show me an exaple where splitting an extent requires unshar

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread webmaster
Quoting "Austin S. Hemmelgarn" : On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : === I CHALLENGE you and anyone else on this mailing list: ===  - Show me an exaple where splitting an extent requires unsharing, and this split is needed to defrag. Mak

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Zygo Blaxell
On Wed, Sep 11, 2019 at 08:02:40AM -0400, Austin S. Hemmelgarn wrote: > On 2019-09-10 19:32, webmas...@zedlx.com wrote: > > > > Quoting "Austin S. Hemmelgarn" : > > > > > > > > Defrag may break up extents. Defrag may fuse extents. But it > > > > shouln't ever unshare extents. > > > > > Actually

Re: Feature requests: online backup - defrag - change RAID level

2019-09-11 Thread Austin S. Hemmelgarn
On 2019-09-10 19:32, webmas...@zedlx.com wrote: Quoting "Austin S. Hemmelgarn" : Defrag may break up extents. Defrag may fuse extents. But it shouln't ever unshare extents. Actually, spitting or merging extents will unshare them in a large majority of cases. Ok, this point seems to be re

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread Nikolay Borisov
On 11.09.19 г. 1:35 ч., webmas...@zedlx.com wrote: > > Quoting Nikolay Borisov : > > You're exactly in the pitfall of btrfs backref walk. For btrfs, it's definitely not an easy work to do backref walk. btrfs uses hidden backref, that means, under most case, one extent

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting myself webmas...@zedlx.com: B) "sharing-defrag" a file is share-defragmented if ALL of the following are met: 1) all extents are written on disk in neighbouring sectors in the ascending order 2) all pairs of *adjanced* extents meet AT LEAST ONE of the following criteria

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
I made a small mistake, in 2) replace the word "ONE" with "AT LEAST ONE" B) "sharing-defrag" a file is share-defragmented if ALL of the following are met: 1) all extents are written on disk in neighbouring sectors in the ascending order 2) all pairs of *adjanced* extents meet AT LEAST

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting Qu Wenruo : - Introduce different levels for defrag Allow btrfs to do some calculation and space usage policy to determine if it's a good idea to defrag some shared extents. E.g. my extreme case, unshare the extent would make it possible to defrag the other subvolume to free a

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting "Austin S. Hemmelgarn" : Also, I don't quite understand what the poster means by "the snapshot duplication of defrag only affects the fragmented portions". Possibly it means approximately: if a file wasn't modified in the current (latest) subvolume, it doesn't need to be unshare

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting "Austin S. Hemmelgarn" : Defrag may break up extents. Defrag may fuse extents. But it shouln't ever unshare extents. Actually, spitting or merging extents will unshare them in a large majority of cases. Ok, this point seems to be repeated over and over without any proof, and

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting Qu Wenruo : So here what we could do is: (From easy to hard) - Introduce an interface to allow defrag not to touch shared extents   it shouldn't be that difficult compared to other work we are going   to do.   At least, user has their choice. That defrag wouldn't acomplish much. You

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting webmas...@zedlx.com: Quoting Qu Wenruo : On 2019/9/10 上午9:24, webmas...@zedlx.com wrote: Quoting Qu Wenruo : Btrfs defrag works by creating new extents containing the old data. So if btrfs decides to defrag, no old extents will be used. It will all be new extents. That's why yo

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting Andrei Borzenkov : 09.09.2019 20:11, webmas...@zedlx.com пишет: ... Forgot to mention this part. If your primary objective is to migrate your data to another device online (mounted, without unmount any of the fs). This is not the primary objective. The primary objective is to prod

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread webmaster
Quoting Nikolay Borisov : You're exactly in the pitfall of btrfs backref walk. For btrfs, it's definitely not an easy work to do backref walk. btrfs uses hidden backref, that means, under most case, one extent shared by 1000 snapshots, in extent tree (shows the backref) it can completely be

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread Austin S. Hemmelgarn
On 2019-09-09 15:26, webmas...@zedlx.com wrote: This post is a reply to Remi Gauvin's post, but the email got lost so I can't reply to him directly. Remi Gauvin wrote on 2019-09-09 17:24 : On 2019-09-09 11:29 a.m., Graham Cobb wrote:  and does anyone really care about defrag any more?).

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread Andrei Borzenkov
09.09.2019 20:11, webmas...@zedlx.com пишет: ... >> >> Forgot to mention this part. >> >> If your primary objective is to migrate your data to another device >> online (mounted, without unmount any of the fs). > > This is not the primary objective. The primary objective is to produce a > full, onl

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread Nikolay Borisov
On 10.09.19 г. 6:32 ч., webmas...@zedlx.com wrote: > > Quoting Qu Wenruo : > >> On 2019/9/10 上午9:24, webmas...@zedlx.com wrote: >>> >>> Quoting Qu Wenruo : >>> >> Btrfs defrag works by creating new extents containing the old data. >> >> So if btrfs decides to defrag, no old extents

Re: Feature requests: online backup - defrag - change RAID level

2019-09-10 Thread Austin S. Hemmelgarn
On 2019-09-09 07:25, zedlr...@server53.web-hosting.com wrote: Quoting Qu Wenruo : 1) Full online backup (or copy, whatever you want to call it) btrfs backup [-f] - backups a btrfs filesystem given by to a partition (with all subvolumes). Why not just btrfs send? Or you want to keep the w

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread webmaster
Quoting Qu Wenruo : On 2019/9/10 上午9:24, webmas...@zedlx.com wrote: Quoting Qu Wenruo : Btrfs defrag works by creating new extents containing the old data. So if btrfs decides to defrag, no old extents will be used. It will all be new extents. That's why your proposal is freaking strange

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Qu Wenruo
On 2019/9/10 上午9:24, webmas...@zedlx.com wrote: > > Quoting Qu Wenruo : > Btrfs defrag works by creating new extents containing the old data. So if btrfs decides to defrag, no old extents will be used. It will all be new extents. That's why your proposal is freakin

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread webmaster
Quoting Qu Wenruo : Btrfs defrag works by creating new extents containing the old data. So if btrfs decides to defrag, no old extents will be used. It will all be new extents. That's why your proposal is freaking strange here. Ok, but: can the NEW extents still be shared? Can only be sha

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Qu Wenruo
On 2019/9/10 上午8:00, Chris Murphy wrote: > On Mon, Sep 9, 2019 at 5:44 PM Qu Wenruo wrote: >> >> >> >> On 2019/9/10 上午12:38, webmas...@zedlx.com wrote: >>> Yes, it is true, but what you are posting so far are all 'red >>> herring'-type arguments. It's just some irrelevant concerns, and you >>> j

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Qu Wenruo
On 2019/9/10 上午8:06, webmas...@zedlx.com wrote: > > Quoting Qu Wenruo : > >> On 2019/9/10 上午12:38, webmas...@zedlx.com wrote: >>> >>> Quoting Qu Wenruo : >>> >>> 2) Sensible defrag >>> The defrag is currently a joke. > > Maybe there are such cases, but I would say that a vast ma

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread webmaster
Quoting Qu Wenruo : On 2019/9/10 上午12:38, webmas...@zedlx.com wrote: Quoting Qu Wenruo : 2) Sensible defrag The defrag is currently a joke. Maybe there are such cases, but I would say that a vast majority of users (99,99%) in a vast majority of cases (99,99%) don't want the defrag operat

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Chris Murphy
On Mon, Sep 9, 2019 at 5:44 PM Qu Wenruo wrote: > > > > On 2019/9/10 上午12:38, webmas...@zedlx.com wrote: > > Yes, it is true, but what you are posting so far are all 'red > > herring'-type arguments. It's just some irrelevant concerns, and you > > just got me explaining thinks like I would to a li

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Qu Wenruo
On 2019/9/10 上午12:38, webmas...@zedlx.com wrote: > > Quoting Qu Wenruo : > > 2) Sensible defrag > The defrag is currently a joke. >>> >>> Maybe there are such cases, but I would say that a vast majority of >>> users (99,99%) in a vast majority of cases (99,99%) don't want the >>> defrag

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread webmaster
Quoting Graham Cobb : On 09/09/2019 13:18, Qu Wenruo wrote: On 2019/9/9 下午7:25, zedlr...@server53.web-hosting.com wrote: What I am complaining about is that at one point in time, after issuing the command: btrfs balance start -dconvert=single -mconvert=single and before issuing the 'bt

Re: Feature requests: online backup - defrag - change RAID level

2019-09-09 Thread Qu Wenruo
On 2019/9/9 下午11:29, Graham Cobb wrote: > On 09/09/2019 13:18, Qu Wenruo wrote: >> >> >> On 2019/9/9 下午7:25, zedlr...@server53.web-hosting.com wrote: >>> What I am complaining about is that at one point in time, after issuing >>> the command: >>> btrfs balance start -dconvert=single -mconvert

  1   2   >