I call the MemoryInUse[]
function, and it outputs about 256 Megabytes.
MemoryInUse[]
(*255979528*)
However, my activity monitor tells me Mathematica is using 5.45 GB and WolframKernel is using 2.32 GB.
Moreover, much more memory should be available than what MemoryAvailable[]
tells me is available on my 16 GB computer, taking into account the other tasks on my activity monitor which use little memory by comparison.
MemoryAvailable[]
(*6579212288*)
Why is this?
Perhaps Useful Info
- I am not running anything in Mathematica.
$HistoryLength
was set to 0 beforehand.
Update with Screenshots
The screenshots below are from different sessions than my original (which I do not have a screenshot of), but demonstrate the same issue.
2nd Update with Screenshots
Here are some other sessions demonstrating the problem.
3rd Update with Screenshots
Here is one where the difference between the MemoryInUse[]
output and "WolframKernel" from the activity monitor differ significantly. MemoryAvailable[]
seems off too.
4th Update with Screenshots
The difference here between the MemoryInUse[]
output and "WolframKernel" from the activity monitor is significant. MemoryAvailable[]
is still off as well.
Mathematica 12.3.1.0
MacOS Big Sur Version 11.6