Skip to contentSkip to conversation

xfs: remove experimental tag for reflinks

PATCH In review Christoph Hellwig 6 participants 21 messages Aug 30, 2017 – Jan 8, 2018 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: remove experimental tag for reflinks

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +3 -5
index 38aaacdbb8b3..92521032468e 100644
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-
 	error = xfs_mountfs(mp);
 	if (error)
 		goto out_filestream_unmount;
Signature · 1 line
2.11.0
#1 lore raw
Quoted 13 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +0 -0
index 38aaacdbb8b3..92521032468e 100644

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1639

Quoted 7 lines
fs/xfs/xfs_super.c +3 -1
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;

/This/ hunk seems fine, but...

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1654

Quoted 11 lines
fs/xfs/xfs_super.c +0 -4
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-

...I frankly would rather wait until we land and stabilize the incore extent rework, because I'd rather not have the reflink story be: 1) we declare reflink stable in 4.14; 2) immediately people start loading up XFSes with sparse VM images that blow up on high order allocations and then 3) we get a whole lot of complaints about it. Then in 4.15 we 4) land the incore extent map only now we're dragging those same users through the mud while /that/ stabilizes, with the result 5) that everyone thinks we've gone off the deep end and doesn't trust us anymore.

I wish that didn't also mean waiting another 6 months for something that none of us /developers/ have seen in practice, especially since the enterprise distros will have plenty of time to backport all this stuff before their next big releases if it /does/ become a problem. It's fine enough for me (and Christoph's customers, evidently) but is that enough?

<shrug> Not sure what to do about my own fear factor. :) Anyone want to offer further comments? A quick git history trip says sparse inodes took about 13 months to go from initial commit to EXPERIMENTAL removed?

--D

Quoted 10 lines
fs/xfs/xfs_super.c +0 -0
 	error = xfs_mountfs(mp);
 	if (error)
 		goto out_filestream_unmount;
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 52 lines · Darrick J. Wong
Quoted 13 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +0 -0
index 38aaacdbb8b3..92521032468e 100644

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1639

Quoted 7 lines
fs/xfs/xfs_super.c +3 -1
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;

/This/ hunk seems fine, but...

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1654

Quoted 11 lines
fs/xfs/xfs_super.c +0 -4
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-

...I frankly would rather wait until we land and stabilize the incore extent rework, because I'd rather not have the reflink story be: 1) we declare reflink stable in 4.14; 2) immediately people start loading up XFSes with sparse VM images that blow up on high order allocations and then 3) we get a whole lot of complaints about it. Then in 4.15 we 4) land the incore extent map only now we're dragging those same users through the mud while /that/ stabilizes, with the result 5) that everyone thinks we've gone off the deep end and doesn't trust us anymore.

I wish that didn't also mean waiting another 6 months for something that none of us /developers/ have seen in practice, especially since the enterprise distros will have plenty of time to backport all this stuff before their next big releases if it /does/ become a problem. It's fine enough for me (and Christoph's customers, evidently) but is that enough?

Quoted 4 lines

<shrug> Not sure what to do about my own fear factor. :) Anyone want to offer further comments? A quick git history trip says sparse inodes took about 13 months to go from initial commit to EXPERIMENTAL removed?

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me so I have no objection to removing the experimental tag from reflink if that's really the only known drawback. Of course, I don't object if there's developer preference to keep it for another cycle or two either.

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

Brian

Quoted 16 lines

--D

Quoted 10 lines
fs/xfs/xfs_super.c +0 -0
 	error = xfs_mountfs(mp);
 	if (error)
 		goto out_filestream_unmount;
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

#4 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

--D

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 11 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

This is a bit of a naiive question, but how many applications are out there that can be used with reflink right now? This would obviously delay things a bit, but I had considered writing something up for LWN or Fedora Planet or $WHATEVER describing these new xfs features, how they can be used, and encourage some early-adopter testing. Try to get some buzz going and some real-world use.

It's always a catch 22; nobody uses it until it's marked stable, but we never know if it's really stable until people outside the development community use it. ;)

As for the allocation issues w/ the in core extent list, yeah, that worries me.

-Eric

#6 lore raw
Quoted 9 lines · Eric Sandeen
Quoted 8 lines · Darrick J. Wong
Quoted 7 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

This is a bit of a naiive question, but how many applications are out there that can be used with reflink right now? This would obviously

Anything that uses cp --reflink, which could be any number of deploy scripts to VM "snapshot" tools. ISTR that cifs & nfs now both support reflink too, and now that ocfs2 also supports the ficlone* ioctls (sort of) we can expect wider use.

dupremove (offline dedupe tool for btrfs) can also talk to xfs/ocfs2.

Quoted 4 lines

