Paging File - why do i need it?

fieseler

Vista Guru
I recently bought an expensive new 1tb hdd & bought another 4gb of ram. I decided to turn of the paging file so that it saves wear & tear on my hdd & have had no problems whatsoever.

Is there any disadvantage to having the paging file turned off? I heard that it mirrors the amount of ram you have, so mine was 8gb is this true? Also, i know vista only allows 32 bit apps to access 2gb of ram, but if i have a paging file, would windows allow 32 bit apps to use 2gb of ram as well as extra space in the paging file? Or does it only allow 2gb of memory ram or otherwise?

thanks

Darren
 
Last edited:

My Computer

System One

  • Manufacturer/Model
    §ĮŁΣNŦ Д$$Д$$ĮN
    CPU
    Xeon X3360
    Motherboard
    P5W64 WS Pro
    Memory
    Corsair XMS2 8gb @ 5-4-4-12 833mhz
    Graphics Card(s)
    EVGA Geforce GTX470 SC+
    Sound Card
    X-Fi Extreme Gamer Fatlity Edition
    Monitor(s) Displays
    Samsung T200
    Screen Resolution
    1680x1050
    Hard Drives
    WD 1TB RE3
    PSU
    Thermaltake Toughower 750w
    Case
    NZXT Lexa Silver
    Cooling
    Zalman CNPS10x Extreme
    Keyboard
    Razer Lycosa Mirror
    Mouse
    Razer Deathadder 3500dpi
    Internet Speed
    24Mb/s
    Other Info
    My massive wifi antenna is in the post!
fieseler,

The paging file is not just virtual memory. It allows the OS to swap application data that is not being used out of physical memory so more physical memory is available to applications that need it. I see no good reason to turn paging off and a lot of good reason to leave it turned on.

In Vista, by default, the paging file size is dynamic and handled by the system. Unless you have a specific reason to change that, the default setting is appropriate.

Scott
 

My Computer

System One

  • CPU
    Intel E6600 @ 3.0 GHz
    Motherboard
    EVGA nForce 680i SLI (NF68-A1)
    Memory
    4GB - CORSAIR XMS2 PC2 6400
    Graphics Card(s)
    EVGA GeForce 8800 GTS (640MB)
    Hard Drives
    2 - Seagate Barracuda 7200.10 (320GB)
    1 - Seagate Barracuda 7200.10 (500GB)
Hi Darren,

Whilst it is certainly true that you can disable the Paging File, it is something that I don't recommend doing. Vista, in common with previous versions of Windows, is actually designed to operate with a Paging File (AKA Swap File). By disabling it, you are forcing ALL programs running, be they background processes such as your AV program AND your foreground programs such as Excel (or whatever program(s) you run) to reside solely in RAM. At some stage, although you say you haven't yet, you are going to run into problems because of this. If you edit digital photos, you are probably aware that this can use your physical memory like it's going out of fashion. In this instance, having a disabled Paging File can cause your system speed to drop down to a crawl. Enabling the Paging File and leaving it using the 'System Managed' setting enables your system to make use of its RAM more effectively. A lot of programs run as background processes, and some, but not all, occupy both sections of the RAM and, providing it is enabled, the Paging File (this is only a temporary storage area, programs cannot actually execute here). It is only when these programs are invoked, such as when running Windows Update, that they actually need to occupy your RAM. At this time, data in your RAM which is currently not being used, is paged or swapped out to the file on your hdd to make room for the program that needs the space. When that data needs to be accessed again, it is simply moved back in to RAM and other data not currently required is paged out. If you don't want to have a Paging File on your new hdd, then I suggest that you install another hdd (20-30GB should be an ample size), and use that as a dedicated drive solely for the use of your Page File.
Dwarf
 

My Computer

System One

  • Manufacturer/Model
    Dwarf Dwf/11/2012 r09/2013
    CPU
    Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz)
    Motherboard
    ASRock Z77 Extreme4-M
    Memory
    4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
    Graphics Card(s)
    MSI GeForce GTX770 Gaming OC 2GB
    Sound Card
    Realtek High Definition on board solution (ALC 898)
    Monitor(s) Displays
    ViewSonic VA1912w Widescreen
    Screen Resolution
    1440x900
    Hard Drives
    OCZ Agility 3 120GB SATA III x2 (RAID 0)
    Samsung HD501LJ 500GB SATA II x2
    Hitachi HDS721010CLA332 1TB SATA II
    Iomega 1.5TB Ext USB 2.0
    WD 2.0TB Ext USB 3.0
    PSU
    XFX Pro Series 850W Semi-Modular
    Case
    Gigabyte IF233
    Cooling
    1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
    Keyboard
    Microsoft Comfort Curve Keyboard 3000 (USB)
    Mouse
    Microsoft Comfort Mouse 3000 for Business (USB)
    Internet Speed
    NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
    Other Info
    Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
    Lexmark S305 Printer/Scanner/Copier (USB)
    WEI Score: 8.1/8.1/8.5/8.5/8.25
    Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
