2
I use a Mac for software development. It has 4GB of RAM (cannot be upgraded), and when I power it on, without any programs run by me, it consumes 2GB of memory. I develop a Rails app and the server itself needs a lot of memory, so I always have a free memory problem.
The question is, why does the OS consume half of my memory?
And is there any way to reduce the memory consumption? I turned off all widgets but does not help so much. I do not want any fancy thing from the OS, but just to develop...
Does anybody have any idea about this?
Ok Guys. I did more inspections to see what is happening there. I agree OSX doesnt consume so much. but i see a very strange behaviour: that, I have arround 1.5GB INACTIVE MEMORY, my Rails server needs more memory, and then it start to use harddisk so much. there are lots of pageouts so that my server stops functioning.
i guess INACTIVE MEMORY should get freed right when some program needs more memory. but it doesnt. when I even do the "purge" command it doent free it so much. So the question is, in what case something like this can happen to the INACTIVE MEMORY? does any body has similar experience?
1I don't want my ram to be used by the OSX. I want to use it myself, but osx consumes half of it. that's the problem. – Az In – 2011-11-27T16:28:08.190
on my netbook i have just 1GB and my ubuntu consumes just 100mb of it. that's why i get courious why osx consumes 2GB and what can be done to reduce it. – Az In – 2011-11-27T16:29:46.767
2OS X itself does not use all your RAM. Your applications do, obvious ones (web browser, email program, Xcode) and less obvious ones (web server, desktop search indexer, UI server, Dock, and regular system services and housekeeping tasks). OS X itself,
kernel_task
, will use much less. Open Activity Monitor and sort the processes by real memory after selecting to display All Processes. – Daniel Beck – 2011-11-27T16:59:39.3031
If you are not familiar with http://www.linuxatemyram.com/, you should read it. Yes, it's for Linux, but the way of thinking about memory consumption applies to all unix-alike systems including Mac OS.
– dmckee --- ex-moderator kitten – 2011-11-27T17:03:18.790Could you add a screenshot of Activity Monitor after a purge with the Memory stats at the bottom and processes sorted by Real Mem at the top? – Daniel Beck – 2011-11-29T20:21:00.950