delay things a bit, but I had considered writing something up for LWN or Fedora Planet or $WHATEVER describing these new xfs features, how they can be used, and encourage some early-adopter testing. Try to get some buzz going and some real-world use.

I know there's already some dedicated experimenters using reflink...

Quoted 6 lines

It's always a catch 22; nobody uses it until it's marked stable, but we never know if it's really stable until people outside the development community use it. ;)

As for the allocation issues w/ the in core extent list, yeah, that worries me.

Yeah. On the one hand it's a pre-existing condition that's orthogonal to reflink (and hey, we even put in cowextsize to mitigate the problems on VMs) but OTOH it probably gets worse with cow.

--D

Quoted 6 lines

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to Darrick J. Wong
Quoted 19 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

Quoted 8 lines

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

My question then is do we want to encourage users to run reflink without rmapbt because of the latter being experimental, and only so because of a lack of realtime support? *shrug* Maybe it doesn't really matter.

But realistically, how likely is it that the stability of forthcoming rmapbt+realtime code has any bearing on making rmapbt non-experimental in general? I suspect we're not going to leave it experimental for another however many months just to let the rt code sit around. I also suspect not many people will be actually using/testing that code outside of some of us, but maybe there are real users out there and I'm just not aware of them..? (This all coming from somebody who has CONFIG_XFS_RT disabled on his configs. ;)

If realtime is the only barrier, ISTM we could remove the experimental rmapbt status and just disable rmapbt+rt for now. Then re-enable EXPERIMENTAL just for rmapbt+rt when that code goes in (which seems like the most likely end result to me anyways).

Brian

Quoted 10 lines

--D

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 25 lines · Brian Foster
Quoted 24 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

Quoted 7 lines
Quoted 3 lines

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

My question then is do we want to encourage users to run reflink without rmapbt because of the latter being experimental, and only so because of a lack of realtime support? *shrug* Maybe it doesn't really matter.

Probably not, I think realtime users are fairly infrequent and especially so on v5. The only reasons I can think of to extend our new features to rt are (a) to avoid screwing over the existing usecases and
(b) I guess you could build a hybrid xfs between an SSD and a SMR drive wherein we always CoW from one end of the disk to the other. (That's crazy, but hey.)

Quoted 3 lines

But realistically, how likely is it that the stability of forthcoming rmapbt+realtime code has any bearing on making rmapbt non-experimental in general?

The biggest code churn to add realtime rmap is reworking the btree code to support putting btree records in an inode fork. The rmap code itself is relatively unchanged aside from widening rm_startblock/rm_blockcount to 64 bits.

Quoted 6 lines

I suspect we're not going to leave it experimental for another however many months just to let the rt code sit around. I also suspect not many people will be actually using/testing that code outside of some of us, but maybe there are real users out there and I'm just not aware of them..? (This all coming from somebody who has CONFIG_XFS_RT disabled on his configs. ;)

/me has it enabled and (occasionally) runs with realtime to see what breaks. :)

Quoted 4 lines

If realtime is the only barrier, ISTM we could remove the experimental rmapbt status and just disable rmapbt+rt for now. Then re-enable EXPERIMENTAL just for rmapbt+rt when that code goes in (which seems like the most likely end result to me anyways).

It's already disabled. I suppose it's not /that/ big of a deal if old kernels reject certain feature combinations...

...by the way, we can't add a rt device to an already-mounted filesystem, right?

--D

Quoted 17 lines

Brian

Quoted 10 lines

--D

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
Quoted 34 lines · Darrick J. Wong
Quoted 25 lines · Brian Foster
Quoted 24 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

Quoted 7 lines
Quoted 3 lines

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

My question then is do we want to encourage users to run reflink without rmapbt because of the latter being experimental, and only so because of a lack of realtime support? *shrug* Maybe it doesn't really matter.

Quoted 7 lines

Probably not, I think realtime users are fairly infrequent and especially so on v5. The only reasons I can think of to extend our new features to rt are (a) to avoid screwing over the existing usecases and
(b) I guess you could build a hybrid xfs between an SSD and a SMR drive wherein we always CoW from one end of the disk to the other. (That's crazy, but hey.)

Yeah, the only use cases I've really heard wrt to realtime any time in the recent past has been these kind of future facing experiments as opposed to traditional use. Not to say there aren't users out there, but I also can't recall seeing any bug reports or anything of that nature either any time recently. Maybe it's just perfect code. ;)

