Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
I'd appreciate if someone could suggest some guidelines to maintain a stable system from memory perspective.

My system: Mac mini 2011 server running 10.8.3 (I do not use the server app)
Hard drive: 132gb of 500gb available
Memory: 10gb

I recently upgraded from 4gb to 10gb and yet recently the system slowed down substantially. Free memory was less than 1gb. After I restarted the mac, free memory went upto over 5 and as I monitor it slowly creeps down to the below.

Untitled.png


The things that I think that may be memory intensive are
1. XBMC
2. Safari and Firefox
3. Total spaces which is a desktop management app. It is running 5 desktops.

I guess my questions are:

* Do installed apps that are not running still consume memory
* Why do I slowly loose memory over time, even if I close apps.
* Any suggestions or ideas would be great.

PS. I am not using photoshop, FCP etc. I do have a reasonable number of small utility style apps as you can guess by the length of the scroll bar. I also do run onyx once a month.

Thanks, appreciate your help.
 
Last edited:

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
Your page outs and swap used do not indicate you not having enough RAM, maybe you could live with 1 GB more RAM, but it seems unnecessary.


I wish I'd grabbed the image when the issue last rose. From memory (my ;) )the page ins were about 14gb and the page outs I think were 1gb... That data is pretty close to what it was but the concern was that I couldn't use the system without restarting it and that the memory use was so tight.
 
Nov 28, 2010
22,670
31
located
I wish I'd grabbed the image when the issue last rose. From memory (my ;) )the page ins were about 14gb and the page outs I think were 1gb... That data is pretty close to what it was but the concern was that I couldn't use the system without restarting it and that the memory use was so tight.

As you can probably see from the link I provided and which you quoted, PAGE INS are not that important with performance. It is the Page Outs and the Swap Used and 1 GB of Page Outs is okay with 10 GB of RAM. If you have the money and the slow downs from paging out 1 GB of RAM (which should take 10 to 20 seconds with an HDD), get another 8 GB module.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,470
288
* Do installed apps that are not running still consume memory
* Why do I slowly loose memory over time, even if I close apps.
* Any suggestions or ideas would be great.

PS. I am not using photoshop, FCP etc. I do have a reasonable number of small utility style apps as you can guess by the length of the scroll bar. I also do run onyx once a month.
1. No. Apps that are on the disk but not launched consume no RAM.
2. Few things in life are perfect. It's hard to say particularly what might be doing this. All those little utilities might be causing trouble collectively, or it might just be a Safari memory leak or something.

3. Don't run Onyx once a month. Emptying caches will slow your Mac down. Rebuilding Spotlight index will slow your Mac down.
A restart every now and then should be all the "maintenance" you need do.

It's possible that the slowdowns might not be memory-related. It could be CPU bottleneck; external drives spinning up, or other factor.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,470
288
But apps that have recently been running and then quit take up RAM don't they? Perhaps I have that wrong?
Some data belonging to those apps will be held in Inactive Memory, which will be freed to other apps if needed.
In short: do not worry about InActive Memory. Consider it "Free".

Also: using RAM is good. Use your RAM! Don't hoard your precious Empty RAM, which you paid for, never to be used. Fill that RAM with data, I say!
 

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
Also: using RAM is good. Use your RAM! Don't hoard your precious Empty RAM, which you paid for, never to be used. Fill that RAM with data, I say!

Says the owner of 16gb ram :D kidding. Yeah I agree, it is there to be used and improve performance. For me, understanding how apps use it though, make it easier to manage the system without unnecessarily buying additional ram.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,470
288
For me, understanding how apps use it though, make it easier to manage the system without unnecessarily buying additional ram.
The point is that there is no management to do. As I said, we haven't determined that your slowdowns are caused by lack of RAM, as you've got Free RAM when it happens.

Here's the Apple Developer reference documentation for memory management:
http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html

Fill your boots!

Says the owner of 16gb ram.
My first Mac had 8 Megabytes of RAM. The System took 2Mb. And the consequences for using it all were much worse than a little sluggishness!
 

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
The point is that there is no management to do. As I said, we haven't determined that your slowdowns are caused by lack of RAM, as you've got Free RAM when it happens.
Without sounding like "how long is piece of string ?",since there was free ram (although small) at the time of slowdown, and there were no cpu spikes or apps not responding, and I checked the spotlight wasn't indexing....are there any other common scenarios, that I missed in this troubleshooting.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,470
288
Hard drives are the biggest bottleneck, regardless of RAM size or CPU power. When you replace an HDD for an SSD, you suddenly realise how much of your "waiting time" was caused by the mechanical disk.

Also, sometimes, there are going to be processes that are going to work the CPU hard, and other processes are going to slow down as a result. It's not necessarily a bad thing that needs to be attended to and avoided to.
Your computer may just need to think about something a bit more than usual.
 

MrNomNoms

macrumors 65816
Jan 25, 2011
1,159
296
Wellington, New Zealand
You'll find that a large portion is being used for a buffer so in effect the page in/page outs don't mean a hill of beans as the data is simply being shuffled around in memory rather than actually physically writing to/from the hard disk. Windows is the same situation along with most other *NIX.
 

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
Thanks guys. Yes I understand the mechanical disadvantage of an HDD in comparison with a SSD which is planned ahead. Another thought came to mind. This Mac mini uses intel 3000 graphics. Since the majority of use of this system is to render video, could the graphics capabilities be a limiting factor and present itself with slowdowns. I don't know how the GPU memory and CPU memory interlace, but just a thought.
 

smithrh

macrumors 68030
Feb 28, 2009
2,746
1,791
I'm wondering if the OP ran into the same situation I've experienced more than a few times - lots of inactive RAM, but ridiculous swapping activity.

While Apple did make some good improvements with memory handling in ML, there are still issues. It looks like Apple is more than aware of this as Mavericks will have even more improvements and changes.
 

activate

macrumors 6502
Original poster
Dec 24, 2011
259
18
I'm wondering if the OP ran into the same situation I've experienced more than a few times - lots of inactive RAM, but ridiculous swapping activity.

While Apple did make some good improvements with memory handling in ML, there are still issues. It looks like Apple is more than aware of this as Mavericks will have even more improvements and changes.

Yes, I am running mavericks on another machine and I am very interested in how the new technologies improve resource handling on the Mac mini when I can try it out at some later stage.
 

smithrh

macrumors 68030
Feb 28, 2009
2,746
1,791
Yes, I am running mavericks on another machine and I am very interested in how the new technologies improve resource handling on the Mac mini when I can try it out at some later stage.

Be aware, some of the new features require apps to be re-worked to understand messages that Mavericks will be sending them wrt memory pressure levels.

So, you will need both Mavericks and updated apps to get the full effect.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.