Re:Apple has a memory problem and we're all paying for it
by Delk on Friday November 10, 2023 @11:34AM
(#38220912)
I don't know how macOS manages memory or reports its use, but how does the data having been swapped out change anything? If N pages of data of those processes have been swapped out, that means those processes have allocated and used that many pages of memory (plus any that are actually in RAM). The OS heuristics just decided it wasn't worthwhile to keep those particular pages in RAM under current circumstances.
If the processes just allocated a lot of memory and never touched it, it might be reasonable to say they don't actually use it because the OS might never actually reserve any physical resources for it. (Happens a lot e.g. in Linux with memory overcommit allowed by default and some processes allocating dozens of gigabytes of virtual memory, most of which they never actually use.)
But would those pages then count towards swap use either? Only dirty pages end up in swap. Unless macOS counts allocated but untouched pages towards used swap as committed resources.
edit: better wording
Re:Apple has a memory problem and we're all paying for it
by vikramkr on Friday November 10, 2023 @01:43PM
(#38222769)
Swap memory use is worse than actual memory use. If it just reserving a big block and not using it then fine whatever but if it's using a lot of swap that means ram is probably bottlenecking you since swap is slow.
Re:Apple has a memory problem and we're all paying for it
by solarkraft on Friday November 10, 2023 @06:40PM
(#38226033)
It's of course slower than real RAM, but Apple are using pretty fast SSDs and possibly a novel model of swapping, making it effectively pretty good (certainly not perfect!).
Re:Apple has a memory problem and we're all paying for it
by Rebelgecko on Saturday November 11, 2023 @02:30PM
(#38233654)
Doesn't swapping to SSD make the laptop EOL come even quicker?
Make sure to view "Real mem" in Activity Monitor. That's the amount of data actually stored in your RAM, the rest being swapped out. That number can be quite small, even for apps that theoretically use a lot of memory.
I have found Docker to be an "actual" memory hog with not much of it being swapped out, but could imagine that it would be possible in the case of Finder.