I think Dave has thought about the SMR+RT thing in the past. Somebody else mentioned some other thing they were trying to do using RT to me at Vault, to which I suggested to post some rfc code for discussion (which obviously hasn't happened), but I honestly can't remember what that experiment even was.

Quoted 16 lines
Quoted 3 lines

But realistically, how likely is it that the stability of forthcoming rmapbt+realtime code has any bearing on making rmapbt non-experimental in general?

The biggest code churn to add realtime rmap is reworking the btree code to support putting btree records in an inode fork. The rmap code itself is relatively unchanged aside from widening rm_startblock/rm_blockcount to 64 bits.

Quoted 6 lines

I suspect we're not going to leave it experimental for another however many months just to let the rt code sit around. I also suspect not many people will be actually using/testing that code outside of some of us, but maybe there are real users out there and I'm just not aware of them..? (This all coming from somebody who has CONFIG_XFS_RT disabled on his configs. ;)

Quoted 3 lines

/me has it enabled and (occasionally) runs with realtime to see what breaks. :)

Heh, I think I did that once in the past. That about sums up my experience with rt. :)

Quoted 8 lines
Quoted 4 lines

If realtime is the only barrier, ISTM we could remove the experimental rmapbt status and just disable rmapbt+rt for now. Then re-enable EXPERIMENTAL just for rmapbt+rt when that code goes in (which seems like the most likely end result to me anyways).

It's already disabled. I suppose it's not /that/ big of a deal if old kernels reject certain feature combinations...

Er, right. :P That seems reasonable to me. Again, I don't feel terribly strongly about whether to remove the tag or not for rmapbt in general. It just seems a bit strange to me to open up reflink and not rmapbt just because we don't support the latter on realtime yet.

Quoted 3 lines

...by the way, we can't add a rt device to an already-mounted filesystem, right?

I thought it was a mkfs time thing, but I could be mistaken...

Brian

Quoted 23 lines

--D

Quoted 9 lines

Brian

Quoted 6 lines

--D

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 8 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw
Quoted 35 lines · Brian Foster
Quoted 34 lines · Darrick J. Wong
Quoted 32 lines · Brian Foster
Quoted 19 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

Quoted 8 lines

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

My question then is do we want to encourage users to run reflink without rmapbt because of the latter being experimental, and only so because of a lack of realtime support? *shrug* Maybe it doesn't really matter.

Quoted 6 lines
Quoted 6 lines

Probably not, I think realtime users are fairly infrequent and especially so on v5. The only reasons I can think of to extend our new features to rt are (a) to avoid screwing over the existing usecases and
(b) I guess you could build a hybrid xfs between an SSD and a SMR drive wherein we always CoW from one end of the disk to the other. (That's crazy, but hey.)

Or use RT files as VM image files with deterministic, low overhead allocation characteristics. And for that use case, I^Hwe want rmap and reflink on the realtime device so we can scrub and snapshot/send/recv those image files......

Quoted 3 lines

Yeah, the only use cases I've really heard wrt to realtime any time in the recent past has been these kind of future facing experiments as opposed to traditional use. Not to say there aren't users out there, but

Let's not forget that there are tens of millions of existing XFS RT filesystems out there in smart TVs and DVRs.

Quoted 2 lines

I also can't recall seeing any bug reports or anything of that nature either any time recently. Maybe it's just perfect code. ;)

No, just carefully constrained applications and a lot of QA.

Quoted 1 line

I think Dave has thought about the SMR+RT thing in the past.

Yes, and I wrote a document describing it for the device vendors that were screaming for us to do something to be able to go away and implement..... <crickets>

Regardless, IIRC, there have been people using RT devices with SMR drives for some years now, mainly because the RT device could guarantee zone aligned and sized allocations for sequential write applications like video recording....

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

If realtime is the only barrier, ISTM we could remove the experimental rmapbt status and just disable rmapbt+rt for now. Then re-enable EXPERIMENTAL just for rmapbt+rt when that code goes in (which seems like the most likely end result to me anyways).

It's already disabled. I suppose it's not /that/ big of a deal if old kernels reject certain feature combinations...

Just add an incompat bit for rtrmapbt and rtreflink when they come along, and everything will be fine :P

Quoted 4 lines
Quoted 2 lines

...by the way, we can't add a rt device to an already-mounted filesystem, right?

I thought it was a mkfs time thing, but I could be mistaken...

It is at the moment, but there's nothing that prevents us from adding it dynamically if we wanted (same as journal resizing). e.g. via a remount to specify and open the rt device and growfs to resize it from zero to device size and allocate and initialise the bitmap and summary inodes.

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#11 lore raw
Quoted 48 lines · Dave Chinner
Quoted 35 lines · Brian Foster
Quoted 34 lines · Darrick J. Wong
Quoted 32 lines · Brian Foster
Quoted 19 lines · Darrick J. Wong
Quoted 8 lines · Christoph Hellwig
Quoted 5 lines · Brian Foster

FWIW, I don't really have a strong opinion. To me, removing experimental means we feel the code has stabilized long enough in principle, there are no significant problems (i.e., corruption/crash vectors) that we are aware of and the feature is complete (full userspace tool support, etc). The in-core extent list thing seems like more of a general problem to me

Agreed so far.

