Giter Site home page Giter Site logo

Comments (19)

rk4an avatar rk4an commented on August 31, 2024

Hi,

Thanks for your contribution πŸ˜ƒ I paste the link of your commit below, we need a Mac computer to try it on different version.

https://github.com/pelletierr/phpsysinfo/commit/5b396a8b2885307b71a5331b3f0dab9801c0f29e#diff-d41d8cd98f00b204e9800998ecf8427e

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

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.

pelletierr avatar pelletierr commented on August 31, 2024

Oh.. and I'm running my patch here : http://www.menzonet.org/phpSysInfo :)

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

Please paste output of commands:
vm_stat
sysctl hw.memsize

I'll test it tomorrow morning on different versions of the system.

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

Unfortunately, version 10.8.5 received the wrong values

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

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.

namiltd avatar namiltd commented on August 31, 2024

Paste values ​​from Activity Monitor and corresponding vm_stat.

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

capture decran 2014-08-06 a 10 57 14

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.

namiltd avatar namiltd commented on August 31, 2024

Try now.

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

It doesn't make sense...
image

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

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.

pelletierr avatar pelletierr commented on August 31, 2024

Anonymous pages doesn't work to list app memory. My server's runing 7.5GiO/8GiO app memory all the time.

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

appMemory means "Kernel + applications" (Pages wired down + Anonymous pages)

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

It is now what Activity Monitor shows though.

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

If ok close issue (also check your second issue).

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

sorry, said "now" but wanted to say "not"

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

I guess best option would be to define new mem variables to show wired and compressed. I started looking into it.

from phpsysinfo.

namiltd avatar namiltd commented on August 31, 2024

Test now (Pages occupied by compressor as buffers).

from phpsysinfo.

pelletierr avatar pelletierr commented on August 31, 2024

You should'nt set buffer to 0 if there's nothing, that way the line won't be drawn

from phpsysinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.