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

Update Glances with new PsUtil 4.x stats #797

Closed
nicolargo opened this issue Feb 21, 2016 · 2 comments
Closed

Update Glances with new PsUtil 4.x stats #797

nicolargo opened this issue Feb 21, 2016 · 2 comments

Comments

@nicolargo
Copy link
Owner

PsUtil 4.0.0 change log: http://grodola.blogspot.fr/2016/02/psutil-4-real-process-memory-and-environ.html

  1. Implement "Real" process memory info: USS and PSS (MEM plugin)
  2. Memory percent (MEM plugin - TBD)
  3. Extended disk IO stats (DISKIO plugin - TBD)
@nicolargo
Copy link
Owner Author

Implement "Real" process memory info: USS and PSS (MEM plugin)

replace process MEM% column by USS / PSS ?
=> Not possible because memory_full_info need root right for system processes

>>> psutil.Process(1).memory_full_info()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 997, in memory_full_info
    return self._proc.memory_full_info()
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 877, in wrapper
    raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=1)

Add new columns ? => Looks great but add to catch the psutil.AccessDenied error for system processes

Other thinks:

PsUtil 4.0.0
>>> import psutil
>>> psutil.Process().memory_info()
pmem(rss=9428992, vms=51527680, shared=3870720, text=2867200, lib=0, data=5373952, dirty=0)
>>> psutil.Process().memory_info_ex()
pmem(rss=9437184, vms=51527680, shared=3878912, text=2867200, lib=0, data=5373952, dirty=0)
>>> psutil.Process().memory_full_info()
pfullmem(rss=9441280, vms=51527680, shared=3883008, text=2867200, lib=0, data=5373952, dirty=0, uss=5603328, pss=6246400, swap=0)

  • Be carefull to the PsUtit 3.x or lower compatibility.

@asergi asergi changed the title Update Glances with news PsUtil 4.x stats Update Glances with new PsUtil 4.x stats Feb 21, 2016
@nicolargo nicolargo modified the milestones: Next releases, 2.7 Mar 26, 2016
@nicolargo
Copy link
Owner Author

  1. memory_info_ex no longer used in the DEVELOP branch.
  2. memory_full_info (with USS and PSS stats) used for the extended stats (top process)

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