<nod> Dave? Eric? Any perspective you'd like to offer? :)

Quoted 6 lines
Quoted 2 lines

That aside, shouldn't we consider the rmapbt experimental tag first, or at least at the same time? It's been around for slightly longer.

I've not done much testing on that or have experience with it in general, nor do I have a customer with a big QA team beating it hard, so I can't really comment on that one.

Quoted 8 lines

rmapbt will remain EXPERIMENTAL because I still have more patches to send to finish the feature for realtime devices. Speaking of which, it's now been 53 weeks since the last dump of that, so I'll go do that now. :P

FWIW I /also/ run rmapbt everywhere and haven't had any trouble with it since adding the per-AG reservations.

My question then is do we want to encourage users to run reflink without rmapbt because of the latter being experimental, and only so because of a lack of realtime support? *shrug* Maybe it doesn't really matter.

Quoted 6 lines
Quoted 6 lines

Probably not, I think realtime users are fairly infrequent and especially so on v5. The only reasons I can think of to extend our new features to rt are (a) to avoid screwing over the existing usecases and
(b) I guess you could build a hybrid xfs between an SSD and a SMR drive wherein we always CoW from one end of the disk to the other. (That's crazy, but hey.)

Or use RT files as VM image files with deterministic, low overhead allocation characteristics. And for that use case, I^Hwe want rmap and reflink on the realtime device so we can scrub and snapshot/send/recv those image files......

Quoted 7 lines
Quoted 3 lines

Yeah, the only use cases I've really heard wrt to realtime any time in the recent past has been these kind of future facing experiments as opposed to traditional use. Not to say there aren't users out there, but

Let's not forget that there are tens of millions of existing XFS RT filesystems out there in smart TVs and DVRs.

Oh, I'm not suggesting there are zero users or that we should never port over the associated features to RT. I'm just suggesting that if we were going to untag reflink as experimental, it may not be worth holding back doing the same for rmapbt if lack of RT support is the only concern.

I do question how many of these existing RT users may be on newer features like v5 filesystems (if supported?), or kernels that even support v5 filesystems for that matter. ;)

Quoted 5 lines
Quoted 2 lines

I also can't recall seeing any bug reports or anything of that nature either any time recently. Maybe it's just perfect code. ;)

No, just carefully constrained applications and a lot of QA.

I'd hope we have at least the same amount of QA for !RT releases. (I know from experience that the margins on many of those kinds of consumer devices don't exactly facilitate the level of QE we typically see at the enterprise level). If anything, I'd guess that whatever historical sense of reliability this feature offers for things like embedded environments stems more from using older kernels and code that basically never changes than anything else. The one time I tried using RT way back when, it fell on its face fairly hard and fairly quickly. Granted that is anecdotal and I don't recall the specifics anyways. Maybe its been fixed up since then.

Quoted 11 lines
Quoted 1 line

I think Dave has thought about the SMR+RT thing in the past.

Yes, and I wrote a document describing it for the device vendors that were screaming for us to do something to be able to go away and implement..... <crickets>

Regardless, IIRC, there have been people using RT devices with SMR drives for some years now, mainly because the RT device could guarantee zone aligned and sized allocations for sequential write applications like video recording....

Yep, I recall that discussion.

Quoted 11 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

If realtime is the only barrier, ISTM we could remove the experimental rmapbt status and just disable rmapbt+rt for now. Then re-enable EXPERIMENTAL just for rmapbt+rt when that code goes in (which seems like the most likely end result to me anyways).

It's already disabled. I suppose it's not /that/ big of a deal if old kernels reject certain feature combinations...

Just add an incompat bit for rtrmapbt and rtreflink when they come along, and everything will be fine :P

That sounds quite reasonable to me.

Brian

Quoted 21 lines
Quoted 4 lines
Quoted 2 lines

...by the way, we can't add a rt device to an already-mounted filesystem, right?

I thought it was a mkfs time thing, but I could be mistaken...

It is at the moment, but there's nothing that prevents us from adding it dynamically if we wanted (same as journal resizing). e.g. via a remount to specify and open the rt device and growfs to resize it from zero to device size and allocate and initialise the bitmap and summary inodes.

Cheers,

Dave.

Signature · 6 lines
Dave Chinner
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw
In reply to Darrick J. Wong
Quoted 31 lines · Darrick J. Wong
Quoted 13 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +0 -0
index 38aaacdbb8b3..92521032468e 100644

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1639

Quoted 7 lines
fs/xfs/xfs_super.c +3 -1
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;

/This/ hunk seems fine, but...

Quoted 7 lines
fs/xfs/xfs_super.c +0 -0
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
Quoted 14 lines

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1654

Quoted 4 lines
fs/xfs/xfs_super.c +0 -4
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-

