1) I did upgrade to Mountain Lion, and no it didn't solve the issue.
2) I even splurged for the new MBP Retina and tossed 16GB of RAM in the system, and it still takes ~30-60sec to come out of a screen saver once a day because it's repaging wired data in and out of swap. SSD is fast, but it doesn't fix stupid. That I did this in an attempt to over come the pain of spinning disk really soured my opinion of Apple, especially since the only reason I moved to Lion to begin with was f@#$'ing contacts syncing on iCloud and my iPhone. That required an OS upgrade. In. Sane. That it's years later and this thread/conversation is still going on only adds insult to injury.
Mini-missive below.
In case anyone else is interested, it's roughly basically the same stall you'd experience if you ran `purge` occasionally when you log in, return from a screen saver, or cmd+tab and have a set of programs with a large resident memory footprint running. And in the case of the "modern web browser," a browser open with a handful of tabs.
I've found that if I kill all web browsers this problem goes away for me. Which means what? "Don't use a web browser or else you'll anger the ****** VM pager gods?" Yeah, I'm a disgruntled Apple user now, and not for a lack of either buying in to the latest and greatest hotness, or even for technically understanding what's going on under the hood. And yeah, I'm lucky in that for most of what I do, I can get by with a browser closed, so when I need to be productive and don't want to tickle this problem, I simply shut down my browsers and the paging problem basically goes away. I can only imagine what it's like for others in other lines of work. That said... I'm using a 16GB MBP for Terminal/iTerm2 and Mail.app. Nutty. I would've been just fine with 4GB or 8GB or RAM. *sigh*
As I write this "WebProcess" is running with 11GB of RAM, which is impressive since I restarted Safari yesterday. Firefox isn't much better, same with Chrome. I spend my life in a Terminal/iTerm session, and have a handful of tabs up to reference sites, docs, etc. I thought I'd be clever and would help minimize the browser RAM bloat by not install Flash or Java on this machine (something I'm still succeeding at maintaining... barely), but that hasn't helped much either. I switch between browsers every few days just to make a habit of closing out processes. That I've changed my usage habits incenses me. Anyway.
Slightly off topic and in case anyone at Apple actually reads these things, I'd be *VERY* happy with a _slower_ web browser that didn't gobble GB of RAM. And no, Chrome, Firefox and Safari are all terrible at memory utilization. Is there a no-JIT option for JavaScript? That'd be nice. Or, could I run the same version of Safari that my iPad has, but on my computer? As a user, I really don't care about topline benchmarks - that's not of interest to me. How about the option of turning off all JavaScript execution after a page loads? Like a rat wanting to be fed a food pellet, I'd absolutely mash that that button after every page loads. My hunch is it's all of the tracking javascript that runs resident in the background to "ping" your browser to see if you're still surfing a site, or is rotating an ad through. Whatever the case is, it's irritating and I'd be content with slow and small. JavaScript, the new Flash... ugh.