Do you play games with pagefile on or off?


  

125 members have voted

  1. 1. Do you play games with pagefile on or off?



Recommended Posts

I know some games/programs don't run well with pagefile off, but the ones that don't I just turn off my pagefile because the game loads faster and it's much more smoother (Ex: Starcraft 2). Just curious if you guys do this also

And I also use a hardware profile to keep all the services off when gaming :) . Forgot to mention, I have no problems at all on Starcraft 2 with the pagefile off

TL;DR version: Let Windows handle your memory/pagefile settings. The people at MS have spent a lot more hours thinking about these issues than most of us sysadmins.

Many people seem to assume that Windows pushes data into the pagefile on demand. EG: something wants a lot of memory, and there is not enough RAM to fill the need, so Windows begins madly writing data from RAM to disk at this last minute, so that it can free up RAM for the new demands.

This is incorrect. There's more going on under the hood. Generally speaking, Windows maintains a backing store, meaning that it wants to see everything that's in memory also on the disk somewhere. Now, when something comes along and demands a lot of memory, Windows can clear RAM very quickly, because that data is already on disk, ready to be paged back into RAM if it is called for. So it can be said that much of what's in pagefile is also in RAM; the data was preemptively placed in pagefile to speed up new memory allocation demands.

Describing the specific mechanisms involved would take many pages (see chapter 7 of Windows Internals, and note that a new edition will soon be available), but there are a few nice things to note. First, much of what's in RAM is intrinsically already on the disk - program code fetched from an executable file or a DLL for example. So this doesn't need to be written to the pagefile; Windows can simply keep track of where the bits were originally fetched from. Second, Windows keeps track of which data in RAM is most frequently used, and so clears from RAM that data which has gone longest without being accessed.

Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.

There are of course many resource/utilization scenarios. It is not impossible that you have one of the scenarios under which there would be no adverse effects from removing pagefile, but these are the minority. In most cases, removing or reducing pagefile will lead to reduced performance under peak-resource-utilization scenarios.

http://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine

The paging file is needed in some scenerios, as Fred Derf's post points out.

Why not create a ram drive and point your pagefile to it? As long as you have enough memory, this would guarantee the best of both worlds.

You'd be improving the performance of the pagefile but hurting the performance of your memory, and cutting the amount of memory available making the pagefile needed more often.

That sounds silly.

Why not create a ram drive and point your pagefile to it? As long as you have enough memory, this would guarantee the best of both worlds.

This is the worst idea in history. All you will be doing is making less memory available and hurting performance. It does nothing to improve anything. You might as well turn the page file off in that scenario. Doing so would be preferable, as Windows doesn't actually need it for anything (apart from saving crash dumps, which are optional anyway). It's only a safety net. It's technically possible for an application to allocate memory in the page file directly and so these would fail unless they were programmed with a fallback, but I know of no applications or games that do this.

He doesn't state his configuration, so I'm going to assume it's a modern Windows 7 setup. Windows actually does not go and randomly page all the time. If you aren't low on memory, it does not page to disk. Can the OP actually provide data from the resource/performance monitor to illustrate the problem he's having?

Windows will still swap memory to disk even with the pagefile disabled. It'll secretly use temporary files instead. Don't discount the placebo effect for the personal anecdotal evidence that you may hear about a performance boost.

It isn't uncommon for half of the test subjects on fake medication (i.e. sugar pills) to identify that the "medication" have improved their condition. That's the placebo effect in action. There's this whole mind over matter thing going on when you believe that something will work.

