Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

What happened to swap files in Big Sur?

Before Big Sur, swap files used to be in /private/var/vm/swapfile*


With Big Sur they appear to be in /System/Volumes/VM


>>> pwd

/System/Volumes/VM


>>> ls -l

total 6275344

-rw------- 1 root wheel   1048576 May 26 11:09 kernelcore

-rw------T 1 root wheel 2147483648 Mar 12 2019 sleepimage

-rw------- 1 root wheel  536870912 May 26 12:24 swapfile0


>>> file *

kernelcore: data

sleepimage: sticky data

swapfile0: data


Why the change?


Is there now always just a single swap file?


Does the size of the swapfile increase when demand for memory increases?


Thanks.

Posted on May 30, 2021 3:12 AM

Reply
3 replies

May 31, 2021 2:29 PM in response to KS_on_AS

Sorry but I'm still unclear. The swapfile (swapfile0) appears to be at /System/Volumes/VM now, as shown above.


The only file in /private/var/vm now is another "sleepimage" file.:


>>> pwd

/private/var/vm


>>> ls -l * # List all files

-rw------T 1 root wheel 2147483648 May 26 11:09 sleepimage


>>> file *

sleepimage: sticky data


What is that?


What happened to swap files in Big Sur?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.