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

    • Sony announces Bungie layoffs that will affect "significant number of employees" by Pulasthi Ariyasinghe Sony today announced that major layoffs are happening at its first-party studio Bungie, the developer that has spawned series like Halo, Destiny, and Marathon over the past decades. The news arrives just weeks after Bungie delivered the final update to Destiny 2, and it's that team being hit with the layoffs the most. CEO of Sony Interactive Entertainment Hermen Hulst revealed the staff reduction today, calling it "painful news." "Over the past several months, together with Bungie leadership, we reviewed the studio’s long-term direction, development priorities, resource needs, and role within our broader portfolio strategy," said Hulst, explaining the decision. "We explored multiple alternatives before concluding that a reduction was necessary to align the studio’s resources with its current priorities and long-term goals." The layoffs will be hitting "a significant number of employees" across most of the Destiny franchise development team. It doesn't look like Sony is planning to continue the series following Destiny 2's sunsetting update. The studio is said to be in early stages of looking at other projects to pivot to, but it's said that keeping the size of the team at current levels is no longer feasible. "We know this decision has a profound impact on the people affected, their families, friends, and teammates," said Bungie leadership in a separate message on social media. "While these changes are necessary to best position the studio now and for the future, that does not lessen the difficulty of this moment or the impact it has on those affected." At the same time, "some" of the Marathon development team are also affected by the layoffs. The recently released multiplayer-only extraction shooter title hasn't seen a big boom of players either, but the company is reportedly hoping that the live service experience will pick up players with future updates.
    • Microsoft adds reusable skills and finance data connectors to Copilot in Excel by Karthik Mudaliar Microsoft is giving Copilot in Excel a collection of new features aimed squarely at finance teams. The update introduces reusable instructions for common tasks, connections to services such as FactSet and Morningstar, and a better way to review what Copilot intends to do before it starts changing a workbook. The most interesting addition is 'Skills' finally coming to Copilot in Excel. Skills let companies teach Copilot how to handle a recurring process, so employees do not need to write the same detailed prompt every month. Users can create skills that can specify the steps Copilot should follow, along with the required layout, formulas, and formatting. Microsoft says users can create their own skills by saving a SKILL.md file in OneDrive. The file is written using Markdown and tells Copilot when and how to perform the task. Once it is available, a user can select the skill in the Copilot pane or mention it in a prompt using the @ symbol. There is also a library of prebuilt finance skills for customers who do not want to create their own. Microsoft plans to let developers distribute additional skills through the Microsoft Marketplace and the Microsoft 365 Admin Center, with LSEG, Ramp, Rogo, samaya.ai, Velixo, and Vena among the first partners involved. The company says that it is also expanding the external data that Copilot can access from inside Excel. New connectors are being added for CB Insights, Daloopa, FactSet, Morningstar, PitchBook, and S&P Global data through technology developed by Kensho. There is a catch, however. Accessing these services may require a separate subscription from the relevant data provider, so a Microsoft 365 Copilot licence will not necessarily unlock all of them. FactSet is also only available in preview for now, with general availability planned for July. Microsoft is also trying to make Copilot’s workbook edits easier to inspect. Users can switch to a planning mode that shows which sheets, cell ranges, formulas, and assumptions Copilot intends to work with before it begins making changes. Once the work is complete, the Show Changes pane can distinguish edits made by Copilot from those made by human collaborators. The update continues Microsoft’s push to turn Excel Copilot from a chatbot into an agent that can carry out longer tasks. The company previously added an Agent Mode capable of planning and completing multi-step Excel work. Microsoft also recently acquired financial AI startup Fintool, another indication that finance is becoming a key target for its Excel AI strategy. Prebuilt skills, personalization, workbook rules, external connectors, planning mode, and Copilot attribution in Show Changes are generally available to Microsoft 365 Copilot customers using Excel on the web, Windows, and macOS. Custom skills are initially available to Microsoft 365 Insiders on Windows and Mac starting today. Microsoft plans to make them generally available across Windows, Mac, and the web over the next month. Partner-built skills are expected during the third quarter of the year. Availability may still differ depending on region and licensing.
    • Exactly. They serve different (although related) purposes.
    • Do not enter the code under any circumstances, or you will be sorry. It's definitely and most likely a hacking attempt.  That happened to me a couple of years ago, and I kept receiving those prompts for months. It's simply the attacker trying to get you tired of the constant requests, so you just give up and enter the code, so they can log in to your account. 
  • Recent Achievements

    • First Post
      kinowa earned a badge
      First Post
    • Rookie
      krychek57 went up a rank
      Rookie
    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      438
    2. 2
      +Edouard
      169
    3. 3
      PsYcHoKiLLa
      134
    4. 4
      Xenon
      77
    5. 5
      Michael Scrip
      75
  • Tell a friend

    Love Neowin? Tell a friend!