Not sure why you keep saying they are the same when they are clearly not in situations I have expereinced, told you about, yet ignored when you keep posting the same info.
I think there may be some misconception regarding what Inactive memory is. Reading up on FreeBSD memory management it seems Inactive memory is either:
- memory recently released (clean);
- memory recently paged out (clean);
- or memory that has not been touched for a longer period (dirty).
Clean memory is indeed similar to free memory. Only reason it is kept as inactive is to be able to reclaim it faster in the event the system that most recently used it is restarted/awaked again. However, dirty inactive memory must first be paged out before it can be used and hence can be more expensive to use.
Basically, even with lot of inactive memory, depending on how much of it is dirty respectively clean you may or may not encounter lot of page outs (the man page states that purge flushes disk caches).
Since unixes like OS X, FreeBSD and Linux love to cache lot of I/O accesses to speed those accesses up (especially if you use a HDD) I can imagine that disk intensive applications with frequent read and writes may eventually hog the system due to lot of caches being used.
Since the purge command seems to resolve your issue, what I described above seems to be the most likely cause of your problem.
Personally, even after weeks of uptime I have never experienced any kind of extensive page outs, slow downs or other memory issues and that with Safari, Mail and some other apps constantly running. Since none of my apps are disk intensive I guess my system uses very few caches and those used are probably periodically flushed from time to time leaving me with lot of "free" memory.
Basically, I believe there is nothing wrong with the memory management. This is just how it is designed to work. As with all algorithms there are always trade offs made and hence no algorithm will work perfectly for every one all the time. What you have encountered is the trade off made by the memory management algorithm of OS X.
The memory management in OS X does not differ much from other unixes like FreeBSD and Linux and I'm sure you can find similar discussions in forums related to those unixes as well.
Does all this make sense to you ?