An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Where's my sleep image?
#48949 05/29/18 06:24 AM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
The 8 GB sleep image located at /var/vm disappeared from my GrandPerspective graphic representation of macOS 10.13.4 after being there through 10.13.3 because it's been transformed into a (literal) volume.

Hmmm... Now that /var/vm is a volume, I wonder if swap files are also stored within it along with the sleep image?

I haven't seen mention of it in a looong time, but I remember people wanting to keep their swap files on a separate volume, and I wonder if Apple has finally caught up?


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Where's my sleep image?
artie505 #49065 06/12/18 07:52 AM
Joined: Aug 2009
Likes: 15
OP Online

Joined: Aug 2009
Likes: 15
I just managed to grow a swap file, and it is, indeed, stored in the /var/VM volume.

I can envision how the sleep image gains by being stored in its own volume rather than within the macOS volume that generated it, but what's gained by storing swap files in a different volume?


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Where's my sleep image?
artie505 #49066 06/12/18 12:38 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
Originally Posted By: artie505
The 8 GB sleep image located at /var/vm disappeared from my GrandPerspective graphic representation of macOS 10.13.4 after being there through 10.13.3 because it's been transformed into a (literal) volume.

Hmmm... Now that /var/vm is a volume, I wonder if swap files are also stored within it along with the sleep image?

I haven't seen mention of it in a looong time, but I remember people wanting to keep their swap files on a separate volume, and I wonder if Apple has finally caught up?


Interesting, I will have to look into that.

Placing your /var/vm on a separate drive was for performance issues, so that memory swapping didn't interfere with data io on your documents and apps. Now with SSDs, that makes very little (no?) difference.

Code:
$ stat -f %d /
16777220
$ stat -f %d /var/vm
16777222


Indeed /var/vm is on a different device than the boot drive.
Code:
$ diskutil list /dev/disk1 
/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            352.6 GB   disk1s1
   2:                APFS Volume Preboot                 18.4 MB    disk1s2
   3:                APFS Volume Recovery                517.8 MB   disk1s3
   4:                APFS Volume VM                      4.3 GB     disk1s4


yup, there it is


I work for the Department of Redundancy Department

Moderated by  alternaut, dkmarsh, joemikeb 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.016s Queries: 20 (0.010s) Memory: 0.5785 MB (Peak: 0.6339 MB) Data Comp: Zlib Server Time: 2024-04-25 07:55:26 UTC
Valid HTML 5 and Valid CSS