Can someone explain why the swap is used despite my having 32GB of Memory? Nothing wrong happens otherwise. I'm just curious if someone can tell me why?View attachment 816289
Sure, thanks for asking.
It is because Mac OS does not purge cached files before starting to swap to disk, as would be expected (and as is done on Linux). It will just hold on to that cache for as long as it can, even if it is totally useless.
wait a sec...what?? Is there a way to prevent this? thanks!!!
I tried that, it didn’t seem to do anything when I typed the command. So is this behavior intended? The swapping despite having plenty of memory?sudo purge
I tried that, it didn’t seem to do anything when I typed the command. So is this behavior intended? The swapping despite having plenty of memory?
It's not your job to manage memory. The operating system does that. None of us truly know how exactly it works, nor do we need to. We also don't need to be concerned about it.I tried that, it didn’t seem to do anything when I typed the command. So is this behavior intended? The swapping despite having plenty of memory?
It's not your job to manage memory. The operating system does that. None of us truly know how exactly it works, nor do we need to. We also don't need to be concerned about it.
Chabig is correct, don't mess with it unless you know exactly what you are doing. Paging is a normal part of an operating systems functionality and some paging, regardless of memory configuration, is not surprising. 60.3 megabytes of paging activity is nothing to be concerned with.Well, you should be concerned when your computer suddenly becomes very slow… that is when it starts using the disk instead of RAM. No other OS behaves like this.
Chabig is correct, don't mess with it unless you know exactly what you are doing. Paging is a normal part of an operating systems functionality and some paging, regardless of memory configuration, is not surprising. 60.3 megabytes of paging activity is nothing to be concerned with.
Yes, it is. From my 2010 Mac Pro:"some paging" is not normal if you have enough RAM.
screenshot is with running logic. when i quit logic, cached files dropped for 0.5gb
Well yea, IF it becomes very slow. The OP has made no mention of that, at all, so why bring it up when it's clearly not happening?Well, you should be concerned when your computer suddenly becomes very slow… that is when it starts using the disk instead of RAM. No other OS behaves like this.
Well yea, IF it becomes very slow. The OP has made no mention of that, at all, so why bring it up when it's clearly not happening?
mine never pages unless it runs out of physical RAM.Yes, it is. From my 2010 Mac Pro:
View attachment 816353
Unless you have intimate details of how macOS manages its memory don't worry about a few megabytes worth of paging.
mine never pages unless it runs out of physical RAM.
In your screenshot I suspect you ran out of RAM at some point or were nearing that moment
Paging is common during operating system operation (Windows too) and it is therefore the answer to the question. If you want specifics a much more in depth analysis would be required. An analysis which it's unlikely would ever be possible.Yeah it must have, but I'm not 100% sure. As I never saw it reach 30GB or something. Unless the threshold for swapping is lower.
It's not your job to manage memory. The operating system does that. None of us truly know how exactly it works, nor do we need to. We also don't need to be concerned about it.
mine never pages unless it runs out of physical RAM.
In your screenshot I suspect you ran out of RAM at some point or were nearing that moment