Over in the Aperture community, I posted an essay on RAM and the move to Lion which may help you. It's probably illegal to post it again, but so what. Shoot me! I think this will help some people.
-------------------------------------------------------------------------------- --------
John Kitchen wrote:
I'm going to suggest something that may explain why sometimes things go badly for one person, and go well for the next person when moving to Lion.
Again it is the RAM issue. Mac OS X (like most OSes), is a virtual storage system which squeezes a lot of potential RAM demand into a much smaller amount of RAM.
What needs to be understood here is "working set".
Looking at my Activity Monitor beside me, I see that the Activity Monitor process itself is consuming about 95 MB of virtual memory, whereas it is using less than 20MB of real memory. "Real" memory is the physical stuff with the chips etc.
So how can 95 fit into 20? It can't, but what OS X has determined is that the "working set" of memory for the Activity Monitor process is less than 20MB. The working set is that part of the process's allocated memory which is getting a lot of use, and the rest is parked on disk in case it's needed. For example, it may be program code which is only used under unusual or different circumstances, such as text strings in languages other than the one I am currently using.
The tricky thing about "working set" is that while you have enough RAM to contain that "working set", everything tends to go very, very well. Evidence that it is working well is that "Page Outs" are zero (see Activity Monitor).
But if that working set grows, then you will eventually see Page Outs happening as OS X finds that it has to swap out pages to make room for other pages. (A "page" is 4K bytes).
Within reason, a little paging is OK. If Page Outs only happen a few times per minute, they probably won't hurt you much since they represent a work delay of only about1/100th of a second (very approximately, don't shoot me for this estimate!).
The problem is that the difference between the working set fitting and not fitting in RAM can be catastrophic with only a slight change in the working set size. One minute, all is well, the next it's a mess. Or really, I should say one millisecond, all is well, and the next it is a mess. Things happen really quickly in RAM!
The best analogy is the freeway. We are all zipping along at near the speed limit in very heavy traffic, something happens in the opposite lanes causing gawking drivers to ever-so-slightly back off on the gas and slow down just a little, and the next thing, we have a traffic snarl.
Back to your Mac. In the pre-Lion situation, if your working set for the processes you choose to use is very, very close to filling your RAM, the move to Lion may push this over the edge, causing the "traffic snarl".
On the other hand, if you had plenty of spare RAM with Snow Leopard, the move to Lion will reduce that spare RAM, but not enough to cause paging to rise enough to hurt you.
How can you get some insight into waht will happen when moving to Lion? That's really hard, but what is for sure, if you are already getting Page Outs in any significant quantity, that quantity will rise with Lion unless you change your work habits (like run fewer apps at the same time). Page Outs under Snow Leopard should send off warning bells for you to get more RAM before going to Lion.
My advice is always to have more RAM than you need.
In another thread, a poster said something like "Sure, Apple said you can put Lion in a 2GB Mac, but they didn't say you'd enjoy it!"