-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Darwin memory usage not good #59
Comments
Hi, Thanks for your contribution 😃 I paste the link of your commit below, we need a Mac computer to try it on different version. |
If I had a beefier setup @ home, I'd virtualize 10.5 to 10.9 so you could try it. It was trial and error to get the good numbers. What Activity monitor was showing before 10.9 was different also. |
Oh.. and I'm running my patch here : http://www.menzonet.org/phpSysInfo :) |
Please paste output of commands: I'll test it tomorrow morning on different versions of the system. |
Unfortunately, version 10.8.5 received the wrong values |
vm_stat : Mach Virtual Memory Statistics: (page size of 4096 bytes) hw.memsize: 17179869184 Note that Activity Monitor doesn't show the same values in 10.8 and 10.9. I changed phpSysInfo to show the 10.9 values, which IMHO makes more sense than what was shown prior to Mavericks, since OS X was doing a lot of file cache but was showing that memory as free. |
Paste values from Activity Monitor and corresponding vm_stat. |
Mach Virtual Memory Statistics: (page size of 4096 bytes) |
Try now. |
Mio <-> Gio 10.01+5,75 = 15.75 Look at: http://www.badrit.com/blog/2014/5/1/how-to-calc-memory-usage-in-mavericks-programmatically |
Anonymous pages doesn't work to list app memory. My server's runing 7.5GiO/8GiO app memory all the time. |
appMemory means "Kernel + applications" (Pages wired down + Anonymous pages) |
It is now what Activity Monitor shows though. |
If ok close issue (also check your second issue). |
sorry, said "now" but wanted to say "not" |
I guess best option would be to define new mem variables to show wired and compressed. I started looking into it. |
Test now (Pages occupied by compressor as buffers). |
You should'nt set buffer to 0 if there's nothing, that way the line won't be drawn |
Darwin display of memory usage is not good. I fixed it in my fork
The text was updated successfully, but these errors were encountered: