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

[NetBSD] virtual_memory() metrics are completely wrong #2234

Closed
giampaolo opened this issue Apr 15, 2023 · 0 comments · Fixed by #2235
Closed

[NetBSD] virtual_memory() metrics are completely wrong #2234

giampaolo opened this issue Apr 15, 2023 · 0 comments · Fixed by #2235

Comments

@giampaolo
Copy link
Owner

Summary

  • OS: NetBSD 8.0
  • Architecture: amd64
  • Type: core

Description

$ python3 scripts/meminfo.py
MEMORY
------
Total      :  972.7M
Available  :  959.1M
Percent    :     1.4
Used       :    1.1G
Free       :  173.6M
Active     :  434.3M
Inactive   :  258.4M
Buffers    :  509.4M
Cached     :  692.9M
Shared     :    0.0B
Wired      :  280.0K

In here:

  • available mem is almost the same as total (unrealistic)
  • used is higher than total; there's also a failing test:
======================================================================
FAIL: psutil.tests.test_system.TestMemoryAPIs.test_virtual_memory
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/psutil/psutil/tests/test_system.py", line 286, in test_virtual_memory
    raise self.fail("%r > total (total=%s, %s=%s)"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'used' > total (total=1019899904, used=1210896384)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant