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

Change the way getRealMemUsage() works on Linux (using statm) #7502

merged 2 commits into from Feb 25, 2019


Copy link

Short description

Use a less expensive way to get memory stats for rel-memory-usage. You can ask for the old way by explicitly asking for special-memory-usage.
Also, implement a getrusage() based getRealMemUsage() for non-Linux systems.


I have:

  • read the document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

If you want the old (expensive) way, use getSpecialMemUsage()
getSpecialMemUsage() is not included in getAllStatsMap()
Also, implement a getrusage() based getRealMemUsage() for non-Linux systems.
pdns/dnsdistdist/DNSDIST-MIB.txt Show resolved Hide resolved
pdns/recursordist/RECURSOR-MIB.txt Show resolved Hide resolved
pdns/ Outdated Show resolved Hide resolved
@omoerbeek omoerbeek merged commit 997feab into PowerDNS:master Feb 25, 2019
@omoerbeek omoerbeek deleted the memusage-statm branch February 27, 2019 14:10
@aerique aerique added this to the auth-4.2.0-beta1 milestone Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants