Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

supergaia

macrumors member
Original poster
Oct 19, 2017
85
0
italy
Hi
if i'm right under sierra i should i have 2 kind of pagefile files

the sleepimage and swapage1 or 2

i have never seen swapage1 , maybe under sierra they have change it's name

to disable spleeimage is enough sudo pmset -a hibernatemode 0
and delete the file?

but how many page files does Sierra use?
only the sleepimage and pagefile or only sleepimage?

thanks
 

HenryAZ

macrumors 6502a
Jan 9, 2010
690
143
South Congress AZ
I use the "sudo pmset -a hibernatemode 0" method to disable sleepimage. Once I do that, and then delete the sleepimage file, it is gone for good. I don't find any "swapage*" files on my Mac.
 
  • Like
Reactions: supergaia

supergaia

macrumors member
Original poster
Oct 19, 2017
85
0
italy
I use the "sudo pmset -a hibernatemode 0" method to disable sleepimage. Once I do that, and then delete the sleepimage file, it is gone for good. I don't find any "swapage*" files on my Mac.
hi HenryAZ
i can't find the swapage too, but i guess it uses virtual memory
have you disabled sleepimage too?
thank you so much
 

jbarley

macrumors 601
Jul 1, 2006
4,023
1,895
Vancouver Island
If you have a swapfile it'll be here, in the Finder menu, and I'd be surprised if you don't have one.

Screen Shot 2017-10-30 at 8.18.56 AM.png Screen Shot 2017-10-30 at 8.17.39 AM.png
[doublepost=1509377531][/doublepost]Edit:
many of us have found that even after deleting the Sleepimage file it returns to once again hog a large chunk of ram.
Someone came up with this method of removing the file and recreating a 0 byte locked file which keeps both the system and the operator happy.
-----------------------------
1: Set sleep mode in shell:
sudo pmset -a hibernatemode 0

2: Remove the image:
sudo rm /private/var/vm/sleepimage

3: Create a blanked file:
sudo touch /private/var/vm/sleepimage

4:Make file immutable:
sudo chflags uchg /private/var/vm/sleepimage
---------------------------------

Screen Shot 2017-10-30 at 8.33.36 AM.png
 
Last edited:

supergaia

macrumors member
Original poster
Oct 19, 2017
85
0
italy
If you have a swapfile it'll be here, in the Finder menu, and I'd be surprised if you don't have one.

View attachment 729166 View attachment 729167
[doublepost=1509377531][/doublepost]Edit:
many of us have found that even after deleting the Sleepimage file it returns to once again hog a large chunk of ram.
Someone came up with this method of removing the file and recreating a 0 byte locked file which keeps both the system and the operator happy.
-----------------------------
1: Set sleep mode in shell:
sudo pmset -a hibernatemode 0

2: Remove the image:
sudo rm /private/var/vm/sleepimage

3: Create a blanked file:
sudo touch /private/var/vm/sleepimage

4:Make file immutable:
sudo chflags uchg /private/var/vm/sleepimage
---------------------------------

View attachment 729171
Hi
great !
to enalbe sudo pmset -a hibernatemode 1 in case i have to return again the large chuck of ram file
thank a lot!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.