Try limiting your physical ram usage with boot args (it's not perfect but maybe it catches a hw issue). To show if you have any boot args (you probably shouldn't if everything is stock), from command-line (this is a read-only operation):
it should show the value if any, or more than likely no boot-args are set like follows:
limit macos kernel use of RAM to something relatively safe, like 16GB (16384) or even 8GB (8192) and reboot (this is a write operation):
after reboot, confirm kernel is running with 16GB max; should be 17179869184 bytes (this is a read-only operation):
and to undo your nvram setting, assuming you did not have any previous boot-args, simply delete it and reboot (this is a write operation):
Code:
nvram boot-args
it should show the value if any, or more than likely no boot-args are set like follows:
Code:
nvram: Error getting variable - 'boot-args': (iokit/common) data was not found
limit macos kernel use of RAM to something relatively safe, like 16GB (16384) or even 8GB (8192) and reboot (this is a write operation):
Code:
sudo nvram boot-args="maxmem=16384"
reboot
after reboot, confirm kernel is running with 16GB max; should be 17179869184 bytes (this is a read-only operation):
Code:
sysctl hw.memsize
and to undo your nvram setting, assuming you did not have any previous boot-args, simply delete it and reboot (this is a write operation):
Code:
sudo nvram -d boot-args
reboot
Last edited: