Skip to content
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

'zpool iostat' in 'zfs.pm' show almost no changes in read/write Operation/Bandwidth graphs #242

Open
mikaku opened this issue May 15, 2019 · 7 comments
Assignees

Comments

@mikaku
Copy link
Owner

mikaku commented May 15, 2019

The @abqcheeks user opened a recent chat on freenode saying that the read/write values in the Operation/Bandwidth graphs in zfs.pm rarely if ever change. He explained that this is because the output from ztool iostat is the average operations per second since the system booted. This happens either in *BSD and Linux systems.

# zpool iostat -Hp <mypool>
<mypool>	12232325972992	7696322280448	10	33	62047	3844624

He proposed to append the interval and count arguments to the command line ztool iostat -Hp <mypool>, to get the average for a 5-second sample and gather the values from the second line.

@mikaku mikaku self-assigned this May 15, 2019
@mikaku
Copy link
Owner Author

mikaku commented May 15, 2019

Although the 5-second sample won't reflect the real activity of ZFS during the last minute, it will indeed bring more information than the current configuration.

So, until we don't know a better way for doing that, this will be the default way to go.

mikaku added a commit that referenced this issue May 15, 2019
@mikaku
Copy link
Owner Author

mikaku commented May 15, 2019

@abqcheeks, please download the latest zfs.pm and let me know if it works for you.

@mikaku
Copy link
Owner Author

mikaku commented May 17, 2019

This is a screen shot of how these values are represented after applying the patch:

zz

@mikaku mikaku closed this as completed Jun 26, 2019
@abqcheeks
Copy link
Contributor

abqcheeks commented Nov 9, 2019 via email

@mikaku
Copy link
Owner Author

mikaku commented Nov 9, 2019

I finally got some time to finish the zfs freebsd stuff. I submitted
a pull request against the current version which includes ARC stats.

Yep, just merged it.

I've got some more FreeBSD patches to submit for other modules soon.

Fantastic!

Thanks.

@abqcheeks
Copy link
Contributor

abqcheeks commented Nov 13, 2019 via email

@mikaku
Copy link
Owner Author

mikaku commented Nov 19, 2019

I started to just uncomment the setting in the config file, pointing
to a nonexistent file. That would shut up the errors but I figured
why bother with that filesystem op when we know it's not there, so
I changed it to:

   if(defined $config->{spamassassin_log} && -r $config->{spamassassin_log}) {

If you're OK with that, I'll submit those changes. If you don't want
to, let me know.

It looks good to me, go ahead.

If left to my own devices I would "use JSON::PP". Questions for you:

  1. Use JSON::PP or something else?
  2. Ok to have that "use" command in nfss.pm? Or do you want
    it protected with a config check for BSD so it doesn't force
    the dependency on linux users?

Thanks for taking care to not affect other systems when including that new Perl module.

I think that if you place the use JSON::PP line inside the FreeBSD, NetBSD and OpenBSD block of code instead of in the beginning of the file, then the Linux users won't be affected, or I'm wrong?

Thanks.

@mikaku mikaku reopened this Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants