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

Not reporting Swap on Ubuntu 16.04 #38

Closed
plutocrat opened this issue Mar 28, 2018 · 3 comments
Closed

Not reporting Swap on Ubuntu 16.04 #38

plutocrat opened this issue Mar 28, 2018 · 3 comments

Comments

@plutocrat
Copy link

Getting error "Warning: Swap is not reported by this system"

OS: Ubuntu 16.04.

free
total used free shared buff/cache available
Mem: 1016056 281732 94528 67752 639796 459000
Swap: 1048572 184044 864528

cat /proc/swaps
Filename Type Size Used Priority
/swapfile file 1048572 184488 -1

Let me know what debugging info you need. My python isn't good enough to see what the script is looking for. Running as root, so should have full permissions.

@pixelb
Copy link
Owner

pixelb commented Mar 28, 2018

Can you show the output from these commands:

$ cat /proc/sys/kernel/osrelease
$ ls -l /proc/$$/smaps

pixelb added a commit that referenced this issue Mar 28, 2018
@pixelb pixelb closed this as completed Mar 28, 2018
@plutocrat
Copy link
Author

Sure.

cat /proc/sys/kernel/osrelease
4.4.0-116-generic
ls -l /proc/$$/smaps
-r--r--r-- 1 root root 0 Mar 28 15:55 /proc/8551/smaps

@plutocrat
Copy link
Author

plutocrat commented Mar 28, 2018

I can confirm the warning has disappeared in this version.
https://raw.githubusercontent.com/pixelb/ps_mem/bfc18bf3d2af0e04c4b84ec0dc4d7c2577d9dbc6/ps_mem.py
But no further output after the final lines, where the warning formerly appeared:

16.2 MiB + 579.0 KiB = 16.8 MiB lfd - sleeping
36.5 MiB + 11.1 MiB = 47.5 MiB spamd child
73.8 MiB + 454.5 KiB = 74.3 MiB mysqld
79.8 MiB + 76.1 MiB = 155.9 MiB apache2 (10)
x ---------------------------------
341.1 MiB
x =================================

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