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

AttributeError: psutil has no attribute 'dirty' #2122

Closed
manjhi-amit opened this issue Jul 13, 2022 · 1 comment
Closed

AttributeError: psutil has no attribute 'dirty' #2122

manjhi-amit opened this issue Jul 13, 2022 · 1 comment

Comments

@manjhi-amit
Copy link

manjhi-amit commented Jul 13, 2022

Summary

  • OS: Ubuntu1804
  • Architecture: 64bit, 32bit, ARM, PowerPC, s390
  • Psutil version: 5.9.0
  • Python version: python3.6.8
  • Type: scripts

Description

Hello guys I am working on a python3 migration project in which I have upgraded psutil version to 5.9.0
here is a snippet of my code

`import psutil

mem = psutil.virtual_memory()

x.add_metric(schema.yy_MEMORY_DIRTY, mem.dirty)`
Screenshot 2022-07-13 at 2 23 44 PM

Attaching screenshots for your reference

@giampaolo
Copy link
Owner

https://psutil.readthedocs.io/en/latest/#psutil.virtual_memory is not supposed to return any dirty mem info. That's psutil.Process.memory_info().

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

No branches or pull requests

2 participants