After I maxed out my RAM, my hard drive is pretty silent except when I am actively loading a program into memory. I don't think my computer is using the paging file all that much anymore.
 

My Computer

System One

  • Manufacturer/Model
    Velocity Micro, HP Pavillion
    CPU
    Intel 2 Quad Core Q9400, AMD Athlon 64 x2 4400+
    Memory
    8 GBs DDR3, 4 GB DDR2 PC5300 (667 MHZ)
    Graphics Card(s)
    nVIDIA GTS 250 (over clocked), nVIDIA 6150SE n430
    Monitor(s) Displays
    HP w1907
    PSU
    440 Watts
    Case
    Velocity Micro
    Cooling
    Fan
    Keyboard
    Logitech G15
    Mouse
    Trackman Marble ++
    Internet Speed
    2 mbps
All these responses are true. But, as you have discovered if you only run a couple of apps at a time or run small apps then you don't need a paging file. I have a Dell laptop with 4 Gigs of memory that all it really does is cruise the net and run MS Money. It runs fine with no paging file. If you ever run an app that won't fit in memory you will get an out of memory error and you'll have to re-enable the paging file and reboot.

The problem I see with Vistas paging file is that it's deleted every time you shutdown. Then when you start up again it's recreated. Well, that's a great way to fragment the paging file (which will slow down the system). There is a way to fix it but then you can't have vista manage the paging file so I just turned it off.

32 bit apps can only use 2Gigs of memory. Paging doesn't come into the equation at all.
 

My Computer

32 bit apps can only use 2Gigs of memory. Paging doesn't come into the equation at all.
Paging does come into play with 32-bit apps. They get moved in and out of physical memory just like 64-bit apps would.

There is no good reason for the average user to turn off paging on a 32-bit Vista system. Certainly the idea of saving wear and tear on a hard drive makes no sense at all.

S-
 

My Computer

System One

  • CPU
    Intel E6600 @ 3.0 GHz
    Motherboard
    EVGA nForce 680i SLI (NF68-A1)
    Memory
    4GB - CORSAIR XMS2 PC2 6400
    Graphics Card(s)
    EVGA GeForce 8800 GTS (640MB)
    Hard Drives
    2 - Seagate Barracuda 7200.10 (320GB)
    1 - Seagate Barracuda 7200.10 (500GB)
The problem I see with Vistas paging file is that it's deleted every time you shutdown. Then when you start up again it's recreated. Well, that's a great way to fragment the paging file (which will slow down the system). There is a way to fix it but then you can't have vista manage the paging file so I just turned it off.

32 bit apps can only use 2Gigs of memory. Paging doesn't come into the equation at all.

Vista will only delete the paging file on reboot if you explicitly set the registry option forcing it todo so also 32bit can address more than 2gb of memory, physical or swap.


The paging file is very important on every windows OS because it swaps out all the junk it doesnt need to use, You can check the pagefile usage under the performance tab in task-manager. My comp has swaped out 1600M of junk it doesn't need and thats memory I could use for more important tasks like compiling, games or VTx/AMD-V Operating Systems...

I guess its just preference if you want to use the paging file or not but I have found Vista gets a huge performance increase using the swap than without one.
 

My Computer

...also 32bit can address more than 2gb of memory, physical or swap.
dmex,

32-bit what? OS or application? It's well known that Vista x32 can address 4GB of RAM so I am assuming you meant applications.

By default, Vista x32 gives user applications the lower 2GB of virtual address space while the upper 2GB of virtual address space is reserved for system (kernel) use. Most 32-bit applications would not know what to do with a larger virtual address space and would not take advantage of it. To increase that to a maximum of 3GB of user virtual address space, one must issue this command from a administrator level cmd window:

bcdedit /set IncreaseUserVa 3072

To take advantage of this extra virtual address space, an application must be specifically coded for it. And not many are.....

The bad thing about this is that the system (kernel) is then allocated a 1GB virtual address space. Not all system level code works well in that smaller address space.

S-
 

My Computer

