I have some questions about memory management in OS X.
I have a G5 2.5GHz with 4.5GB ram. At the moment of this writing the memory usage is as follows:
Wired: 357MB, Active: 301MB, Inactive: 137MB, Used: 795MB, Free: 3.72GB, VM size: 6.71GB.
These are the swapfiles in the VM folder:
swapfile0=64MB
swapfile1=64MB
swapfile2=128MB
swapfile3=256MB
Why do I have so much data in swapfiles when I have so much free ram?
To me this does not look like a very good memory management. I thought the idea was to keep all data i ram as long as ram is available to keep speed at a maximum.
When I got the G5 it had 2.5GB ram and I noticed that when having many apps open at the same time (Photoshop, InDesign, Illustrtator, Freehand, Mail, iTunes, etc)
the computer started to slow down especially when swiching from one app to another. The HD became very active as the system had to read data from disk to ram
at the same time as it had to write data from ram to disk to make free space in ram. This was very slow and irritating so I installed another 2GB of ram to a total of
4.5GB to avoid this problem. But now I see that the system is still paging large amounts of data to disk.
Can anyone explain to me why this happens with so much free ram?
osxman