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

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?

That is the perfect indicator for low memory (or an overly fragmented partition). Time to upgrade (resp. defrag)!

By the way, the OS pushes unneeded "stuff" to the pagefile first, so it being fragmented is of little relevance...

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?

Oh god talk about taking me back, we used to do that supporting Windows NT4.

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.

It isn't secret, but it's never fully disabled either. Windows will use a pagefile whether you disable it or not, as I understand it.

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

When it tries to allocate that much, Windows will return an error to the program saying that there is not enough memory. The program can then either gracefully deal with this or crash, depending on how well it is written.

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?

You can defragment the page file if you really want to though.

It isn't secret, but it's never fully disabled either. Windows will use a pagefile whether you disable it or not, as I understand it.

I showed you that it is not true. You aren't arguing with me now, you're arguing with Microsoft. I say secret because the people who make the claim can never document it. It's the kind of misconception that has given birth to the "put your page file on a RAM disk!" nonsense.

I think the belief stems from several things. The first is that Windows is a virtual memory-based OS (as is Linux and OS X), but this in itself has nothing to do with page files.

Another is the fact that Task Manager in XP and earlier had graphs that said "page file usage" that would still show the same even if you disabled all page files. The reason it did this is because it was incorrectly labeled. The graphs actually showed the commit charge, which simplified is the total amount of both physical RAM and page files in use.

The "page faults" column in Task Manager might also have some of the blame, because people think it actually shows paging to disk. It doesn't necessarily, because it contains both soft and hard page faults. A soft fault is when the data is already in memory, but not in the process's address space. Those are routine on any virtual memory OS, and have little performance impact. Hard page faults on the other hand, are when it has to read data from disk (but not necessarily a paging file.)

Of course all of this is a bit of a derail. The point is that Windows can run just fine without any page files, which can be useful for certain specialized setups, but not of much value on your normal general purpose computer. If people insist on doing it, they should at least do some testing and benchmarking to establish that it actually helps them. If it does, knock yourself out.

I have a lot of old page file 'tips' in my head that I've accumulated over the years (oh man, some of the old 9x optimization tips...) that I wonder today about the relevance or effectiveness.

The whole manually setting min/max to the same value one is still in my head and is almost a reflex after a clean install for me, if just out of habit. I know it doesn't hurt anything, but I wonder if it really makes much of a difference (if Windows keeps the drive bare up to the max value point anyway, it probably makes no difference).

I wonder, though, if it can still help to set your page file to a separate harddrive. Time was, if you had a spare, relatively low-capacity, fast drive lying around (the upgrade cycles always leave us with these), it seemed a good idea to throw it in and use it for virtual memory to slightly reduce access to your system drive. Is this still a fundamentally solid idea?

I showed you that it is not true. You aren't arguing with me now, you're arguing with Microsoft. I say secret because the people who make the claim can never document it. It's the kind of misconception that has given birth to the "put your page file on a RAM disk!" nonsense.

Personally I'm not arguing with anyone. That was the impression I was under, and it doesn't bother me either way.

http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx

Some feel having no paging file results in better performance, but in general, having a paging file means Windows can write pages on the modified list (which represent pages that aren?t being accessed actively but have not been saved to disk) out to the paging file, thus making that memory available for more useful purposes (processes or file cache). So while there may be some workloads that perform better with no paging file, in general having one will mean more usable memory being available to the system (never mind that Windows won?t be able to write kernel crash dumps without a paging file sized large enough to hold them).

It probably doesn't matter if you disable it given enough memory, but I'll pass.

I wonder, though, if it can still help to set your page file to a separate harddrive. Time was, if you had a spare, relatively low-capacity, fast drive lying around (the upgrade cycles always leave us with these), it seemed a good idea to throw it in and use it for virtual memory to slightly reduce access to your system drive. Is this still a fundamentally solid idea?

I suppose it still applies, but at the same time you have to factor in that times have changed and that it's not uncommon for modern systems to never run low on RAM. That means that even though the logic is sound, it doesn't make much difference in practice.

Personally I'm not arguing with anyone. That was the impression I was under, and it doesn't bother me either way.

Maybe, but you have to keep in mind that others read these threads. A lot of people read them. That's what the problem is.

I see you're quoting Russinovich (one of the few Technical Fellows in the core OS division of MS.) It might be helpful to know that he is also the principal author of the Windows Internals books that I quoted earlier.

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

When it tries to allocate that much, Windows will return an error to the program saying that there is not enough memory. The program can then either gracefully deal with this or crash, depending on how well it is written.

