I don't want to keep repeating myself, but... Since Mavericks it doesn't matter how much RAM is being "used"!
And if the OS is STILL paging out to secondary memory? I've consistently got 7.9+ of 8GB 'used' in Activity Monitor, GB's of Virtual Memory and up to 100's MB of swap used at any one time even with very little open. iStat Menus keeps reporting 2GB used despite the above. I'm getting occasional, but annoying, beach balls when clicking menu items and am wondering how people with 4GB are going on.
And if the OS is STILL paging out to secondary memory? I've consistently got 7.9+ of 8GB 'used' in Activity Monitor, GB's of Virtual Memory and up to 100's MB of swap used at any one time even with very little open. iStat Menus keeps reporting 2GB used despite the above. I'm getting occasional, but annoying, beach balls when clicking menu items and am wondering how people with 4GB are going on.
And if the OS is STILL paging out to secondary memory? I've consistently got 7.9+ of 8GB 'used' in Activity Monitor, GB's of Virtual Memory and up to 100's MB of swap used at any one time even with very little open. iStat Menus keeps reporting 2GB used despite the above. I'm getting occasional, but annoying, beach balls when clicking menu items and am wondering how people with 4GB are going on.
Memory pressure is the only thing that matters unless you're troubleshooting actual problems. If your memory pressure is in the green you're good to go, just ignore how much RAM is being "used".
That's not normal at all. Maybe a reinstall?
I've only got 4 GB and Yosemite runs just as smooth as Mavericks.
See, it's not so much that 7+ GB of RAM are actively being used but rather past processes's data being stored. The OS determines the likelihood of this previous data to be used again by the CPU. Like I said before, it's a waste of time for the CPU to perform a page swap just to "free up" the RAM for the sake of freeing up space. The Memory Pressure graph is a great indicator of the actual RAM being actively used. In my case when I look at all my processes running, I'm actively using about +/- 700 MB but I'm using 7.1 GB of RAM. This is mainly kernel tasks, which is completely normal (I'm not running many applications).
Open the terminal, type in vm_stat and paste the output here. I've had one beach ball so far, when I typed in my password for iCloud. That happened after the first login on a Mac Pro with 6 cores and 32 GBs of memory.
To bad there is not a sticky on this since it is becoming an often asked question and complaint.
memory pressure is key and if everything is working, stop looking at the Activity Monitor
Open the terminal, type in vm_stat and paste the output here. I've had one beach ball so far, when I typed in my password for iCloud. That happened after the first login on a Mac Pro with 6 cores and 32 GBs of memory.
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 397188.
Pages active: 882673.
Pages inactive: 159994.
Pages speculative: 426591.
Pages throttled: 0.
Pages wired down: 229648.
Pages purgeable: 32854.
"Translation faults": 3737007.
Pages copy-on-write: 307484.
Pages zero filled: 2031481.
Pages reactivated: 43.
Pages purged: 0.
File-backed pages: 709514.
Anonymous pages: 759744.
Pages stored in compressor: 0.
Pages occupied by compressor: 0.
Decompressions: 0.
Compressions: 0.
Pageins: 505787.
Pageouts: 0.
Swapins: 0.
Swapouts: 0.
Amen! This should be a stickied, one post thread, that's locked, with one sentence about how this works. I was so hoping this was over after months of those threads when Mavericks came out.
8 GB system here, Yosemite uses 2.1 GB Ram after reboot with the standard OS X deamons. Looks quite normal to me.
vm_stat output at roughly the same time the image at the bottom of this post was taken:
PHP:Mach Virtual Memory Statistics: (page size of 4096 bytes) Pages free: 397188. Pages active: 882673. Pages inactive: 159994. Pages speculative: 426591. Pages throttled: 0. Pages wired down: 229648. Pages purgeable: 32854. "Translation faults": 3737007. Pages copy-on-write: 307484. Pages zero filled: 2031481. Pages reactivated: 43. Pages purged: 0. File-backed pages: 709514. Anonymous pages: 759744. Pages stored in compressor: 0. Pages occupied by compressor: 0. Decompressions: 0. Compressions: 0. Pageins: 505787. Pageouts: 0. Swapins: 0. Swapouts: 0.
(By the time I've finished typing this post, used is now at 7.5GB without any further windows having been opened.)
Yosemite clearly has issues with memory management. I've got issues on 2 of our machines (2013 rMBP and iMac) with Mail. Just composing an email with zero attachments, I can get about 3 sentences in before ram and cpu are pegged, forcing me to force quit Mail.
If I just leave Mail running in the background, it's fine and stays within normal usage numbers, but composing emails is now impossible. I've moved to unibox now, just so I can keep working. I prefer the tight integration with OSX that Apple's native Mail has, so hopefully they'll figure out what's wrong and fix it soon.
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 1458946.
Pages active: 2023866.
Pages inactive: 55063.
Pages speculative: 82097.
Pages throttled: 0.
Pages wired down: 426367.
Pages purgeable: 557917.
"Translation faults": 138960097.
Pages copy-on-write: 1583024.
Pages zero filled: 104869824.
Pages reactivated: 3509319.
Pages purged: 1652505.
File-backed pages: 209344.
Anonymous pages: 1951682.
Pages stored in compressor: 560361.
Pages occupied by compressor: 146002.
Decompressions: 6265966.
Compressions: 16155052.
Pageins: 3148930.
Pageouts: 104928.
Swapins: 1612668.
Swapouts: 1835524.
Pages free: 4615.
Pages active: 1344594.
Pages inactive: 1750604.
Pages speculative: 4158929.
Pages throttled: 0.
Pages wired down: 1127345.
Pages purgeable: 17357.
"Translation faults": 10775050.
Pages copy-on-write: 290985.
Pages zero filled: 3965297.
Pages reactivated: 3411.
Pages purged: 265.
File-backed pages: 6008532.
Anonymous pages: 1245595.
Pages stored in compressor: 0.
Pages occupied by compressor: 0.
Decompressions: 0.
Compressions: 0.
Pageins: 8841912.
Pageouts: 26.
Swapins: 0.
Swapouts: 0
It's impossible to diagnose your issue with the information you've provided, but I can assure you that I am able to compose emails with more than 3 sentences perfectly fine on all my Macs with Yosemite. Some of the figures there do show a bit of "Memory Pressure", but I would love to know what the computer is doing/has been doing.
All 31 GB used!!!! OMG!!!
Image
Code:Pages free: 4615. Pages active: 1344594. Pages inactive: 1750604. Pages speculative: 4158929. Pages throttled: 0. Pages wired down: 1127345. Pages purgeable: 17357. "Translation faults": 10775050. Pages copy-on-write: 290985. Pages zero filled: 3965297. Pages reactivated: 3411. Pages purged: 265. File-backed pages: 6008532. Anonymous pages: 1245595. Pages stored in compressor: 0. Pages occupied by compressor: 0. Decompressions: 0. Compressions: 0. Pageins: 8841912. Pageouts: 26. Swapins: 0. Swapouts: 0
I understand that the issue I'm seeing is not widespread, but I also know I'm not alone as the bug report I posted was merged with another. Apple has been trying to diagnose what's going on and I've sent them several system files, specifically when the Mail pegs both ram and cpu. I only have 16gb's of ram, but have seen it hit 52gb's, at which point the system requests I force quit Mail.
It's got something to do with iCloud and accounts, as that has been where Apple seems to be focused. Even after removing all my email accounts, then setting them up fresh, I'm getting some system irregularities, where the accounts duplicate themselves, even though I've only entered them once. It's very strange and something I've experienced for the past month or so (on DP betas and DP GM's).
Odd question: what drive you running? Mine's a fusion and I'm wondering if, with the speed of the SSD, the OS is allowing more use of physical RAM because swap is not expensive in terms of performance.
Pageouts = 0 = wonderful. It is what you want and the memory management is running just perfectly and beautifully. Any slows down, issues, glitches, whatever has nothing to do with your memory.
Good! The OS is rebuilding caches that you have destroyed by the reboot, which is what you want to have a "snappy experience".
Here is an old post that explains what translation faults are, if you are interested. Even though it's old, it's relevant
http://forums.macnn.com/90/mac-os-x/126475/what-are-translation-faults/
Normally when you reboot, you are actually making the computer run slower for while because you have cleared caches. typing sudo purge in terminal will do the pretty much the same thing, but it's completely pointless, so unless you have a real reason to use it, then it's best to stay away and allow the system to do what it needs to with memory. The people who designed this are actually pretty smart.
It wasn't a 'reboot' for the sake of it. I just happened to turn the machine off when I went to work last night. Own fault, aimed for 'sleep', hit 'Shut Down' and just decided to follow through at the prompt.
As I say, I have no issue with it using it all IF there's no performance hit, but when I'm getting spinning beachballs just by clicking a menubar icon and the memory pressure is up high, dipping into the red with hardly anything running I do count that as a performance hit.