System One

  • CPU
    Intel E6600 @ 3.0 GHz
    Motherboard
    EVGA nForce 680i SLI (NF68-A1)
    Memory
    4GB - CORSAIR XMS2 PC2 6400
    Graphics Card(s)
    EVGA GeForce 8800 GTS (640MB)
    Hard Drives
    2 - Seagate Barracuda 7200.10 (320GB)
    1 - Seagate Barracuda 7200.10 (500GB)
The Vista service that organises Page File useage is much more comprehensive and effective than that in previous versions of Windows. I recommend that you leave the settings alone and let the system manage them as it sees fit. The only change I would recommend is to place the Paging File on a separate drive if you have one available, otherwise I see no need to alter anything. As regards deleting the Paging File on shutdown, that is a setting which is beneficial for those who use their systems for confidential work. The vast majority of users don't fall in to this category, and indeed the default setting in the registry is for this deletion to be disabled. Check the following location to see what your current setting is.
Dwarf

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]

'ClearPageFileAtShutdown' 0=disabled (default), 1=enabled
 
Last edited by a moderator:

My Computer

System One

  • Manufacturer/Model
    Dwarf Dwf/11/2012 r09/2013
    CPU
    Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz)
    Motherboard
    ASRock Z77 Extreme4-M
    Memory
    4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
    Graphics Card(s)
    MSI GeForce GTX770 Gaming OC 2GB
    Sound Card
    Realtek High Definition on board solution (ALC 898)
    Monitor(s) Displays
    ViewSonic VA1912w Widescreen
    Screen Resolution
    1440x900
    Hard Drives
    OCZ Agility 3 120GB SATA III x2 (RAID 0)
    Samsung HD501LJ 500GB SATA II x2
    Hitachi HDS721010CLA332 1TB SATA II
    Iomega 1.5TB Ext USB 2.0
    WD 2.0TB Ext USB 3.0
    PSU
    XFX Pro Series 850W Semi-Modular
    Case
    Gigabyte IF233
    Cooling
    1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
    Keyboard
    Microsoft Comfort Curve Keyboard 3000 (USB)
    Mouse
    Microsoft Comfort Mouse 3000 for Business (USB)
    Internet Speed
    NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
    Other Info
    Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
    Lexmark S305 Printer/Scanner/Copier (USB)
    WEI Score: 8.1/8.1/8.5/8.5/8.25
    Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
The Paging File is best left enabled. What i'd recommend, though, is to manually configure the Page File. Rather than leaving it to dynamically change/modify, try do the following:

Minimum Size = 1.5x RAM (i.e 2GB of RAM = 1.5x2048 = 3072MB)
Maximum Size = 2x RAM (i.e 2GB of RAM = 2.0x2048 = 4096MB)

So multiply your RAM by 1.5 (one and a half) for the minimum page file and multiply your RAM by 2.0 (two :p) for the maximum page file.

I've been using this combination for the longest time and it definitely has some performance gain...not necessarily in FPS, but overall system performance.

r2rX :D
 
Last edited:

My Computer

System One

  • CPU
    Intel Core 2 Quad (@3200Mhz)
    Motherboard
    Gigabyte 965P-S3 motherboard
    Memory
    2GB TwinMOS PC-6400 (DDR2 800) RAM
    Graphics Card(s)
    nVidia GeForce 7900GS 256MB DD
    Hard Drives
    Seagate 80GB and 320GB 7200rpm H.D (IDE)
The problem I see with Vistas paging file is that it's deleted every time you shutdown. Then when you start up again it's recreated.
That would be a backward step from earlier Windows versions I just can't see MS making. Granted the contents may be lost, but they're constantly changing anyway and some is in RAM so automatically lost on powerdown.

Win reserves a minimum size paging file initially based on your RAM size but adjusted to suit your system's PF usage history, and increases it if necessary. If you want to really ensure the pf doesn't ever get fragmented, track your pf usage under worst-case conditions and set your own minimum to a higher value. But I strongly advise leaving the maximum open or at a ridiculously high value (say 20Gb) to avoid any possible hiccups.

With two physical drives it may help performance to set up a paging file on each; Win will use the most convenient at the time. I have 3Gb minimums on C: (the Win partition) and F: (the second drive).

[url=http://vistahelp.blogspot.com/2007/02/tweaking-vista-visual-effects.html]Vista Help[/url] said:
Insufficiently large paging files on the other hand, will hinder the performance of Windows Vista, which uses a technology called SuperFetch to store boot information, Graphic User Interface (GUI) data, and other essentials in the paging file(s) between work sessions. It has been found that an overly small paging file can also cause GUI mishaps, especially at higher screen resolutions.
 
Last edited:

My Computer

Back
Top