...I frankly would rather wait until we land and stabilize the incore extent rework, because I'd rather not have the reflink story be: 1) we declare reflink stable in 4.14; 2) immediately people start loading up XFSes with sparse VM images that blow up on high order allocations and then 3) we get a whole lot of complaints about it. Then in 4.15 we 4) land the incore extent map only now we're dragging those same users through the mud while /that/ stabilizes, with the result 5) that everyone thinks we've gone off the deep end and doesn't trust us anymore.

Which is a lose-lose proposition. IOWs, to be avoided at all costs.

Quoted 2 lines

I wish that didn't also mean waiting another 6 months for something that none of us /developers/ have seen in practice,

Oh, I've seen it plenty of times in practice. Restoring large metadumps with (tens of) millions of tiny extents is the common cause for me.

Quoted 4 lines

especially since the
enterprise distros will have plenty of time to backport all this stuff before their next big releases if it /does/ become a problem. It's fine enough for me (and Christoph's customers, evidently) but is that enough?

FYI, this has been a problem on RHEL for a long time. It's a long standing, well known problem and that's one of the reasons why it's at the top of my list to fix right now.

Quoted 3 lines

<shrug> Not sure what to do about my own fear factor. :) Anyone want to offer further comments? A quick git history trip says sparse inodes took about 13 months to go from initial commit to EXPERIMENTAL removed?

I always aimed to remove the experimental tag 4 kernel releases after the initial merge, assuming testing and required functionality was all there and complete early on in the stabilisation process. Generally I had a set of criteria that needed to be fulfilled before I'd remove the tag, and ticked them off as fixes were merged.

e.g. CRCs were introduced in 3.10, the experimental tag was removed in 3.15, so 5 releases in that case. We didn't get CRCs working sanely until 3.11 and there was still a lot of userspace stuff that lagged (and having a fully working userspace was a criteria for removing experimental from the kernel code), so it took longer to stabilise than something smaller like sparse inodes.

Fixing the extent list memory allocation problem was always something on my list of "need to fix before reflink can be deployed in anger", so I'd much prefer that we are conservative in removing the experimental tag. It doesn't hurt anyone if we keep it on until we get the extent tree rework merged, and it's better to err on the side of keeping it too long than not long enough.

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#13 lore raw
Quoted 82 lines · Dave Chinner
Quoted 31 lines · Darrick J. Wong
Quoted 13 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +0 -0
index 38aaacdbb8b3..92521032468e 100644

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1639

Quoted 7 lines
fs/xfs/xfs_super.c +3 -1
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;

/This/ hunk seems fine, but...

Quoted 7 lines
fs/xfs/xfs_super.c +0 -0
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
Quoted 14 lines

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1654

Quoted 4 lines
fs/xfs/xfs_super.c +0 -4
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-

...I frankly would rather wait until we land and stabilize the incore extent rework, because I'd rather not have the reflink story be: 1) we declare reflink stable in 4.14; 2) immediately people start loading up XFSes with sparse VM images that blow up on high order allocations and then 3) we get a whole lot of complaints about it. Then in 4.15 we 4) land the incore extent map only now we're dragging those same users through the mud while /that/ stabilizes, with the result 5) that everyone thinks we've gone off the deep end and doesn't trust us anymore.

Which is a lose-lose proposition. IOWs, to be avoided at all costs.

Quoted 2 lines

I wish that didn't also mean waiting another 6 months for something that none of us /developers/ have seen in practice,

Oh, I've seen it plenty of times in practice. Restoring large metadumps with (tens of) millions of tiny extents is the common cause for me.

Quoted 4 lines

especially since the
enterprise distros will have plenty of time to backport all this stuff before their next big releases if it /does/ become a problem. It's fine enough for me (and Christoph's customers, evidently) but is that enough?

FYI, this has been a problem on RHEL for a long time. It's a long standing, well known problem and that's one of the reasons why it's at the top of my list to fix right now.

Quoted 3 lines

<shrug> Not sure what to do about my own fear factor. :) Anyone want to offer further comments? A quick git history trip says sparse inodes took about 13 months to go from initial commit to EXPERIMENTAL removed?

I always aimed to remove the experimental tag 4 kernel releases after the initial merge, assuming testing and required functionality was all there and complete early on in the stabilisation process. Generally I had a set of criteria that needed to be fulfilled before I'd remove the tag, and ticked them off as fixes were merged.

e.g. CRCs were introduced in 3.10, the experimental tag was removed in 3.15, so 5 releases in that case. We didn't get CRCs working sanely until 3.11 and there was still a lot of userspace stuff that lagged (and having a fully working userspace was a criteria for removing experimental from the kernel code), so it took longer to stabilise than something smaller like sparse inodes.

Quoted 6 lines

