Answer the question
In order to leave comments, you need to log in
How to disable swap on mac os Catalina?
Hello everyone)
I want to disable swap on a macbook, I read articles, they write such a solution
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sudo rm /private/var/vm/swapfile*
Run the first command. The second failed because there was an error that sip interfered, rebooted the laptop in recovery mode, performed
csrutil disable
After booting in normal mode, performed
sudo rm /private/var/vm/swapfile*
It worked.
I began to use the laptop further, I work, but I check in the task manager so that the swap is not filled. And takes and fills again. Checked if the service was turned off, again executed
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
Writes that such a service was not found, which means it is disabled.
I tried to delete the swap files, or check if they exist, the file is there, but it is not deleted now because it is already in use.
What could be the problem? Can someone tell me what. I definitely want to turn off the swap, it is used when it is not needed, there are still enough operatives, and he already shoves it into the swap, then everything starts to lag in a couple of weeks. I do not restart the computer for weeks, since the docker is too lazy to raise every time for all projects.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question