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

used memory not match free command on centos7 #1107

Closed
wanghaiqing2015 opened this issue Jul 11, 2017 · 5 comments
Closed

used memory not match free command on centos7 #1107

wanghaiqing2015 opened this issue Jul 11, 2017 · 5 comments
Labels

Comments

@wanghaiqing2015
Copy link

os: centos 7.1
psutil version : psutil (5.2.2)


[root@test sysmon-1.0.1]# free -b
total used free shared buff/cache available
Mem: 1018978304 578482176 101789696 9592832 338706432 264282112
Swap: 4095733760 348106752 3747627008

[root@test sysmon-1.0.1]# python
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import psutil
psutil.virtual_memory()
svmem(total=1018978304, available=257376256, percent=74.7, used=613167104, free=94851072, active=335736832, inactive=399966208, buffers=0, cached=310960128, shared=9592832)

@wanghaiqing2015
Copy link
Author

578482176
and
613167104

@wanghaiqing2015
Copy link
Author

???

@giampaolo
Copy link
Owner

What's the output of free -V?

@giampaolo
Copy link
Owner

Bump?

@giampaolo
Copy link
Owner

Closing as outdated.

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

No branches or pull requests

2 participants