Fixing the extent list memory allocation problem was always something on my list of "need to fix before reflink can be deployed in anger", so I'd much prefer that we are conservative in removing the experimental tag. It doesn't hurt anyone if we keep it on until we get the extent tree rework merged, and it's better to err on the side of keeping it too long than not long enough.

Hmm, it's been 4 months since we last picked up this thread. We've had 7 releases since reflink itself went upstream, which for most features would be long enough to remove the EXPERIMENTAL tag for 4.16.

On the other hand, the extent list memory allocation fix series hasn't had much time to stabilize, which could be a reason to leave the tag.

Thoughts?

--D

Quoted 10 lines

Cheers,

Dave.

Signature · 6 lines
Dave Chinner
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#14 lore raw
Quoted 90 lines · Darrick J. Wong
Quoted 82 lines · Dave Chinner
Quoted 31 lines · Darrick J. Wong
Quoted 13 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +0 -0
index 38aaacdbb8b3..92521032468e 100644

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1639

Quoted 7 lines
fs/xfs/xfs_super.c +3 -1
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;

/This/ hunk seems fine, but...

Quoted 7 lines
fs/xfs/xfs_super.c +0 -0
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
Quoted 14 lines

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1654

Quoted 4 lines
fs/xfs/xfs_super.c +0 -4
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");
-

...I frankly would rather wait until we land and stabilize the incore extent rework, because I'd rather not have the reflink story be: 1) we declare reflink stable in 4.14; 2) immediately people start loading up XFSes with sparse VM images that blow up on high order allocations and then 3) we get a whole lot of complaints about it. Then in 4.15 we 4) land the incore extent map only now we're dragging those same users through the mud while /that/ stabilizes, with the result 5) that everyone thinks we've gone off the deep end and doesn't trust us anymore.

Which is a lose-lose proposition. IOWs, to be avoided at all costs.

Quoted 2 lines

I wish that didn't also mean waiting another 6 months for something that none of us /developers/ have seen in practice,

Oh, I've seen it plenty of times in practice. Restoring large metadumps with (tens of) millions of tiny extents is the common cause for me.

Quoted 4 lines

especially since the
enterprise distros will have plenty of time to backport all this stuff before their next big releases if it /does/ become a problem. It's fine enough for me (and Christoph's customers, evidently) but is that enough?

FYI, this has been a problem on RHEL for a long time. It's a long standing, well known problem and that's one of the reasons why it's at the top of my list to fix right now.

Quoted 3 lines

<shrug> Not sure what to do about my own fear factor. :) Anyone want to offer further comments? A quick git history trip says sparse inodes took about 13 months to go from initial commit to EXPERIMENTAL removed?

I always aimed to remove the experimental tag 4 kernel releases after the initial merge, assuming testing and required functionality was all there and complete early on in the stabilisation process. Generally I had a set of criteria that needed to be fulfilled before I'd remove the tag, and ticked them off as fixes were merged.

e.g. CRCs were introduced in 3.10, the experimental tag was removed in 3.15, so 5 releases in that case. We didn't get CRCs working sanely until 3.11 and there was still a lot of userspace stuff that lagged (and having a fully working userspace was a criteria for removing experimental from the kernel code), so it took longer to stabilise than something smaller like sparse inodes.

Quoted 6 lines

Fixing the extent list memory allocation problem was always something on my list of "need to fix before reflink can be deployed in anger", so I'd much prefer that we are conservative in removing the experimental tag. It doesn't hurt anyone if we keep it on until we get the extent tree rework merged, and it's better to err on the side of keeping it too long than not long enough.

Quoted 8 lines

Hmm, it's been 4 months since we last picked up this thread. We've had 7 releases since reflink itself went upstream, which for most features would be long enough to remove the EXPERIMENTAL tag for 4.16.

On the other hand, the extent list memory allocation fix series hasn't had much time to stabilize, which could be a reason to leave the tag.

Thoughts?

I was thinking about this last night, actually. The extent rework seems stable enough - I've been hammering large extent count directories for the past week and I haven't come across any problems so I think we're good to remove the EXPERIMENTAL tags now...

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#15 lore raw
In reply to Christoph Hellwig
Quoted 24 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +3 -1
index 38aaacdbb8b3..92521032468e 100644
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
 		}
 		if (xfs_sb_version_hasreflink(&mp->m_sb))
 			xfs_alert(mp,
-		"DAX and reflink have not been tested together!");
+		"DAX and reflink can not be used together!");
+			error = -EINVAL;
+			goto out_filestream_unmount;
 	}
 
 	if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1653

Quoted 6 lines
fs/xfs/xfs_super.c +0 -3
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
 	"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
 	}
 
-	if (xfs_sb_version_hasreflink(&mp->m_sb))
-		xfs_alert(mp,
-	"EXPERIMENTAL reflink feature enabled. Use at your own risk!");

