Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Right now with "green" memory pressure and not so many Safari+FF tabs open, I see 16GB physical, 13.41 used, 2.68 cached, 2.32 swap, 6.57 app, 2.52 wired, 3.89 compressed. Why is there swap used when I have free memory?

I don't know, long ago gave up on understanding this fully. Memory pressure is the only good signal. Or just how slow the Mac feels.

 help



> Why is there swap used when I have free memory?

That data may have been evicted during a previous moment of higher memory pressure. If it hasn't been needed since, leaving it in swap probably makes more sense than preemptively paging in data that's known to be cold.


Yeah you're right. But now I'm wondering if it preferred writing to swap over evicting the cache at that time... can make sense if the cache is being hit more than the pages it's swapping out.

13GB app usage is also odd. I feel like running the same thing with half the RAM wouldn't really result in like 5GB of swap.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: