huge swap used size ! bad memory management

samiqa

macrumors newbie
Original poster
Apr 9, 2015
14
1
I have problems with my memory management on 10.10.3 " actually it was even on 10.9.5 "
as you can see on the picture there is like 4gb free but the swap used is 1gb !!
i know that the swap used when the memory is full , but i have like 4 gb free !
can someone explain to me if that is normal ?!

Screen Shot 2015-06-20 at 12.06.16 PM.png
 

simonsi

macrumors 601
Jan 3, 2014
4,849
716
Auckland
Normal. That is a cumulative swap figure since the last restart so it depends on what your memory usage has been, not necessarily just what it is now. Your graph is green so you don't have anything to worry about. How much swap is used depends on the apps you have running and been running since that last restart. Right now I have 12GB used of my 16GB and 700MB swap used.
 

maflynn

Moderator
Staff member
May 3, 2009
63,860
30,384
Boston
1GB isn't that big, but if you're worried about it, reboot and that will clean it out.

I don't think seeing 938MB of swap space is an indictment on Yosemite's memory management.
 

throAU

macrumors 603
Feb 13, 2012
5,287
2,278
Perth, Western Australia
I have problems with my memory management on 10.10.3 " actually it was even on 10.9.5 "
as you can see on the picture there is like 4gb free but the swap used is 1gb !!
i know that the swap used when the memory is full , but i have like 4 gb free !
can someone explain to me if that is normal ?!

View attachment 562691
Let me guess, you have a degree in computer science?

No?

Then why do you consider it to be bad memory management?


A decent OS will pro-actively page inactive pages out to disk so that if and when memory is required for some other purpose, the swap out is already done. It can just dump the pages in memory immediately and re-allocate them.

If it had not paged them to disk already, the memory allocation would stall while they are paged out.
 
  • Like
Reactions: old-wiz