Ok, now that the incore extent map rework has landed upstream, can we please get everyone's QA to stress the reflink/cow code vigorously during this release cycle so that we can re-consider this patch for 4.16?

(And if you're particularly mean, force cowextsize = 1fsb to age the filesystem prematurely?)

Right now I think the only problem I know about is that log recovery bug where the defer ops of replayed defer ops get logged in the wrong order, but that's it.

--D

Quoted 11 lines
fs/xfs/xfs_super.c +0 -1
-
 	error = xfs_mountfs(mp);
 	if (error)
 		goto out_filestream_unmount;
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#16 lore raw
Quoted 37 lines · Darrick J. Wong
Quoted 24 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +3 -1
index 38aaacdbb8b3..92521032468e 100644
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
              }
              if (xfs_sb_version_hasreflink(&mp->m_sb))
                      xfs_alert(mp,
-             "DAX and reflink have not been tested together!");
+             "DAX and reflink can not be used together!");
+                     error = -EINVAL;
+                     goto out_filestream_unmount;
      }
 
      if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1653

Quoted 6 lines
fs/xfs/xfs_super.c +0 -3
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
      "EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
      }
 
-     if (xfs_sb_version_hasreflink(&mp->m_sb))
-             xfs_alert(mp,
-     "EXPERIMENTAL reflink feature enabled. Use at your own risk!");

Ok, now that the incore extent map rework has landed upstream, can we please get everyone's QA to stress the reflink/cow code vigorously during this release cycle so that we can re-consider this patch for 4.16?

Quoted 7 lines

