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

Wrong interpretation of maintenance_work_mem value #2

Closed
foxxx0 opened this issue Mar 6, 2018 · 3 comments
Closed

Wrong interpretation of maintenance_work_mem value #2

foxxx0 opened this issue Mar 6, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@foxxx0
Copy link

foxxx0 commented Mar 6, 2018

Hey,

I've just started playing around with pgmetrics and noticed the following:

in postgresql.conf I have maintenance_work_mem = 128MB which seems to be internally set as value "131072", which means the base unit is KB and not B.

In the pgmetrics output (in the "Vacuum Progress" block) however this seems to be interpreted as B:
maintenance_work_mem | 131072 (128 KiB)

I am not sure if the memory values are internally always in KB (which would make the fix rather easy) or if depending on configuration settings / environment variable / postgres version this might require a lookup for the base unit before pretty-printing it.

@foxxx0
Copy link
Author

foxxx0 commented Mar 6, 2018

Just found out, that the value for maintenance_work_mem is pretty-printed correctly in the "System Information" block at the bottom:

maintenance_work_mem | 131072 (128 MiB)

@mdevan
Copy link
Contributor

mdevan commented Mar 6, 2018

Are you seeing the incorrect value in the "Vacuum Progress:" section?

@foxxx0
Copy link
Author

foxxx0 commented Mar 6, 2018

Yes indeed, i have corrected the initial post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants