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
merged 2 commits into from Feb 25, 2019

Conversation

Projects
None yet
3 participants
@omoerbeek
Copy link
Member

commented Feb 20, 2019

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.

Checklist

I have:

  • read the CONTRIBUTING.md 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)
Change the way getRealMemUsage() works on Linux (using statm)
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.
Show resolved Hide resolved pdns/dnsdistdist/DNSDIST-MIB.txt
Show resolved Hide resolved pdns/recursordist/RECURSOR-MIB.txt
Show resolved Hide resolved pdns/misc.cc Outdated

@omoerbeek omoerbeek merged commit 997feab into PowerDNS:master Feb 25, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@omoerbeek omoerbeek deleted the omoerbeek:memusage-statm branch Feb 27, 2019

@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
You can’t perform that action at this time.