Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chestbox

macrumors member
Original poster
Jan 16, 2019
30
2
germany
greetings people. i have a late 2012 imac, and just did a clean install for high sierra on an external SSD. i formatted it as APFS (think it's recommended for SSDs) and installed OS.

Screen Shot 2021-09-08 at 16.50.07.png


now when looking at disk utility, and select 'show all devices', the above is the internal HHD, currently not being used, formatted as mac os extended journaled, but for the external, formatted in APFS, it has the intermediate 'container disk2'. since i've never seen this before, and i'm not sure if this is to be expected, i'd really like to make sure i've done everything right.

additionally, in the macSSD folder, next to the folders: applications, library, system & users, I also have a folder called vm with a 1.07gb textfile called 'swapfile0'. after a quick google, i understand that this has to do with ram offloading? i'm not sure what this means, but does it make sense for this to appear after a fresh install?

Screen Shot 2021-09-08 at 17.11.15.png



thanks in advance
 

gilby101

macrumors 68030
Mar 17, 2010
2,974
1,642
Tasmania
That is completely normal.

APFS:
The disk is partitioned with, by default, two partitions. The boot partition called EFI and an APFS container. You can see both with the terminal command diskutil list. Disk Utility hides stuff that we maybe don't need to see.

The APFS container contains volumes. One of the volumes is your system volume which you have called Macintosh SSD. Again diskutil list will show some other volumes: Preboot, Recovery and VM.

VM:
When you fill your RAM with macOS and applications, the operating system takes steps to free up some RAM when needed. Some application data (of very idle apps and services) is written to the disk in one or more 'swapfiles'. It will be read back when needed again.

This is what you are seeing in the folder vm (named for virtual memory) where there can be multiple swapfiles created as needed. The first one is 1GB in size.

What complicates things is that this vm folder is not really part of the macOS system volume. It is located in a separate APFS volume called VM which is shown by diskutil list.
 
  • Like
Reactions: chestbox and chabig

chestbox

macrumors member
Original poster
Jan 16, 2019
30
2
germany
thank you so much for the clarification and detailed explanation.
checked diskutil list, despite honestly not knowing what to do with all the information. just appreciate that everything appears to be as expected, and i'm guessing i should not really care about virtual memory either.
thanks again!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.