• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Running out of RAM

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
I'm trying to fix a laptop, it's chews up RAM like nothing when idle. It happens sometimes a few days after restart, never on the first day.

Closing programs doesn't do much, see image. mdsched found nothing. Sometimes it drops down to normal levels after an hour or so, although not a given. I have no idea what is causing this, I'd guess it's a memory leak.

"Just sort by memory usage" got me absolutely nowhere lol. Is there anything else I can do before reinstalling the shit out of it?


Lenovo Y50-70
CPU: 4710HQ
GPU: 860M & igp
16 GB RAM
1701114603871.png
 
Joined
Jun 2, 2014
Messages
545 (0.14/day)
Location
Midwest USA
System Name Core
Processor Intel 12900k @ 5.3/4.0
Motherboard MSI z690 Tomahawk
Cooling Custom H20
Memory GSkill 64GB 3600 cas 15 b die
Video Card(s) ASUS RTX 4070 Super OC'
Storage Optane 900p x2, SK Hynix p41 Pro
Display(s) ACER 250hz 1080p 25" VA display x2
Case Phanteks p500a with all Arctic/Thermaltake fans
Audio Device(s) Focusrite interface, Presonus Studio Monitors and Subwoofer
Power Supply Seasonic 850w plat with cable mod cables
Mouse Glorious Model O
Keyboard Havic mech
Software Win 11 Pro
Im guessing you have some sort of malware? I have seen Adobe and other apps now that I think of it do Auto Creations while at idle. This uses a ton of resources and can be stopped. Could be that too I guess.
 
Joined
Jun 3, 2008
Messages
750 (0.12/day)
Location
Pacific Coast
System Name Z77 Rev. 1
Processor Intel Core i7 3770K
Motherboard ASRock Z77 Extreme4
Cooling Water Cooling
Memory 2x G.Skill F3-2400C10D-16GTX
Video Card(s) EVGA GTX 1080
Storage Samsung 850 Pro
Display(s) Samsung 28" UE590 UHD
Case Silverstone TJ07
Audio Device(s) Onboard
Power Supply Seasonic PRIME 600W Titanium
Mouse EVGA TORQ X10
Keyboard Leopold Tenkeyless
Software Windows 10 Pro 64-bit
Benchmark Scores 3DMark Time Spy: 7695
Nothing like a good drive wipe to fix all your problems.
 

3x0

Joined
Oct 6, 2022
Messages
960 (1.22/day)
Processor AMD Ryzen 7 5800X3D
Motherboard MSI MPG B550I Gaming Edge Wi-Fi ITX
Cooling Scythe Fuma 2 rev. B Noctua NF-A12x25 Edition
Memory 2x16GiB G.Skill TridentZ DDR4 3200Mb/s CL14 F4-3200C14D-32GTZKW
Video Card(s) PowerColor Radeon RX7800 XT Hellhound 16GiB
Storage Western Digital Black SN850 WDS100T1X0E-00AFY0 1TiB, Western Digital Blue 3D WDS200T2B0A 2TiB
Display(s) Dell G2724D 27" IPS 1440P 165Hz, ASUS VG259QM 25” IPS 1080P 240Hz
Case Cooler Master NR200P ITX
Audio Device(s) Altec Lansing 220, HyperX Cloud II
Power Supply Corsair SF750 Platinum 750W SFX
Mouse Lamzu Atlantis Mini Wireless
Keyboard HyperX Alloy Origins Aqua
Id start with updating network and sound drivers. What is RAMMap64.exe?
 
  • Like
