• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

How do i fix windows garbage memory management

Status
Not open for further replies.
Joined
Sep 2, 2020
Messages
1,499 (0.87/day)
System Name Chip
Processor Amd 5600X
Motherboard MSI B450M Mortar Max
Cooling Hyper 212
Memory 2x 16g ddr4 3200mz
Video Card(s) RX 6700
Storage 5.5 tb hd 220 g ssd
Display(s) Normal moniter
Case something cheap
VR HMD Vive
Ok so this happens with several games
ive had to limit the swap file because im running out of disk
And ive watched forza motosport 7 suck up all the swap and then crash for no reason
and before you say upgrade your ram
their was 10 GIGS of REAL ram free at the time so it did NOT need to use swap
 
get a bigger hard drive or free up some space. I got 32GB of ram and windows 10 still uses small amounts of swapfile. Maybe 300-500mb.

Some apps will ALWAYS require swapfile and turning it off or setting the limit too low will cause things to crash.

Either that or switch to linux -- At least thats free and fairly good on resource usage compared to windows.
 
Some apps will ALWAYS require swapfile and turning it off or setting the limit too low will cause things to crash.
but why as long as their is ram free it should just work
also linux cant run half the games i want it to so its useless for gaming
 
but why as long as their is ram free it should just work
also linux cant run half the games i want it to so its useless for gaming

idk ask Microsoft

have you even tried? a lot of games work quite well within linux though you'll need a wrapper line WINE or something similar. Im not sure if they have something newer/better than wine since i last used linux.
 
idk ask Microsoft

have you even tried? a lot of games work quite well within linux though you'll need a wrapper line WINE or something similar. Im not sure if they have something newer/better than wine since i last used linux.
yeah i have its a bunch of work
if it dont vannilla support i dont count it
also forza is a udp app
 
get a bigger hard drive or free up some space. I got 32GB of ram and windows 10 still uses small amounts of swapfile. Maybe 300-500mb.

Some apps will ALWAYS require swapfile and turning it off or setting the limit too low will cause things to crash.

Either that or switch to linux -- At least thats free and fairly good on resource usage compared to windows.
Is swap file same as pagefile?
 
is page-file still relevant?
i thought that was like ready boost
:laugh: ;)

ive never run into these issues, my PF is auto managed, & is apparently 8Gb's

Capture.PNG
 
Ok so this happens with several games
ive had to limit the swap file because im running out of disk
And ive watched forza motosport 7 suck up all the swap and then crash for no reason
and before you say upgrade your ram
their was 10 GIGS of REAL ram free at the time so it did NOT need to use swap
you cant always rely on what windows is reporting as free

clearly, your program needs more swap file so... free up space and give it more swap file.
 
is page-file still relevant?
i thought that was like ready boost
:laugh: ;)

ive never run into these issues, my PF is auto managed, & is apparently 8Gb's

View attachment 195232
Your not running out of disk space, that's his first, primary issue.
His Fix for that is causing this, I know what I would do.
And I agree in usual use with space, auto has mine sorted faultlessly.
 
I have mine off, but it will still page out if it has too. That usually only happens with something like TM5.


Capture.JPG
 
you cant always rely on what windows is reporting as free

clearly, your program needs more swap file so... free up space and give it more swap file.
program is motosport 7
ive moved it to a hard disk and it seems to big fine
 
and where is the problem?
 
Short answer, you can't. The page file is a nearly unavoidable part of windows. If you disable it, windows will still force it to be used. And unless you have the source code for both windows and the game you want to play, you'll not be able to change that.

Conventional wisdom, don't go down this rabbit hole. Set your page file to automatic, or with an upper limit if you must, clean your disk, or get a second disk to dedicate to page file, and don't beat your head against the wall. People have been asking this question for decades, and the answer is always the same. Just because you have free ram does not mean there is no need for a swap file. It doesn't work like that.
 
No I don't buy into that. Yes it does still page out if needed, but only if needed. Just like if you were using the default size. There may have been one or two instances over the years where I did need one, but for the vast majority of things I do, I don't need one. Windows runs fine, programs run fine..
 
And ive watched forza motosport 7 suck up all the swap and then crash for no reason
and before you say upgrade your ram
their was 10 GIGS of REAL ram free at the time so it did NOT need to use swap
That is a bug with Forza Motorsports, not Windows. Some apps will use the page file no matter what. And it sounds like Forza has a memory leak that affects the fills up the page file.

Most of the time, if the program isn't coded like garbage, it should use system memory if the program is currently being used. Windows even prioritizes programs running in full screen mode to make sure they have as much system RAM available for them to use as possible(moving background programs to the page file if necessary to free up RAM). But at the end of the day, Windows can only do so much. If the program itself wants to directly use the page file, then that is what will happen. And if the page file is too small, bad things can happen(crashes).

I have mine off, but it will still page out if it has too. That usually only happens with something like TM5.
Then the reality is it is still set to automatic, because it's going to just ignore you settings and use it anyway.