When it comes to pagefiles, however, the experts (the ones that actually understand Windows' memory management) will tell you to keep it on while the amateur hobbyists will tell you to disable it for a performance boost. It's your choice though.

Windows will still swap memory to disk even with the pagefile disabled. It'll secretly use temporary files instead.

There is no such thing as a secret page file. This is a myth that I think originated from the task manager in older versions of Windows, which incorrectly labeled certain graphs "page file usage" when that is not what they were. If you disable all page files, it really disables them.

The rest is right, which is why I suggest that he actually measures it.

Turning the pagefile off for more performance is one of the bad ideas which will never die out, similar to the TCP/IP patch some people keep suggesting for better download speeds since XP SP2.

Just to provide an authoritative source for my last claim. From the 5th edition of Windows Internals, page 781:

qxjo11.png

If you look at the source of the memory manager, you can find various optimizations for when there's no page file. Just to show that Windows is designed with this in mind.

n507f7.png

Messing with the page file is pointless.

+1

Any proven performance gains from turning it off?

Its not if there is any proven performance or not, its that (nowadays) it is pointless

There is no such thing as a secret page file. This is a myth that I think originated from the task manager in older versions of Windows, which incorrectly labeled certain graphs "page file usage" when that is not what they were. If you disable all page files, it really disables them.

The rest is right, which is why I suggest that he actually measures it.

Well here is my question then:

If you open a program that uses 1GB of RAM and you have 512MB of RAM and your page file is disabled, what happens?

Turning off the pagefile is a bad idea for sure, but wouldn't manually setting both the min and max value to the same amount prevent the pagefile from getting fragmented?

Well here is my question then:

If you open a program that uses 1GB of RAM and you have 512MB of RAM and your page file is disabled, what happens?

Windows will complain that it is low on memory and ask you to close one of more applications.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • agenda pushing is... hiring women? you are insane. also low iq.
    • AIMP 5.40 Build 2721 by Razvan Serea AIMP is a powerful audio player that allows you to listen to your favorite music with an outstanding sound quality. Its appearance resembles that of another classical audio player (Winamp). The program includes a 20-band equalizer, a visualization window to display rhythmic visual effects and a playlist editor to organize your audio files. A nice fading effect makes your list of songs look like an endless music loop and a handy volume normalizing feature avoids drastic volume changes between tracks. Also, the players main functions can be conveniently controlled by global hotkeys. Besides playing music, AIMP features three extra utilities which also enable you to record any sound on your computer, convert audio files from one format to another and view or edit tags. AIMP is based on the well-known audio engine BASS, so its easy to connect new plug-ins (from the plug-in library included in the program) and expand the players functionality. Main Features and Functions: Multi-Format Playback: Supports numerous audio formats, including CDA, AAC, AC3, APE, DTS, FLAC, IT, MIDI, MO3, MOD, M4A, M4B, MP1, MP2, MP3, MPC, MTM, OFR, OGG, OPUS, RMI, S3M, SPX, TAK, TTA, UMX, WAV, WMA, WV, XM, DSF, DFF, MKA, AA3, AT3, OMA, WebM, MDZ, ITZ, S3Z, XMZ, AIFF, and MPEG-DASH (YouTube). CUE Sheet Support: Enables the use of CUE sheets for managing audio tracks. Output Support: Compatible with DirectSound, ASIO, WASAPI, and WASAPI Exclusive output methods. 32-Bit Audio Processing: Utilizes 32-bit audio processing for optimal sound quality. Internet Radio: Allows listening to internet radio stations in OGG, WAV, MP3, AAC, and AAC+ formats, with the capability to capture streams in various formats. Bookmarks and Playback Queue: Facilitates creating bookmarks and managing a playback queue. Rating and Auto-Marks: Collects statistics on track listening and automatically calculates ratings and marks for listened tracks. Plugin Support: Allows the addition of new utilities or extensions to existing features through plugins. Built-in Scrobbler: Supports Last.fm, Libre.fm, and ListenBrainz services for scrobbling. Cloud Integration: Supports OneDrive, Google Drive, DropBox, Облако@mail.ru, Яндекс.Диск, and custom WebDAV clouds. Podcasts: Offers podcast support for subscribing and listening. Hotkeys: Allows configuration of local and global hotkeys. Multi-User Mode Support: Supports multiple users working on one computer. Multi-Language Interface: Provides a multi-language interface. 4K and High DPI Support: Supports scale factors of 125%, 150%, 175%, and 200% for high-resolution displays. Flexible Program Options: Offers customizable program settings. Flexible UI: Charm UI: A modern flat-style skin with 4K and High DPI support. Bliss 4K: A skin-transformer from AIMP4 included in the installation package. Pandemic: The classic skin from AIMP3 included in the installation package. User Skins: Access to a catalog of user-created skins. Sound Effects: 20-Band Equalizer and Built-in Sound Effects: Includes Reverb, Flanger, Chorus, Pitch, Tempo, Echo, Speed, Bass, Enhancer, and Voice Remover effects with flexible settings. Volume Normalization: Features peak-based normalization and Replay Gain, along with logarithmic and loudness-compensated volume control. Mixing Options: Offers Fade In/Fade Out, cross-mixing, and pause between tracks. Silence Remover: Removes silence from tracks for a seamless listening experience. Music Library: Music Library: Organizes music files, allows setting marks for listened tracks, and keeps playback statistics. Smart Playlist: Creates playlists based on content from the Music Library database, with filtering and grouping capabilities. Playlists: Multiple Playlists: Supports working with multiple playlists simultaneously. Powerful View Settings: Allows data display customization, track grouping, and separate settings for each playlist. Content Protection: Provides the ability to block content from changes. File Search: Enables searching files across all opened playlists. AIMP 5.40 Build 2721 changelog: Audio converter: WavPack - support for 32-bit float samples format General: localizations has been updated General: WavPack codec has been updated to v5.9 Plugins: scrobbler - Last.fm - in case of an access denied error, the Track Info dialog displays links to web-version of the catalog Fixed: General - error creating a file in a folder created by template if the folder name ends with a dot Fixed: general - menu cannot be scrolled via mouse wheel if the "scroll inactive windows when I hover over them" option is switched off Fixed: General - port number is not extracted from URL if there is no "/" after the port token (regression 5.40) Fixed: audio converter - statistics are not taken into account if the "delete sources files" option is switched on and target folder equals to source Fixed: audio converter - dither does not switched off when processing files in 24-to-24-bit format Fixed: Sound engine - VST - changing the sample rate leads to certain plugins to hanging up Fixed: player - does not read disc numbers for CUE that specified as custom tag fields stored in the audio file Fixed: player - manual invoking the jump to next track action does not work if the next file is not exists and the "track repeat" option is switched on Fixed: plugins - BASS_AAC - does not play certain files to the end Fixed: plugins - CDDA - MusicBrainz - wrong artist name is extracted for certain releases Fixed: issues from incoming crash-reports Download: AIMP 64-bit | Standalone | ~20.0 MB (Freeware) Download: AIMP 32-bit | Standalone View: AIMP Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Notion is shutting down its email client one year after launch by David Uzondu In April 2025, Notion launched Notion Mail, an AI-powered email client that acted as a customizable overlay for your existing accounts. Instead of replacing Gmail entirely, it reimagined how users interacted with their inboxes by offering features like intelligent auto-labeling alongside automated calendar scheduling. Now, a little over a year later, Notion has announced that it is shutting it all down on September 22. Since Notion Mail is a frontend client, most of your Gmail data will remain safe inside your Google account, but the company said that you must export stuff specific to Notion Mail, like snippets, custom auto-label instructions, email drafts, and scheduled drafts, before the deadline. Starting today, June 25, you can export that data directly from the app or the web interface, and this grace period will last all the way until September 21. Once September 22 arrives, Notion will permanently delete all unsaved local assets, including files you attached to snippets. Your existing database syncs and mail blocks will persist, though they will stop receiving new messages after the shutdown. Notion advises that if you or your company operate within a regulated environment, you must transition off earlier than the general shutdown date to maintain compliance. Companies that rely on HIPAA coverage face an even tighter timeline and must transition away from the platform by June 30th. Notion, in its X announcement post, basically said that it doesn't see the point of maintaining a standalone email client, especially when users have shifted their habits toward automation. The platform pointed to its Notion agents, which it claims "more than half of Notion Mail users" already employ to manage emails without ever opening an actual inbox, so it is "going all in" on using these agents to run your inbox. Notion introduced Notion Agents last September at the "Make With Notion" conference, giving users AI-powered digital assistants that can do stuff like run in the background on specific schedules (e.g., summarizing your daily open tasks every morning at 8 AM).
    • OK, but isn't nvidia still planning to cut off win10 support this year?
  • Recent Achievements

    • One Month Later
      The_Focal_Point earned a badge
      One Month Later
    • One Year In
      Vistor earned a badge
      One Year In
    • First Post
      kinowa earned a badge
      First Post
    • Rookie
      krychek57 went up a rank
      Rookie
    • Grand Master
      Jaybonaut went up a rank
      Grand Master
  • Popular Contributors

    1. 1
      +primortal
      404
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      131
    4. 4
      Xenon
      72
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!