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

MemoryInfoEx Probably Return wrong value #277

Open
VOID001 opened this issue Nov 4, 2016 · 1 comment
Open

MemoryInfoEx Probably Return wrong value #277

VOID001 opened this issue Nov 4, 2016 · 1 comment

Comments

@VOID001
Copy link

VOID001 commented Nov 4, 2016

Hi, when I want to get a process memory usage info, I use MemoryInfoEx Structure, and what it print out seems wrong

mem used {"rss":1990656,"vms":105930752,"shared":1150976,"text":4096,"lib":0,"data":0,"dirty":101990400}

According to the linux man page Dirty and Library is not used since Linux 2.6, and My Linux kernel is 4.7.2, but dirty get from emoryInfoEx is not 0, and what's more, data field should not be zero

I cat /proc/$$/statm and /proc/$$/status, I found the value in "dirty" field equals the statm data field, so I think the print data should look like this

{"rss":1990656,"vms":105930752,"shared":1150976,"text":4096,"lib":0,"data":101990400,"dirty":0}
@shirou
Copy link
Owner

shirou commented Nov 7, 2016

Thanks and you are right. Original psutil has no dirty (http://pythonhosted.org/psutil/#memory) now, I think restruture is required. ( but no schedule is defined yet...)

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

No branches or pull requests

2 participants