(And if you're particularly mean, force cowextsize = 1fsb to age the filesystem prematurely?)

Right now I think the only problem I know about is that log recovery bug where the defer ops of replayed defer ops get logged in the wrong order, but that's it.

Last time you wrote about this bug you had a "hard question" about transaction reservation for the solution and said your're going to go have a think about it:
https://marc.info/?l=linux-xfs&m=150766311924170&w=2
Did you come to any conclusions?
That sounds like one of those nasty CoW corner cases, so I'd be happy to know there is at least a well thought design for a solution - if not a fix.

Practically, I would love if that bug could be solved soon so that we can all start running generic/503 for more than a few iterations to stress test reflink/cow
with power failure. Success on this front could be a big upside before turning off
EXPERIMENTAL.

Thanks,
Amir.

#17 lore raw
Quoted 47 lines · Amir Goldstein
Quoted 37 lines · Darrick J. Wong
Quoted 24 lines · Christoph Hellwig

But reject reflink + DAX file systems for now until the code to support reflinks on DAX is actually implemented.

---
 fs/xfs/xfs_super.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
fs/xfs/xfs_super.c +3 -1
index 38aaacdbb8b3..92521032468e 100644
@@ -1634,7 +1634,9 @@ xfs_fs_fill_super(
              }
              if (xfs_sb_version_hasreflink(&mp->m_sb))
                      xfs_alert(mp,
-             "DAX and reflink have not been tested together!");
+             "DAX and reflink can not be used together!");
+                     error = -EINVAL;
+                     goto out_filestream_unmount;
      }
 
      if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {

fs/xfs/xfs_super.c xfs_fs_fill_super( · line 1653

Quoted 6 lines
fs/xfs/xfs_super.c +0 -3
@@ -1648,10 +1650,6 @@ xfs_fs_fill_super(
      "EXPERIMENTAL reverse mapping btree feature enabled. Use at your own risk!");
      }
 
-     if (xfs_sb_version_hasreflink(&mp->m_sb))
-             xfs_alert(mp,
-     "EXPERIMENTAL reflink feature enabled. Use at your own risk!");

Ok, now that the incore extent map rework has landed upstream, can we please get everyone's QA to stress the reflink/cow code vigorously during this release cycle so that we can re-consider this patch for 4.16?

Quoted 7 lines

(And if you're particularly mean, force cowextsize = 1fsb to age the filesystem prematurely?)

Right now I think the only problem I know about is that log recovery bug where the defer ops of replayed defer ops get logged in the wrong order, but that's it.

Quoted 6 lines

Last time you wrote about this bug you had a "hard question" about transaction reservation for the solution and said your're going to go have a think about it:
https://marc.info/?l=linux-xfs&m=150766311924170&w=2
Did you come to any conclusions?
That sounds like one of those nasty CoW corner cases, so I'd be happy to know there is at least a well thought design for a solution - if not a fix.

Sorry I let myself get distracted/stressed with the merge window; hopefully the patch I sent out will address that problem?

Quoted 6 lines

Practically, I would love if that bug could be solved soon so that we can all start running generic/503 for more than a few iterations to stress test reflink/cow
with power failure. Success on this front could be a big upside before turning off
EXPERIMENTAL.

Indeed! What is the status of those tests, anyway? Are they in xfstests?

--D

Quoted 6 lines

Thanks,
Amir.
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#18 lore raw
Quoted 1 line · Darrick J. Wong

On Wed, Nov 15, 2017 at 08:14:33AM +0200, Amir Goldstein wrote:

[...]

Quoted 11 lines
Quoted 7 lines

Last time you wrote about this bug you had a "hard question" about transaction reservation for the solution and said your're going to go have a think about it:
https://marc.info/?l=linux-xfs&m=150766311924170&w=2
Did you come to any conclusions?
That sounds like one of those nasty CoW corner cases, so I'd be happy to know there is at least a well thought design for a solution - if not a fix.

Sorry I let myself get distracted/stressed with the merge window; hopefully the patch I sent out will address that problem?

Problem reproduces better on a spinning rust I have at the office, so will give it a spin tomorrow.

Quoted 9 lines
Quoted 6 lines

Practically, I would love if that bug could be solved soon so that we can all start running generic/503 for more than a few iterations to stress test reflink/cow
with power failure. Success on this front could be a big upside before turning off
EXPERIMENTAL.

Indeed! What is the status of those tests, anyway? Are they in xfstests?

Yes.
2 fsx stress tests, with and without clones
generic/455
generic/457
(replay group)

One regression test for ext4 crash bug that was already fixed generic/456

And one regression test for xfs reflink crash bug that you already fixed generic/458

So generic/457 is the one we should be hammering (fsx and reflink) it creates 10 clones and runs fsx workers on them.
I imagine it is not long before there are no more shared extents. It's not much, but its a good start.
I recon it would be good if you guys added some more variants of this test to try and cover more interesting reflink cases.

FYI, Josef also has an fsstress based test, but it is plain shell script and I never got around to adapting it to an xfstest:
https://github.com/josefbacik/log-writes

Cheers,
Amir.

#19 lore raw
Quoted 12 lines · Amir Goldstein
Quoted 1 line · Darrick J. Wong

On Wed, Nov 15, 2017 at 08:14:33AM +0200, Amir Goldstein wrote:

[...]

Quoted 8 lines
Quoted 7 lines

Last time you wrote about this bug you had a "hard question" about transaction reservation for the solution and said your're going to go have a think about it:
https://marc.info/?l=linux-xfs&m=150766311924170&w=2
Did you come to any conclusions?
That sounds like one of those nasty CoW corner cases, so I'd be happy to know there is at least a well thought design for a solution - if not a fix.

Quoted 6 lines
Quoted 3 lines

Sorry I let myself get distracted/stressed with the merge window; hopefully the patch I sent out will address that problem?

Problem reproduces better on a spinning rust I have at the office, so will give it a spin tomorrow.

Ok.

Quoted 11 lines
Quoted 9 lines
Quoted 6 lines

Practically, I would love if that bug could be solved soon so that we can all start running generic/503 for more than a few iterations to stress test reflink/cow
with power failure. Success on this front could be a big upside before turning off
EXPERIMENTAL.

Indeed! What is the status of those tests, anyway? Are they in xfstests?

Yes.

Excellent!

Quoted 5 lines

2 fsx stress tests, with and without clones
generic/455
generic/457
(replay group)

Quoted 7 lines

One regression test for ext4 crash bug that was already fixed generic/456

And one regression test for xfs reflink crash bug that you already fixed generic/458

So generic/457 is the one we should be hammering (fsx and reflink)

Ok, will do.

--D

Quoted 16 lines

it creates 10 clones and runs fsx workers on them.
I imagine it is not long before there are no more shared extents. It's not much, but its a good start.
I recon it would be good if you guys added some more variants of this test to try and cover more interesting reflink cases.

FYI, Josef also has an fsstress based test, but it is plain shell script and I never got around to adapting it to an xfstest:
https://github.com/josefbacik/log-writes

Cheers,
Amir.
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#20 lore raw
Quoted 13 lines · Darrick J. Wong
Quoted 12 lines · Amir Goldstein
Quoted 1 line · Darrick J. Wong

On Wed, Nov 15, 2017 at 08:14:33AM +0200, Amir Goldstein wrote:

[...]

Quoted 8 lines
Quoted 7 lines

Last time you wrote about this bug you had a "hard question" about transaction reservation for the solution and said your're going to go have a think about it:
https://marc.info/?l=linux-xfs&m=150766311924170&w=2
Did you come to any conclusions?
That sounds like one of those nasty CoW corner cases, so I'd be happy to know there is at least a well thought design for a solution - if not a fix.

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

Sorry I let myself get distracted/stressed with the merge window; hopefully the patch I sent out will address that problem?

Problem reproduces better on a spinning rust I have at the office, so will give it a spin tomorrow.

So far all good.
Spinning rust never survived 10 rounds of generic/457 and it is past the 100's round with your patch already. Will keep it spinning for the weekend.

Thanks,
Amir.