Yes but while that message shows up you can keep opening and opening and opening and opening and............ programs.

There was to be a point where a page file, even if it is disabled, HAS to exist because of this.

Yes but while that message shows up you can keep opening and opening and opening and opening and............ programs.

Yes you can, and they will all just fail.

There was to be a point where a page file, even if it is disabled, HAS to exist because of this.

I'm not sure what you're trying to argue. All that happens when you run out of memory is that memory allocation functions (like malloc) fail and return an error code to the program that called it. The program simply doesn't get what it asks for, and can deal with that in whatever manner it chooses. This is the same whether you run one or ten or a hundred programs.

I'm not sure what you're trying to argue.

What Im trying to argue is that there HAS to be a page file, even if it is disabled, for a critical situation.

What if the program is badly programmed and even though it returns a error code, it doesnt exit the process thus not freeing the memory? Windows draws up the GUI stating the error code (taking up memory itself as well) and it has to draw memory from somewhere.

^ This. Considering Windows / Linux or whatever have whole teams dedicated to improving preformance, surely if the pagefile was so bad, it wouldn't be enabled?

A lot of things in Windows are geared to what they view as the "average user", and many settings are set to "safe" ones which might result in decreased performance but will lower the number of calls coming through to support services.

Sure, some settings will be optimized around to account for different types of hardware but beyond a point performance is affected by how each individual user uses their system. Operating systems can do a better job by asking the user what their usage scenarios are, like if they are never going to use wireless, there's no real point in running related services (like WLAN Autoconfig). But that would introduce a degree of "complexity" of novice users who might one day decide to use the wireless card and find it not working (If you want to be pedantic, yes, Diagnostic Policy service could detect it; but this is just an example).

When considering the pagefile, the consensus is that it is needed, particularly to allow Windows to allocate memory to applications that request it without physically allocating it in RAM. But what about someone with 8GB of RAM but never needs to use more than 2GB. Going by MS recommendations, that would mean a 12GB pagefile. Yes, that's not harmful but what if the user had a 64GB SSD?

