Closed jchien14 closed 3 years ago
May be related to https://github.com/giampaolo/psutil/issues/685 ?
Sorry for the huge delay in responding. I'm not sure why VMS is so high on OSX but there is a test which compares VMS result with ps
and they match 100%:
https://github.com/giampaolo/psutil/blob/b360dcd77bac68cb85fa5bd6f73db17723c0c26b/psutil/tests/test_posix.py#L109
I also see over 2GB memory for basically every process, which is definitively weird (see VSZ column in ps output below). I'm confused.
osx-elcaptain:psutil root# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 73 3.6 0.2 2486736 10404 ?? Ss 18Oct16 0:12.27 /usr/libexec/opendirectory
root 98 1.0 0.0 2449364 1324 ?? Ss 18Oct16 0:07.65 /usr/sbin/notifyd
vagrant 39635 0.9 0.0 2451904 1620 ?? S 26Oct16 0:02.07 sshd: vagrant@ttys001
_securityagent 277 0.8 0.9 2569220 39760 ?? Us 18Oct16 6:25.46 /System/Library/Frameworks
root 1 0.4 0.1 2468540 6128 ?? Ss 18Oct16 1:44.82 /sbin/launchd
_windowserver 161 0.2 0.9 2653096 37320 ?? Ss 18Oct16 3:30.38 /System/Library/Frameworks
root 39686 0.1 0.0 2444656 1284 s001 S 26Oct16 0:00.41 -sh
root 39684 0.0 0.1 2444408 3008 s001 S 26Oct16 0:00.03 sudo su -
vagrant 39636 0.0 0.0 2444652 1372 s001 Ss 26Oct16 0:00.03 -bash
...
This issue has been automatically closed because there has been no response for more information from the original author. Please reach out if you have or find the answers requested so that this can be investigated further.
Hey all, getting this in Python with psutil for process memory usage. (18120 has no parent process by the way).
When doing a vmmap though on the two processes, this is the result:
This is the result in Activity Monitor: http://i.imgur.com/RGOHBZT.png
Any ideas why psutil is reporting over 2GB for Virtual Memory? Is this a bug? This is on OSX 10.11, 64-bit Python.