Reactions: SL2
Joined
Jul 21, 2008
Messages
5,252 (0.88/day)
System Name [Daily Driver]
Processor [Ryzen 7 5800X3D]
Motherboard [MSI MAG B550 TOMAHAWK]
Cooling [be quiet! Dark Rock Slim]
Memory [64GB Crucial Pro 3200MHz (32GBx2)]
Video Card(s) [PNY RTX 3070Ti XLR8]
Storage [1TB SN850 NVMe, 4TB 990 Pro NVMe, 2TB 870 EVO SSD, 2TB SA510 SSD]
Display(s) [2x 27" HP X27q at 1440p]
Case [Fractal Meshify-C]
Audio Device(s) [Fanmusic TRUTHEAR IEM, HyperX Duocast]
Power Supply [CORSAIR RMx 1000]
Mouse [Logitech G Pro Wireless]
Keyboard [Logitech G512 Carbon (GX-Brown)]
Software [Windows 11 64-Bit]
Joined
Jan 29, 2012
Messages
6,881 (1.47/day)
Location
Florida
System Name natr0n-PC
Processor Ryzen 5950x-5600x | 9600k
Motherboard B450 AORUS M | Z390 UD
Cooling EK AIO 360 - 6 fan action | AIO
Memory Patriot - Viper Steel DDR4 (B-Die)(4x8GB) | Samsung DDR4 (4x8GB)
Video Card(s) EVGA 3070ti FTW
Storage Various
Display(s) Pixio PX279 Prime
Case Thermaltake Level 20 VT | Black bench
Audio Device(s) LOXJIE D10 + Kinter Amp + 6 Bookshelf Speakers Sony+JVC+Sony
Power Supply Super Flower Leadex III ARGB 80+ Gold 650W | EVGA 700 Gold
Software XP/7/8.1/10
Benchmark Scores http://valid.x86.fr/79kuh6
backup and go fresh install , get out this nightmare before it starts
 
Joined
May 20, 2020
Messages
1,372 (0.83/day)
Try stopping and disabling SysMain service - that's what Superfetch is called nowdays.
 
  • Like
Reactions: SL2
Joined
Jan 5, 2006
Messages
18,584 (2.69/day)
System Name AlderLake
Processor Intel i7 12700K P-Cores @ 5Ghz
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut Extreme + 5 case fans
Memory 32GB DDR5 Corsair Dominator Platinum RGB 6000MT/s CL36
Video Card(s) MSI RTX 2070 Super Gaming X Trio
Storage Samsung 980 Pro 1TB + 970 Evo 500GB + 850 Pro 512GB + 860 Evo 1TB x2
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p
Case Be quiet! Silent Base 600 - Window
Audio Device(s) Panasonic SA-PMX94 / Realtek onboard + B&O speaker system / Harman Kardon Go + Play / Logitech G533
Power Supply Seasonic Focus Plus Gold 750W
Mouse Logitech MX Anywhere 2 Laser wireless
Keyboard RAPOO E9270P Black 5GHz wireless
Software Windows 11
Benchmark Scores Cinebench R23 (Single Core) 1936 @ stock Cinebench R23 (Multi Core) 23006 @ stock
What happens if you turn all "fast boot" and "hibernate" things off.

I used to have a laptop using fast boot , hibernate and such, every time I started up the laptop it's memory usage would increase, I fixed it by disabling all this.
 

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
You have a paged pool memory use of almost 34 GB. This isn't just unusually high; it's obscenely high. This is where your memory use is going.

You need to find out what (likely a driver) is consuming (likely leaking) all of this memory. You can use Poolmon to identify this.

Yeah, obscene is the word. Didn't know about Poolmon, thanks for the tip.

What happens if you turn all "fast boot" and "hibernate" things off.

I used to have a laptop using fast boot , hibernate and such, every time I started up the laptop it's memory usage would increase, I fixed it by disabling all this.
Fast boot is off, and the issue can appear before using Hibernate or even Standby.

I really appreciate all the help I've been getting, but the thing is that I can only try a couple of suggestions per week, given the time it takes for the problem to show up.
 
Joined
Jan 1, 2012
Messages
344 (0.07/day)
You almost 100% have a driver leak. Or some lower level application but it's a leak for sure. The fact that your paged pool use is that high, and the fact that you say it shows up after time, is a strong indicator.

Poolmon should help you narrow down what driver is claiming the high memory use. From there, either update the driver, or if it's already at the latest version, maybe try downgrading it or disabling the device. But you'll at least know the cause.
 

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
If there's any driver I suspect it's Nvidia, I've had problems with it on this one and changed the driver before. On the other hand, since the issue persisted after a driver change, maybe it's something else causing this.
 
Last edited:
Joined
Jul 15, 2022
Messages
944 (1.09/day)
If there's any driver I suspect it's Nvidia, I've had problems with it on this one and changed the driver before. On the other hand, since the issue persisted after a driver change, maybe it's something else causing this.
Memory leaks are often caused by the operating system itself.
 
  • Like
Reactions: SL2
Joined
Jul 25, 2006
Messages
13,179 (1.97/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
Reinstalling Windows is, or should always be a last resort, last ditch effort. For one it often does not fix the issue. For another, if it does fix the issue, you don't learn what caused it in the first place in order to prevent it from occurring again.

If you have dinked with your page file setting, change it back to the defaults and just let Windows manage it. Contrary to what many want us to believe, Windows knows how to do it very well.

HOWEVER, for a page file to work properly, there needs to be sufficient free space on the drive. How much free disk space do you have? I like to keep at the very least 20GB free, more than 30GB is preferred. This amount is NOT dependent on the total size of the drive. In other words, it is not based on some percent.

Run Windows Disk Cleanup (or CCleaner if you already have it) to clean out the clutter.

Unplug all connected USB devices (except keyboard and mouse), then reboot and see how it goes.
 

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
Reinstalling Windows is, or should always be a last resort, last ditch effort. For one it often does not fix the issue. For another, if it does fix the issue, you don't learn what caused it in the first place in order to prevent it from occurring again.

If you have dinked with your page file setting, change it back to the defaults and just let Windows manage it. Contrary to what many want us to believe, Windows knows how to do it very well.

HOWEVER, for a page file to work properly, there needs to be sufficient free space on the drive. How much free disk space do you have? I like to keep at the very least 20GB free, more than 30GB is preferred. This amount is NOT dependent on the total size of the drive. In other words, it is not based on some percent.

Run Windows Disk Cleanup (or CCleaner if you already have it) to clean out the clutter.

Unplug all connected USB devices (except keyboard and mouse), then reboot and see how it goes.
I won't do anything until the problem comes back, otherwise I'll never know what was wrong. The paged pool is currently 556 MB so I just have to wait.
The issue will possibly come back before friday, I'll leave it on until then.

When that happens I will (not related to each other, necessarily):
1 - Run poolmon and look for obscenities, I've got all 5.8 GB installed and working.
2 - Stop sysmain.

As I've never experienced any chrashes because of this I'm in no hurry to fix it, I can wait a month if needed as it doesn't bother me in any other way.
I'm eager to figure out what's going on, this is a first for me.
 
Last edited:

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
The memory chugging kicked in today, I checked with poolmon and figured it out. I have the same problem as this one.

When looking for info I saw a lot of dead ends, people who never could figure it out. Here I saw some more info about what to do, although I never got to try it myself.

The cause for this was a small program I made that runs in the background (audio related). I will have a look at it later on, but I'm glad I didn't reinstall! That would have been a waste of time.

I disabled some Startup Event Trace Sessions earlier, do they have to be reactivated?


Thanks everyone for the help!
 
Last edited:
Joined
Jan 1, 2012
Messages
344 (0.07/day)
I'm glad you found the cause.

This is why I'm not a fan of jumping on the "reinstall Windows" nuclear option right out the gate, because while that certainly might solve the issue (especially at first), you don't know what caused it or if it might come back. It's a good option as a last resort.
 
Joined
Jul 15, 2022
Messages
944 (1.09/day)
This is why I'm not a fan of jumping on the "reinstall Windows" nuclear option right out the gate, because while that certainly might solve the issue (especially at first), you don't know what caused it or if it might come back. It's a good option as a last resort.
What sometimes happens: after hours of trying to solve something, no solution is found. Sometimes it is faster to do a re-installation but it depends on the situation.
You can install most Linux systems in about 5 minutes. Installing windows also doesn't take particularly long how I remember it.
 

SL2

Joined
Jan 27, 2006
Messages
2,454 (0.36/day)
I've installed more than a hundred times ever since W2000, and many times I've done it directly without trying to figure out what's going on, but in the end it always depends on what's wrong.

This time it was different. It pretty much always takes three days before it goes wrong, and I just got too curious to let it go.

Can anyone guess why this code would cause memory leaks in Windows, but only after three days? I'm no expert.. :D The program itself never uses more than 4 MB.

1701436240540.png
 
Joined
Jan 1, 2012
Messages
344 (0.07/day)
What sometimes happens: after hours of trying to solve something, no solution is found. Sometimes it is faster to do a re-installation but it depends on the situation.
You can install most Linux systems in about 5 minutes. Installing windows also doesn't take particularly long how I remember it.
That's true, but there's often times a lot of post-install setting up that some of us do (perhaps not everyone), and either doing that or configuring those installations to image all the time is typically a lot more work in and of itself.

I like to defer that option until after I've exhausted other options, personally. But I might feel that way because I haven't run into many situation where I've even needed to consider reinstalling Windows to begin with, and the one exception to this is an issue where reinstalling Windows didn't resolve it anyway.

I have a lot of history having to reinstall Windows XP often. Windows 7 and Windows 10? Those installations lasted me forever.
 
  • Like
Reactions: SL2
Joined
Jul 25, 2006
Messages
13,179 (1.97/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
I disabled some Startup Event Trace Sessions earlier, do they have to be reactivated?
No. But here's my general philosophy when troubleshooting or just when tweaking and dinking to see what happens: If I change a default setting and I don't see any improvement, I restore the default. I don't leave the change. Why?

Contrary to what some want everyone else to believe, the teams of 100s (1000s?) of PhDs, computer scientist and professional programmers at Microsoft, and their combined centuries of experience and their 10s of exabytes of empirical data to draw upon, really do know what they are doing. It is just with all that brainpower, experience, data and supercomputers to crunch with, they still cannot account for each and every one of the 1.6 billion "unique" scenarios and Windows computers out there.

It is important to remember that every Windows computer becomes a unique computer within the first few minutes of the very first boot (even 2 identical computers coming off the same assembly line, one right after the other) - this as users setup their own networking, security, hardware configurations, accounts, personalizations, applications, peripherals, etc.

So if changing the default does improve things fine. Leave it. But if no improvement is seen, change it back to the factory default setting.

Can anyone guess why this code would cause memory leaks in Windows, but only after three days? I'm no expert..
I'm not either. I'm a electronics technician, not a programmer (and that's by choice). But I did find this: SoundPlayer causing Memory Leaks? that looks pretty similar to your situation, even though that post is from 13 years ago. It might give you, or someone who is a real programmer, a clue.

In any case, please keep us posted.

What sometimes happens: after hours of trying to solve something, no solution is found. Sometimes it is faster to do a re-installation but it depends on the situation.
As the Princess noted, and as I noted previously in post #18 above, it is not always about getting the system back up and running quickly, it is about learning what happened so it can be prevented from happening again - this is true even after hours of exhaustive troubleshooting.

W7/10/11 are not like XP and earlier versions and should not be treated the same way. I note "format and reinstall" was almost a "matter of routine" back in those days. But not anymore.

Running a repair, or restoring from a "known good" image backup (especially if "time is money") would be MUCH BETTER options to perform before "reinstalling" the OS. Just beware, regardless if doing a repair, restore from image backup, or a full reinstall, it is not uncommon for users to then reinstall the problem back too by copying back their saved (but infected or corrupt) personal files and programs - putting them right back where they started with a broken machine and not know the cause. :(
 
  • Like
Reactions: SL2
Top