My point? The people coding OSes might be (are!) really smart and do a lot of research into improving performance, but they are delivering their binaries to 100s of millions of users, and some corners get cut so that the "average user" is happy. Things will get better over time but we are have not reached the point where the OS knows better than the most knowledgable user (but I'll admit that it knows better than the "average user").

What Im trying to argue is that there HAS to be a page file, even if it is disabled, for a critical situation.

What if the program is badly programmed and even though it returns a error code, it doesnt exit the process thus not freeing the memory? Windows draws up the GUI stating the error code (taking up memory itself as well) and it has to draw memory from somewhere.

if it receives an error code from malloc it means the memory could not be allocated, in which it never receives the memory in the first place, so it doesn't need to free it later

My point? The people coding OSes might be (are!) really smart and do a lot of research into improving performance, but they are delivering their binaries to 100s of millions of users, and some corners get cut so that the "average user" is happy. Things will get better over time but we are have not reached the point where the OS knows better than the most knowledgable user (but I'll admit that it knows better than the "average user").

Judging from the lunacy of some of the tweaks that "advanced users" make to Windows 7, I'd say the people at Microsoft accounted pretty well for all user types. Even advanced users have to admit, at a certain point, they have no idea what really goes on behind the scenes better than the people who made Windows.

And who's to say there's nothing in the Windows source code to account for all the niche situations that people keep tweaking about? Just because you don't see an option in the Control Panel or registry, doesn't mean Windows won't do some desperate measures when its stability is compromised.

What Im trying to argue is that there HAS to be a page file, even if it is disabled, for a critical situation.

It seems like you believe Windows is designed so that nothing must ever fail. It isn't. It's also worth pointing out that having a page file only increases the amount of memory available, it doesn't make it infinite. In other words, everything that applies to running out of memory without a page file, also applies to running out of memory with one. Both are easy to do if you try.

What if the program is badly programmed and even though it returns a error code, it doesnt exit the process thus not freeing the memory?

Like DDStriker says, the memory is never allocated and so does not have to be freed.

Windows draws up the GUI stating the error code (taking up memory itself as well) and it has to draw memory from somewhere.

Windows doesn't tell the user, it tells the program that made the function call, either by returning an error code, or by raising an exception. It tells the program--in code--that "sorry, the memory you asked for was not allocated."

Now, Windows will occasionally display warning messages to the user to notify him that memory is running low, but this is a separate thing and there's no 1:1 relationship with the number of failed allocations. It won't flood the screen with dialog boxes. There are also provisions to make sure that this dialog box can still be displayed in most cases, and to help you kill programs that are using excessive amounts of memory to help you restore the system to a usable level.

Disabling the page file is like running an OS that has no virtual memory. I don't know if you are old enough to remember, but those used to exist. The Amiga, for instance, did not have it. Once you ran out of memory there, you had to exit stuff to make more available. It's the same with Windows.

My point? The people coding OSes might be (are!) really smart and do a lot of research into improving performance, but they are delivering their binaries to 100s of millions of users, and some corners get cut so that the "average user" is happy. Things will get better over time but we are have not reached the point where the OS knows better than the most knowledgable user (but I'll admit that it knows better than the "average user").

Many people consider themselves expert when they really aren't though, or when they are experts on something completely unrelated. Obviously many advanced options have to exist, but it's probably safe to say that many people who go near them don't really know what they're doing.

No time to really post to hood so Ill keep it short

if it receives an error code from malloc it means the memory could not be allocated, in which it never receives the memory in the first place, so it doesn't need to free it later

When programming in C (simple programs), when malloc failed to reserve memory for say a dynamic struct, it would say the program has a error cant continue bla bla bla.......but the program is still running in the background even though that dynamic struct could never be reserved because (in this case) a illegal memory reservation..

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

    • No registered users viewing this page.
  • Posts

    • U.S. partially reverses Anthropic AI ban for Mythos but keeps Fable 5 off the market by Karthik Mudaliar Anthropic says that the U.S. government has finally allowed it to restore Claude Mythos 5. But of course, there's a catch. The rollout is again for a limited set of U.S. organizations that operate and defend critical infrastructure. The company announced this in a post on X (formerly Twitter). This does not mean that Anthropic's latest frontier models are back to normal availability. Fable 5, which was a tuned version of Mythos 5 for public release, remains unavailable. Anthropic said that it is still working with the government to expand Mythos 5 access and make Fable 5 available again, but there's no timeline. Reports from Bloomberg and Reuters say that this decision actually came through a letter from the U.S. Commerce Department. According to Reuters, this would allow more than 100 companies and institutions access to Mythos 5. Reuters also reported that Commerce Secretary Howard Lutnick’s letter removes the need for export licenses for approved companies’ non-US citizen employees, as well as Anthropic’s own non-US citizen employees, while restrictions remain for organizations outside the approved list. Anthropic isn't alone with this kind of controlled rollout. OpenAI's newest model family, GPT 5.6, was announced just yesterday, but isn't available for everyone yet. In its announcement, OpenAI also said that access to these models is initially limited to a select group of trusted partners and organizations, with broader access planned later this year. Both of these cases show that frontier AI launches are no longer just ordinary product releases and more like slow and vetted deployments shaped heavily by the U.S. government.
    • Sol, Terra, Luna - aren't those the names of failed crypto coins? 🤣🤣🤣
    • Microsoft Weekly: 5 years of Windows 11, more support for Windows 10, and expensive Xbox by Taras Buria This week's news recap is here, with Microsoft giving Windows 10 one more year of support, Windows 11 getting new taskbar settings in preview updates, Steam Machine prices, higher XBOX prices, and many more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Reviews are in Gaming news Great deals to check Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. On June 24, 2026, Windows 11 turned five. The controversial operating system was released half a decade ago, and during these years, it received a fair share of criticism (such as poor Windows Search and its web results), which Microsoft is now actively addressing with regular preview updates that deliver missing, long-requested features. With Windows 12 nowhere to be seen on the horizon, it will be interesting to see if Windows 11 can stay on the market for as long as Windows 10 did. Speaking of Windows 10 and staying on the market, this week, Microsoft quietly prolonged the Extended Security Updates program for Windows 10, allowing users to get one more year of security updates if they do not want or cannot upgrade to Windows 11. Finally, Microsoft released this month's non-security update for Windows 11. KB5095093 arrived with a traditionally long list of new features, including point-in-time restore, new Windows Update settings, quieter Windows Widgets, new accessibility features, File Explorer updates and performance improvements, and more. Windows Insider Program Here is what Microsoft released for Windows Insiders this week: Builds Canary Channel Build 29617.1000 and build 28120.2374 These builds bring new accessibility features, new Windows Update controls, audio improvements, and more. Dev Channel Build 26300.8758 This build includes redesigned taskbar settings, File Explorer improvements, and more. Beta Channel Build 26220.8754 and build 28020.2366 This small update fixes the OneDrive bug in File Explorer, tweaks system sounds in dark mode, and more. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) delivering new features, security fixes, improvements, patches, and more from Microsoft and third parties. If you use AI-powered browsing history search in Microsoft Edge, the company has bad news. A new update on the Microsoft 365 Roadmap revealed that Microsoft is discontinuing the feature. Despite using on-device models for natural search, some users found it creepy, claiming that Microsoft lacks trust in features like this. While the ability to find pages without using 100% precise words may sound cool, customers argued that it was nothing but another feature to bloat the browser with more AI. Good riddance? PowerToys received several updates this week. For one, Microsoft released version 0.100.1 with several improvements and bug fixes for the recently arrived version 0.100. A couple of days later, Microsoft dropped another update, this time fixing memory leaks in Command Palette Dock. In addition, the company is working on a new module that will make it easier to switch between windows within one application using the Alt + ` shortcut. The new module should make it to the stable release somewhere soon. Here are other updates and releases you may find interesting: New Ventoy update adds Windows 11's mandatory update support and more Microsoft updates Visual Studio Code with chat cost tracking and multi-agent chats Microsoft is building an AI datacenter that "uses less water than a fast food restaurant" Microsoft adds new AI study and teaching tools for free to Microsoft 365 Education Researchers claim Microsoft's quantum breakthrough is flawed by basic Python errors Microsoft is bringing a much-needed Recap app to Teams Microsoft's fast coding model, MAI-Code-1-Flash, comes to Copilot Business and Enterprise Here are the latest drivers and firmware updates released this week: AMD Radeon Software 26.6.2 with FSR 4.1 support for RDNA 3 graphics card. However, the driver contained a bug, which prevented installations on Windows 10 PCs. AMD fixed that with a quick hotfix update. Reviews are in Here is the hardware and software we reviewed this week This week, Steven Parker published several reviews. He shared his experience with the Creative Sound Blaster AE-X PCIe, a high-quality sound card with a headphone amp, low-latency communications, great build quality, and DSD256. However, it is on the pricier side of the spectrum, and it lacks EMI shielding. Check out the full review here. The second review is about the TerraMaster F4-425 Pro, an octa-core Intel NAS with a stand-out feature: built-in AI (OpenClaw). We also published a few Hands On reviews, which you can view below: We check out the SKG PS700 Neck Massager SKG Hand Massager with Heat OS500 hands on Hands-on with BOOX Tappy: cute little reading accessory Hands on with the ProtoArc EM25 affordable ergonomic mouse On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. If you plan to purchase a new Xbox, it's time to act now. This week, Microsoft announced yet another Xbox price increase. Starting August 1, 2026, all Xbox Series X|S models with 512 GB of storage will cost $100 more. As for the 1TB models, they are going up in price by a whopping $150. Finally, Microsoft is discontinuing the 2TB Xbox Series X. To make up for that, Microsoft announced a few programs to make its consoles more accessible. Those include BNPL, interest-free financing, pre-owned consoles, certified refurbished consoles, and more. Valve also shared some not-so-welcome news. The company has finally announced prices of the upcoming Steam Machine console, and if you plan to buy one, get ready to spend a whopping $1,049 on the 512GB configuration. The Steam Machine is now available for preorder, with shipments scheduled for June 29, 2026. Grand Theft Auto VI also received its official price tag. Rockstar Games announced that the long-anticipated game will launch at $79.99 for the base edition and $99.99 for the ultimate edition. The latter includes an exclusive collection of premium vehicles, weapons, apparel, and action threaded across all aspects of Jason and Lucia’s story." Those who preorder the game will get extra bonuses, including a Vintage Vice City Pack of cosmetic items as well as a free month of GTA+. NVIDIA announced new games for its GeForce NOW streaming service. Those include Dark Scrolls, SAND: Raiders of Sophie, Deer & Boy, EMPULSE, and more. Steam is running its annual Summer Sale, during which you can purchase plenty of various games with big discounts. It runs until July 9, so in case you missed it, you can still get some games at a lower price. Also, you can get two games for free in the Epic Games Store, plus more deals are available in this week's Weekend PC Game Deals issue. This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering for a free member account or subscribing for extra member benefits, along with an ad-free tier option.
    • Text extractor hasn't been working great on 0.99.1 but I am now updating to this version, hopefully it's better!
    • Yet you did exactly what they wanted you to do - is it better now without "Europrats"? BTW, UK had joined EU (EEC back then) and was one of the leading member states, it never joined Schengen Zone though 😉
  • Recent Achievements

    • Week One Done
      flexorcist earned a badge
      Week One Done
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      502
    2. 2
      +Edouard
      226
    3. 3
      PsYcHoKiLLa
      156
    4. 4
      Steven P.
      75
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!