Swap Used in memory

I was just wondering, does the Swap Used of the memory gets cleared on the hard disk when the computer gets restarted or is shut down? if yes, how? if no, isn't that filling up the hard disk? how does it work?

Posted on May 25, 2022 8:47 AM

Reply
3 replies

May 25, 2022 9:00 AM in response to aaratpchopra

aaratpchopra wrote:

I was just wondering, does the Swap Used of the memory gets cleared on the hard disk when the computer gets restarted or is shut down? if yes, how? if no, isn't that filling up the hard disk? how does it work?
https://discussions.apple.com/content/attachment/36a20dec-4b1c-4d3a-b36a-b1767c258016


Yes reboot the machine or shut down and restart.


Log out, sleep, wake, restart or shut down your Mac

Shut down or restart your Mac - Apple Support



VM (virtual memory) is swap files and that is what it is used for. All Volumes share space with the Container, so there is no penality.


MacBook-Pro ~ % diskutil list internal


/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI ⁨EFI⁩ 314.6 MB disk0s1

2: Apple_APFS ⁨Container disk1⁩ 1.0 TB disk0s2


/dev/disk1 (synthesized):

#: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +1.0 TB disk1

Physical Store disk0s2

1: APFS Volume ⁨Macintosh HD⁩ 15.2 GB disk1s1

2: APFS Snapshot ⁨com.apple.os.update-...⁩ 15.2 GB disk1s1s1

3: APFS Volume ⁨Macintosh HD - Data⁩ 478.3 GB disk1s2

4: APFS Volume ⁨Preboot⁩ 805.1 MB disk1s3

5: APFS Volume ⁨Recovery⁩ 1.1 GB disk1s4

6: APFS Volume ⁨VM⁩ 2.1 GB disk1s5



Look at the memory pressure color scheme— green is good, red is high demand


example only:




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Swap Used in memory

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