The better option is to set it to a fixed size like 4GB. I've had it set to 4GB for years and that seems to be the sweet spot where it is enough to make programs that have to have a page file happy, but small enough that it doesn't each up disk space.
 
It sounds like your blaming Windows for having insufficient storage on the PC.

Get a bigger SSD/HDD, let Windows manage the swap file automatically and watch these problems disappear.

It would help us to help you if you filled out your system specs.
 
How do i fix windows garbage memory management

ive had to limit the swap file because im running out of disk

LOL

It is important to understand it is the user's responsibility to ensure the operating system has enough free disk space to operate in. So I find it amusing, sad and ironic when Windows is accused of "garbage memory management" when it is the user who has failed to properly manage the computer resources.

Contrary to what some folks think, and worse, what many want everyone else to believe, the developers at Microsoft are not stupid. I can't say the same for the marketing weenies or some of the executive decisions - but that's for a different discussion. But when it comes to Windows development, Microsoft has had decades of time and multiple exabytes of empirical data to analyze and use. And they have top experts with PhDs and other advanced degrees in the computer sciences, with super computers at their disposal to crunch that data, run millions and millions of different scenarios, and evaluate results the ensure Windows most effectively and efficiently utilizes and manages system resources - AS LONG AS the user doesn't dink with the default settings. So it amazes me how some, typically with little to no formal training or education in virtual memory management, think they are smarter than MS at virtual memory management. :rolleyes:

Or they think their system is so unique, it requires manual management. That is total nonsense. 99% (probably more than that) of the computers used today fall into the "normal" configuration range and therefore, Windows knows how to manage virtual memory just fine.

You solution is obvious. If you are running out of disk space, so you need more disk space. You need to uninstall programs you no longer use, move user files off to another drive, and/or buy more disk space. Then restore the defaults for the page file to let Windows manage it!

then crash for no reason

and before you say upgrade your ram
their was 10 GIGS of REAL ram free at the time so it did NOT need to use swap

:( LOL Crashes always, as in EVERY SINGE TIME, happen for a reason. Just because we don't see, don't know, or don't understand the reason, that does NOT mean Windows is to blame.

Sorry, but this illustrates my point. And in your defense, it is a common misconception so you are not alone. That totally incorrect information about having lots of RAM negates the need for a properly sized PF is sadly based on myths and other misinformation spewed about by those who think they know more than the experts.

It is simply false to suggest a PF is not needed if you have lots of RAM. Windows will always take advantage of it, and many programs require one, regardless how much physical RAM is installed. And I find the most common justification given to disable it, or reduce and/or restrict its size even more ironic. It is usually something along the lines of, "I disabled it and it didn't break Windows so it must be fine". :kookoo:

With today's modern Windows, and Windows ability to dynamically adjust the PF size as needed, there really is only one change to the defaults for virtual memory management that makes sense - in some cases. And that is when you have more than one physical drive installed, it is sometimes beneficial to create another page file on a secondary drive. So for example, if you have a small (or slow) boot drive, and a big (or faster) secondary drive, it may make sense to enable a PF on the secondary drive. And the good news is, Windows is again smart enough to use the fastest drive when possible. But note for crash dumps, the boot drive is always used. So the recommended setup is to enable "Windows managed" PFs on both (or even all) drives - then LEAVE THE SETTINGS ALONE.

clearly, your program needs more swap file so... free up space and give it more swap file.
Exactly. Well, ROH1T is right - these days, the swap file and PF, while both caches, are different. But Mussels' point is spot on - you need more disk space.
 
I think you have another problem going on I can run Forza 7 at max settings with 24 cars on the full Nürburgring and I'm only using about 10gb of ram for the entire system.
Something else that is running has a memory leak the discord overlay has this problem in a few games, you need to use process of elimination to figure out what is causing the problem.
Start with disabling any overclocking then start closing out programs until all your running is windows and the game
Untitled.png
 
Just to add to what's already been stated, multiple times ~ Windows manages not just your games but also a lot of applications & services in the background. Any alternative you can think of will not be better than MS' solution. Windows is definitely not perfect but I doubt you can do better than that on your own!
 
It's not always about the way Windows runs resource management some games / programs demand a swap/page file of x amount no matter how much free ram you have in the system it's just the way they were written so you either need a new bigger SSD or start deleting stuff of the one you have to free up space simple as that
 
Then the reality is it is still set to automatic, because it's going to just ignore you settings and use it anyway.

The better option is to set it to a fixed size like 4GB. I've had it set to 4GB for years and that seems to be the sweet spot where it is enough to make programs that have to have a page file happy, but small enough that it doesn't each up disk space.

I know, you went past my where I showed it was off, and then my other post where I said:

Yes it does still page out if needed, but only if needed. Just like if you were using the default size.

I'm not a pro or anything like that, this is just what I do after I install windows and I haven't had any issues in years. As I said earlier there has been a rare occasion or two when I did need one, but for the majority of my time, I don't need one.
 
Status
Not open for further replies.
Back
Top