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

Possible libpcp interpolation issue #1717

Open
myllynen opened this issue Nov 21, 2022 · 0 comments
Open

Possible libpcp interpolation issue #1717

myllynen opened this issue Nov 21, 2022 · 0 comments

Comments

@myllynen
Copy link
Contributor

Using https://fedorapeople.org/~nathans/archives/goody.tgz we see with the latest git code:

pmrep -a 20160718.12.38.0 -z -S '@19:45' -s 20 -J3 -2 -u proc.io.read_bytes 0.05s user 0.01s system 99% cpu 0.069 total

pmrep -a 20160718.12.38.0 -z -S '@19:45' -s 20 -J3 -2 -t 1sec proc.io.read_bytes 0.19s user 0.05s system 99% cpu 0.252 total

pmrep -a 20160718.12.38.0 -z -S '@19:45' -s 20 -J3 -2 -t 10min 2.42s user 0.53s system 99% cpu 2.967 total

Adding a simple print debug in the Python code (around line 1145 in the beginning of the fetch() method) we see that the number of C calls for each is the same (as expected due to -s 20). The first one disables interpolation (-u) but the next two use it with different interval (1s vs 10min).

The question is why the -t 10min case is so much slower than the -t 1sec case, is there anything that could be done to improve this?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant