Removing Win 7 system file use of paging file

Question: On a drive where space isn't tight, what would be the advantage of trimming the paging file even with tons of RAM?

Some imaging programs include the pagefile (and hibernate file) and they can't be excluded.
With a smaller pagefile the backup images will be smaller.
 

My Computer My Computer

At a glance

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x6...AMD Athlon II x4 6206GB GSkill DDR2 800AMD 4670 GPU + AMD 4200 IGP
Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Question: On a drive where space isn't tight, what would be the advantage of trimming the paging file even with tons of RAM?

Some imaging programs include the pagefile (and hibernate file) and they can't be excluded.
With a smaller pagefile the backup images will be smaller.
An empty pagefile and hiberfile will be compressed in the image. So it is really irrelevant what size an empty pagefile has. Only if you clone you will get a full size page and hiberfile.
 
Last edited:

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
So the paging file will remain empty with large amount of RAM? Or is it empty because it's been turned off?
 
How will these files be empty ?

I just opened a Macrium free image file and browsing the image file in Windows Explorer shows these files with the same size as the source files.

With Acronis paid I exclude these files from being included in the backup.
 

My Computer My Computer

At a glance

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x6...AMD Athlon II x4 6206GB GSkill DDR2 800AMD 4670 GPU + AMD 4200 IGP
Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Microsoft imaging solutions already exclude these files. If using something else, you either exclude them by configuring the software to do so if the software is not already preconfigured to do so. If the captured image would indicate that the paging file or hiberfile was indeed captured whole, then reconfigure the imaging software (if possible), or use something else.

Technically, paging can only happen with an OS running, so if the OS is off the file can be skipped - it won't be "empty", per se unless it was zeroed out during shutdown, but anything in it can safely be considered useless for imaging purposes (unless the machine crash dumped and is rebooting, in which case the paging file is the memory.dmp file, and should be kept until after the OS reboots - and you should probably not be imaging that of course ;) ).
 

My Computer My Computer

At a glance

Windows 10 Pro x64Intel Core i7 4790K @ 4.5GHz32GB DDR3Nvidia GeForce GTX970
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
If anyone knows how to exclude files with Macrium free, I'd like to know.
I won't stop using it because I can't exclude files, but i would prefer these files aren't in the backup image.

I have 4-6 GB RAM and manually set the pagefile to 1 GB, so i'm not a good test case to see how much difference a LARGE pagefile affects a backup image file size.

Guess it's up to the OP or anyone with a lot of RAM and a large pagefile, to test if reducing the pagefile size makes a difference in the backup image file size.
 

My Computer My Computer

At a glance

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x6...AMD Athlon II x4 6206GB GSkill DDR2 800AMD 4670 GPU + AMD 4200 IGP
Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
How my system has been running.

Hello the thread and responders'

Since my last post I began running with no page file at all. There are some artifacts I noticed. Perhaps a week ago, I restarted the page file at a fixed length of 2gb. The same "funnies" are still there, minor things that I believe are internet site or driver related.

Since returning to the page file, fixed 2gb, the file has of course reappeared (C drive). When checking on the fixed length page file, it shows a last modified date and time of when my system booted up, so indicating it has not been used except in booting (probably in initialization).

From reading the recommended website (from this thread) I am lead to believe that it will not be used until
I exhaust my RAM resources first, and that has not happened.

In my initial post, I had a wrong understanding the OP sys WIN7 was using it to page system files. It does not. Not in my system, because its last update is only from when I boot each time

Thanks for the interest and responses. I will further modify the page file mode I will use. I will only allow the OS to create the page file when it needs to. My estimate now is that it will not be created, and if so only when I have exhausted the 24gb of RAM (Which I do not expect to do).

Thanks
 

My Computer My Computer

At a glance

Win 7 Pro 64 bitAMD Opteron 612816 gig DDR3 ECCAMD v5800
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home build
OS
Win 7 Pro 64 bit
CPU
AMD Opteron 6128
Motherboard
Supermicro
Memory
16 gig DDR3 ECC
Graphics Card(s)
AMD v5800
Sound Card
Zonar DG
Monitor(s) Displays
Dual SyncMaster 204B
Screen Resolution
2x 1600x1200
Hard Drives
Corsair Force 480g
WD 3TB
PSU
XFX XTR 750
Case
yes
Cooling
by means of air and fans
Keyboard
Logitech S520
Mouse
Logitech S520 combo'd
Internet Speed
basic DSL
Antivirus
Bit Defender
Browser
IE
Pagefile & Macrium

If anyone knows how to exclude files with Macrium free, I'd like to know.
I won't stop using it because I can't exclude files, but i would prefer these files aren't in the backup image.

I have 4-6 GB RAM and manually set the pagefile to 1 GB, so i'm not a good test case to see how much difference a LARGE pagefile affects a backup image file size.

Guess it's up to the OP or anyone with a lot of RAM and a large pagefile, to test if reducing the pagefile size makes a difference in the backup image file size.

Well personally I swap the pagefile onto a non-windows partition and it's a fixed size. There is a small 16Mb page file on the windows partition and that's the only pagefile that gets included in Macrium backup images of my windows partition. Additionally all page files are set to be cleared on shutdown.

Virtual Memory.jpg
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD C-60 APU with Radeon(tm) HD Graphics4.00 GBAMD Radeon HD 6290 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
Since returning to the page file, fixed 2gb, the file has of course reappeared (C drive). When checking on the fixed length page file, it shows a last modified date and time of when my system booted up, so indicating it has not been used except in booting (probably in initialization).
Incorrect - the file is (re)generated on boot, and there's a persistent handle to it from the kernel. Reads and writes to it are done via the memory manager, and they generally will not trigger an update to the file's date/time (I'm actually not entirely sure why that is, and I don't care enough to research it).

From reading the recommended website (from this thread) I am lead to believe that it will not be used until I exhaust my RAM resources first, and that has not happened.
Also not entirely true, but in general modified pages won't go to the paging file unless those pages are needed.

Thanks for the interest and responses. I will further modify the page file mode I will use. I will only allow the OS to create the page file when it needs to. My estimate now is that it will not be created, and if so only when I have exhausted the 24gb of RAM (Which I do not expect to do).
If you leave it at OS managed, it will generate and keep a 24GB page file, if your system has 24GB of RAM on boot. Your best bet if you're creating a system to be used for imaging is to set the paging file to the smallest amount possible (for both initial and max sizes) - this is usually a few hundred MB at most.
 

My Computer My Computer

At a glance

Windows 10 Pro x64Intel Core i7 4790K @ 4.5GHz32GB DDR3Nvidia GeForce GTX970
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Back
Top