Comments (19)
Hi,
Thanks for your contribution π I paste the link of your commit below, we need a Mac computer to try it on different version.
from phpsysinfo.
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.
from phpsysinfo.
Oh.. and I'm running my patch here : http://www.menzonet.org/phpSysInfo :)
from phpsysinfo.
Please paste output of commands:
vm_stat
sysctl hw.memsize
I'll test it tomorrow morning on different versions of the system.
from phpsysinfo.
Unfortunately, version 10.8.5 received the wrong values
from phpsysinfo.
vm_stat : Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 753222.
Pages active: 1870856.
Pages inactive: 535981.
Pages speculative: 531793.
Pages throttled: 0.
Pages wired down: 443492.
Pages purgeable: 277.
"Translation faults": 2912088170.
Pages copy-on-write: 239224603.
Pages zero filled: 962449612.
Pages reactivated: 378063.
Pages purged: 635699.
File-backed pages: 844582.
Anonymous pages: 2094048.
Pages stored in compressor: 79413.
Pages occupied by compressor: 56969.
Decompressions: 2126.
Compressions: 82387.
Pageins: 1961548.
Pageouts: 23343.
Swapins: 264.
Swapouts: 264.
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.
from phpsysinfo.
Paste values ββfrom Activity Monitor and corresponding vm_stat.
from phpsysinfo.
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 10618.
Pages active: 1894043.
Pages inactive: 988141.
Pages speculative: 806200.
Pages throttled: 0.
Pages wired down: 437176.
Pages purgeable: 10356.
"Translation faults": 2938853787.
Pages copy-on-write: 241916814.
Pages zero filled: 971743078.
Pages reactivated: 379509.
Pages purged: 637333.
File-backed pages: 1552166.
Anonymous pages: 2136218.
Pages stored in compressor: 77894.
Pages occupied by compressor: 56429.
Decompressions: 3639.
Compressions: 82391.
Pageins: 1973731.
Pageouts: 23343.
Swapins: 264.
Swapouts: 264.
from phpsysinfo.
Try now.
from phpsysinfo.
from phpsysinfo.
Mio <-> Gio
10.01+5,75 = 15.75
15.99-15.75=0,24 = only 240 Mio unknown memory
Look at: http://www.badrit.com/blog/2014/5/1/how-to-calc-memory-usage-in-mavericks-programmatically
from phpsysinfo.
Anonymous pages doesn't work to list app memory. My server's runing 7.5GiO/8GiO app memory all the time.
from phpsysinfo.
appMemory means "Kernel + applications" (Pages wired down + Anonymous pages)
from phpsysinfo.
It is now what Activity Monitor shows though.
from phpsysinfo.
If ok close issue (also check your second issue).
from phpsysinfo.
sorry, said "now" but wanted to say "not"
from phpsysinfo.
I guess best option would be to define new mem variables to show wired and compressed. I started looking into it.
from phpsysinfo.
Test now (Pages occupied by compressor as buffers).
from phpsysinfo.
You should'nt set buffer to 0 if there's nothing, that way the line won't be drawn
from phpsysinfo.
Related Issues (20)
- Voltage Module doesn't show voltages in mV HOT 2
- Error: nvme - Failed to scan topology HOT 1
- Who to contact for security issues HOT 1
- plugin warnings HOT 1
- Any plan to support BTRFS raid status? HOT 1
- PHP throws a error: Level : 2 Message : Constant PSI_SYSTEM_CODEPAGE already defined HOT 1
- FileSystem Mount structure HOT 1
- Add Proxmox detection support. HOT 3
- phpsysinfo v3.3.4: php error HOT 2
- /bin in mounted file systems HOT 6
- List of IP addresses (IPv6) of clients authorized to run? HOT 3
- xml.php error 500 HOT 3
- phpsysinfo 3.4.3 does not work with php 8 and later HOT 12
- Data from ipmicfg -pminfo (PMBus) HOT 15
- Fetching info from pmset no longer works after upgrading macOS. HOT 6
- No IDs column in SMART Attributes table: how to configure what to display? HOT 13
- Sensors via SSH HOT 8
- Updates Notifier in Ubuntu 24.04 HOT 4
- phpsysinfo stopped working properly HOT 2
- Newbie here: How to show temps? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpsysinfo.