Does anyone know if OS X handles virtual memory any differently depending on the main storage device?
For example, would a MBA with a SSD have potential undue wear on the SSD if the OS was heavily reliant on the SSD for performing virtual memory tasks on a system with a small (2 Gb) main memory allocation with routine multiple apps running?
If so, is that reason enough that 2 Gb on an MBA is "saving pennies, only to lose dollars" later on?
-
-
2GB is way too little for no page file on windows, however....
Well my new macbook pro has ~ 600Mb of OS 10.6 memory usage when running nothing, less than 850Mb with chrome open, take what you may from that, I don't think that you will touch the Virtual memory, OSX handels memory very nicely, it will fill the ram with OS and App data to load quickly but then remove it if you need that ram, it will not page and thus touch the SSD unless you are using > 2Gb of memory on actual running, operating, applications. I in fact used to run my old Asus UL30Vt with no page file just for that reason, it on windows did not touch 4Gb of usage so with the way more efficent mac I would not worry.
Use the activity monotor to see how much ram you are using, look at the active number plus the wired number under system memory. -
Good info , Sonic. However, my point of posting was not addressed.
Nor am I looking for justification of 4 Gb.
Specifically I am asking that which I indicated in the first sentence of my original post.
I am wondering if OS X does anything to limit the intensity of swapping, specifically writes to an SSD, if the Mac is short on physical memory to begin with. Or is the treatment of such identical across all platforms regardless of storage media? -
-
I take it then your answer to my question is somewhere between a soft "no" and "no comment"?
-
OS X will not touch the swap as long as there is free ram. Afaik Apple hasnt done anything special to reduce writes to a ssd since wear leveling is the job of the ssd controller. If you are afraid of having to use your swap just go with the 4gb even though under normal uswge 2gb should be plenty.
-
due to the nature of Virtual memory I HIGHLY doubt it will matter if your on a disk or SSD. basically when ram is full the machine will page out data (lots of random writes and reads if you are doing a lot of paging), if your out of ram there is NO way to avoid this, simple, SSD or not. OS X or Windows.
So, if you use very little apps at one, 2GB will be fine as it will not/barely touch your swap file and won't wearout your SSD. if you are constantly using all your ram in will beat the crap out of your SSD.
so, personally I'd buy 4GB, but up to you.
PS. 2Gb = 256Mega Bytes of ram... B = Byte, b = bits, -
jackluo923 Notebook Virtuoso
In otherwords, 2Gb reported on the ram is 2 Gigabyte. -
H.A.L. 9000 Occam's Chainsaw
No. It doesn't. It sees SSD's the same as HDD's. Apple leaves wear-leveling and garbage collection to the controller, unlike TRIM with Windows. It's an unintelligent system, but it works decent enough... until Apple can come up with something better in their software or firmware.
If you're apps are eating RAM like candy, get more RAM or live with OSX thrashing random reads and writes to your drive. -
masterchef341 The guy from The Notebook
the wear leveling will be the same as with anything else.
you COULD make a tradeoff of time (or add more processing power and add cost) for less writes by compressing all swap data before writing and decompressing before reading. I doubt apple does that in software, but some hard drives do that on their own. Especially SSD's. Beyond that, there is nothing you can do. If a program needs more memory than is available in main memory, you either write to the hard drive or crash.
Virtual Memory in OS X
Discussion in 'Apple and Mac OS X' started by SP Forsythe, Jun 20, 2011.