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

Have swap_memory() rely on /proc fs #1015

Closed
giampaolo opened this issue Apr 21, 2017 · 0 comments
Closed

Have swap_memory() rely on /proc fs #1015

giampaolo opened this issue Apr 21, 2017 · 0 comments

Comments

@giampaolo
Copy link
Owner

giampaolo commented Apr 21, 2017

...so that it can be used in conjunction with psutil.PROCFS_PATH in order to support Linux containers.
Right now swap_memory() relies on sysinfo syscall exposed as a C extension.
This use case is well summarized here:
https://fabiokung.com/2014/03/13/memory-inside-linux-containers/
There are of course other APIs such as disk_partitions() which do not rely on /proc fs and which cannot be used with Linux containers, but memory-related APIs are more important so they deserve to be nicer in this sense.

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

1 participant