Lion gets progressively slower over days of uptime -- Any remedies?
From Tiger to Snow Leopard, I could have weeks to months of uptime on my Mac without any major issues. But now with Lion, the machine just gets slower and slower and slower over the course of days. What's worse, this is happening on a Core i7 17" MBP with 8GB of RAM, and Snow Leopard ran beautifully on this system. I notice that some things like "Safari Web Process" and "kernel_task" get huge. Safari will take gigabytes (I don't have THAT many web pages open, and I use ClickToPlugin to avoid flash and such), and the kernel will approach a gigabyte. At the time that the system gets slugglish (unusable even), the disk sounds like it's thrashing, but Activity Monitor has never reported less than 1.5GB of RAM free. Since some apps are rather leaky (e.g. Safari), I have tried just quitting all my apps and restarting them, but that doesn't really help all that much. The only way I have found to get performance back is a reboot. It's shameful that I should have to reboot my Mac at least once per week.
I have filed bug reports on a lot of the performance problems, and the devs have actually been responsive, having me run more tests (sysdiagnose, trace, etc.), but they've given no hints about what I could do to mitigate the problems. And that's what I'm asking about here.
Are there settings I should look at pertaining to kernel memory, disk caching, swappiness, etc. that might improve system memory usage?
Are there any programs that will give me a detailed report or map of system memory usage so that I can identify which programs are using what memory and which ones are causing swapping (or whatever the real problem is)?
Are there any more general diagnostic programs (something on top of dtrace, perhaps) that will help me to understand where the performance bottlenecks are?
Any other diagnostic tools that I haven't thought of?
Thanks!
P.S. I think that 10.7.3 has improved some things, but the main effect has been that I can go a little bit longer before having to reboot.