-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs send -v adds extra delay #11560
Comments
Ping..can someone triage this already? Its a pretty annoying bug and making things really slow in https://github.com/psy0rz/zfs_autobackup Copy paste this and notice how the zfs send takes a whole second instead of almost 0.
|
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
stale bot! we meet again! but beholdddd: ws1# uname -a
Linux ws1 5.14.15-051415-generic #202111011158-Ubuntu SMP Mon Nov 1 12:17:41 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
ws1# zfs version
zfs-2.1.2-0york1~20.04
zfs-kmod-2.1.2-0york1~20.04
ws1# FS=rpool/test; zfs create $FS; zfs snapshot $FS@a; time zfs send $FS@a >/tmp/test.dump; time zfs send -v $FS@a >/tmp/test.dump
zfs send $FS@a > /tmp/test.dump 0.00s user 0.00s system 75% cpu 0.006 total
full send of rpool/test@a estimated size is 46.6K
total estimated size is 46.6K
zfs send -v $FS@a > /tmp/test.dump 0.00s user 0.01s system 0% cpu 1.005 total (both times should be approx 0, but the one where i use the verbose option is stretched to the next whole second by this bug) So the problem still persists with 2.1.2 and a fairly new kernel. ( zfs send to > /dev/null was not supported with this kernel) @ahrens could you perhaps take the literal second it takes to triage this bug? :) This is the one liner:
Or should i create a pull-request for a regression test for this, so someone HAS to fix it? :P |
The cause of the delay here is the progress reporting which is enabled with the One nicer way to handle this would be to use |
the problem didnt seem to exist in 0.8.x, maybe you can check how it was implemented there? |
This is in line with all the other uses of the progress thread Closes openzfs#11560 Signed-off-by: Ahelenia Ziemiańska <[email protected]>
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11560 Closes #13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
This is in line with all the other uses of the progress thread Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11560 Closes openzfs#13284
System information
Describe the problem you're observing
If i use the -v option of zfs send, it takes longer for the command to exit. (using it on an empty dataset)
Describe how to reproduce the problem
I did some tests and it seems the problem didnt exist in 0.8.x.
You can imagine this delay is hugely annoying if you have a lot of small snapshots, or do regression testing like I was doing when i noticed it.
strace of last part:
The text was updated successfully, but these errors were encountered: