-
Notifications
You must be signed in to change notification settings - Fork 62
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
Switch from zfs get to zfs list calls for better performance #40
Comments
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Feb 10, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Feb 11, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
edillmann
pushed a commit
to edillmann/go-zfs
that referenced
this issue
Feb 20, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Mar 9, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Mar 10, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Mar 10, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Mar 10, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Mar 28, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Apr 18, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
amitkris
added a commit
to amitkris/go-zfs
that referenced
this issue
Apr 25, 2016
Enable Solaris support for go-zfs Switch from zfs/zpool get to zfs/zpool list for better performance Signed-off-by: Amit Krishnan <krish.amit@gmail.com>
Fixed by #41 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
This issue is in conjunction with #39.
In an effort to come up with a PR for Solaris support I investigated performance on using zfs list instead of zfs get and came up with the following numbers on Linux.
In short zfs list is quicker, especially when retrieving a specific set of properties.
I wrote a small timer function using the go "time" package that would time zfs Init().
On a Ubuntu system that had 40 containers on it: (As the number of containers on the system increases the time difference also increases drastically)
Without my changes daemon startup showed ZFS init took:
With my changes:
Also zfs_test,go does a good job of running all the ZFS commands supported and in all we saved almost 6s on the test run with the changes:
Container startup time is still comparable:
CHANGES made:
The text was updated successfully, but these errors were encountered: