Windows 10 high memory usage (unknown reason)

386,197

Solution 1

You have a memory leak caused by a driver. Look at the high value of nonpaged kernel memory. In your case this is over 3.7 GB. You can use poolmon to see which driver is causing the high usage.

Install the Windows WDK, run poolmon, sort it via P after pool type so that non paged is on top and via B after bytes to see the tag which uses most memory. Run poolmon by going to the folder where WDK is installed, go to Tools (or C:\Program Files (x86)\Windows Kits\10\Tools\x64) and click poolmon.exe.

Now see which pooltag uses most memory as shown here:

enter image description here

Now open a cmd prompt and run the findstr command. To do this, open cmd prompt and type cd C:\Windows\System32\drivers. Then type findstr /s __ *.*, where __ is the tag (left-most name in poolmon). Do this to see which driver uses this tag:

enter image description here

Now, go to the drivers folder (C:\Windows\System32\drivers) and right-click the driver in question (intmsd.sys in the above image example). Click Properties, go to the details tab to find the Product Name. Look for an update for that product.

If the pooltag only shows Windows drivers or is listed in the pooltag.txt ("C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\triage\pooltag.txt")

you have use xperf to trace what causes the usage. Install the WPT from the Windows SDK, open a cmd.exe as admin and run this:

xperf -on PROC_THREAD+LOADER+POOL -stackwalk PoolAlloc+PoolFree+PoolAllocSession+PoolFreeSession -BufferSize 2048 -MaxFile 1024 -FileMode Circular && timeout -1 && xperf -d C:\pool.etl

capture 30 -60s of the grow. Open the ETL with WPA.exe, add the Pool graphs to the analysis pane.

Put the pooltag column at first place and add the stack column. Now load the symbols inside WPA.exe and expand the stack of the tag that you saw in poolmon.

enter image description here

Now find other 3rd party drivers which you can see in the stack. Here the Thre tag (Thread) is used by AVKCl.exe from G-Data. Look for driver/program updates to fix it.


The user Hristo Hristov provided a trace with a high FMfn usage during unzipping files:

enter image description here

The tag is used by the driver WiseFs64.sys which is part of the "Wise Folder Hider" program. Removing it fixes the leak.


The user Samuil Dichev provided a trace with a high FMic and Irp usage

enter image description here

enter image description here

The tags are used by the program Razor Cortex.

In the sample of the user chr0n0ss the FMic and Irp usage is caused by F-Secure Antivirus Suite:

enter image description here

Removing it and using Windows Defender fixed the issue for him.


Solution 2

this guy might have a Killer Networking (previously Bigfoot networking) brand network card.

Was going crazy trying to figure out why I had a massive memory leak and even did a completely clean install and immediately after installing I had a memory leak. Of course I installed my network drivers and video card drivers but that was it.

I searched Google... Found this thread saying it was his network driver then googled "killer memory leak" and saw hits for that and found it was the killer app itself and not just in windows 10.

Now I'm golden... So if anyone else has this issue and they have one of the many gaming boards or laptops that have a killer NIC you can probably just disable the killer app from starting. But what I did was completely uninstall the ASROCK provided driver and then installed the latest driver only package from the official killer networking site. It's the smaller ~30mb download. If your download is closer to or more than 100mb then you got the wrong one.

You'll loose everything that makes the killer stand out (it's QoS software) but that's what a good router is for in the first place... Especially since the killer app only handles the QoS of applications running on your PC and does nothing for your network as a whole.

Solution 3

The accepted answer by magicandre1981 is the correct answer to this problem, if the RAM usage continues to climb to 100% then there's most likely a memory leak.

However, if you've come to this page because Windows 10's memory usage is high but remaining steady (like in the 60%-90% range), you probably don't have a problem. Windows 10 uses RAM more effectively than past versions. This is because unused RAM is wasted RAM.

Modern operating systems have long swapped infrequently used memory data to a pagefile on the hard drive in order to free up RAM for more frequently needed memory data. (My Win 10 system has 8GB RAM and a 12GB pagefile.) However, it is slow to retrieve this data back from the drive, and Windows 10 will compress infrequently accessed memory and store it in the system process (in the RAM). It's faster to uncompress this data than it is to retrieve it from the hard drive (even an SSD). Just because your RAM is mostly full, does not mean you won't be able to run more things, if more RAM is needed then Win 10 will move some of this compressed memory to the pagefile to free up RAM for new applications.

If you constantly find your system process is using more than 1GB RAM (like I do) than you probably have too many browser tabs open (like I do). An extension like OneTab can help.

Share:
386,197

Related videos on Youtube

Lukas
Author by

Lukas

Updated on September 18, 2022

Comments

  • Lukas
    Lukas over 1 year

    A few days ago I updated my PC to Windows 10. However, after some use my PC started to slow down until it was impossible to use – it was due to high memory usage. After a restart, everything came back to normal (total usage around 25% of 8GB of RAM). However, during a few hours of usage the memory builds up again to 70%, and if not restarted it further goes to 100%, and later on even freezes. Task manager does not help very much as it does not show all the processes (added screenshots below). Also tried RAMMap but it gives an error: "error refreshing database". I tried Googling this question, yet without much success.

    I do not know much about PCs, but maybe some of you know this issue, or could help to find out what is using my RAM.

    RAM usage 1

    RAM usage 2

    • magicandre1981
      magicandre1981 almost 9 years
      @AR provide a xperf trace. I need to look at the call stacks to see more.
    • hypermails
      hypermails over 5 years
      I know this thread is solved - but a good first step is to disable hyper-v. that was the culprit in my case.
    • rogerdpack
      rogerdpack almost 5 years
      What was Hyper-V running?
    • IT_User
      IT_User over 3 years
      @hypermails hyper-v was my issue and using poolmon I still was unable to find the culprit. Disabled hyper-v and everything works fine again (cpu went from 60-90% to 30's). Downside is I cannot run docker at this time but at least my laptop is usable again for other daily activities.
    • Nail
      Nail about 3 years
      @hypermails Disabling Hyper-V solved my issue too, many thanks. This could be an answer.
  • Lukas
    Lukas almost 9 years
    wow, thanks a lot for such a fast answer to the question that i thought i will never find one :) it seems that network drivers were causing the problem and after updating memory usage seems OK. Thanks again! :)
  • Jamie Hanrahan
    Jamie Hanrahan almost 9 years
    @Lukas thank you for providing closure by reporting the solution!
  • magicandre1981
    magicandre1981 almost 9 years
    @Lukas which driver was it, which driver version have you used and which version fixed it? This may help other users, too.
  • Sun
    Sun almost 9 years
    This reminds me of a Mark Russinovich blog post.
  • Travis Bemrose
    Travis Bemrose over 8 years
    I think the WDK download link you provide is for Win 8. The version for Win 10 is here: msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx
  • magicandre1981
    magicandre1981 over 8 years
    the Win8 tools also work for Win10. But thanks for the hint.
  • Ramhound
    Ramhound over 8 years
    Would have been better to confirm they did. Once they confirmed it then submit an answer. Even if you did that this answer does not explain how to solve the problem.
  • Loenix
    Loenix over 8 years
    findstr command does not return anything that could help me pasteboard.co/2HmQZYbN.png
  • magicandre1981
    magicandre1981 over 8 years
    @Loenix Wfpn is from netio.sys (WFP NBL info container). Run the xperf command and analyze the usage in WPA.exe
  • Buju
    Buju over 8 years
    thanks a lot for you answer. it saved me lots of time. I had the same problem. After reading your answer I just uninstalled Killer app and then only installed the network drivers. Now my windows 10 is working perfectly.
  • nikoskip
    nikoskip over 8 years
    You saved me, thanks!. I uninstalled the whole Killer suite, and only installed the drivers. Now at startup, my ram usage is 25% (2GB) vs 50%~60% before.
  • magicandre1981
    magicandre1981 almost 8 years
    no, the cache is shown as standby/Cached in Taskmgr. The Win10 Taskmgr compression shows as Working Set usage in SYSTEM process. I already explained this here: superuser.com/a/952142/174557
  • Travis Bemrose
    Travis Bemrose almost 8 years
    @magicandre1981 What are you saying 'no' to? I don't see a disagreement.
  • KoKo
    KoKo over 7 years
    I found mine was "xinputhid.sys", but it's from microsoft? what can I do? I'm running windows 10 and getting the "system out of memory" prompt, I upgraded from a windows 7, never got this in win7.
  • magicandre1981
    magicandre1981 over 7 years
    @KoKo capture a xperf trace of the memory usage grow and share it
  • KoKo
    KoKo over 7 years
    @magicandre1981 Getting an error when I run your xperf command: pastebin.com/E6sYnbJm
  • magicandre1981
    magicandre1981 over 7 years
    @KoKo this must be on line with no line break
  • KoKo
    KoKo over 7 years
    @magicandre1981 ok I replaced the "&&" with ";" and the command worked. Now I opened up the trace file with WPA.exe and loaded symbols, I'm lost on what to do next? I don't see something called AIFO anywhere. This is what I'm looking at: i.imgur.com/WNsxgAP.png
  • magicandre1981
    magicandre1981 over 7 years
    @KoKo this is the wrong table. it must be "Pool Graphs"
  • KoKo
    KoKo over 7 years
    @magicandre1981 I found "Pool Graphs" now, how did you get the "Type: AIFO"? when I add the "Pool Graphs" to analysis view, I don't get that.
  • magicandre1981
    magicandre1981 over 7 years
    @KoKo do a right click and select "Type" and bring "Type" to the first position (drag & drop)
  • KoKo
    KoKo over 7 years
    @magicandre1981 sorry but I have to ask again, what am I right clicking on to be able toe "select Type"? I right clicked on a few things but didn't see this option.
  • magicandre1981
    magicandre1981 over 7 years
    @KoKo, click on "open view editor"
  • srchulo
    srchulo over 7 years
    Than you so much!!!
  • rainabba
    rainabba almost 7 years
    I have no Tools folder at C:\Program Files (x86)\Windows Kits\10 and have installed both the Win 8 and Win 10 versions. I'm on 1703. You guys sure that's what provides poolmon?
  • rainabba
    rainabba almost 7 years
    Finally found a copy at C:\Program Files (x86)\Windows Kits\8.1\Tools\x64
  • Suraj Jain
    Suraj Jain almost 7 years
    You Sound Like Professional, Thanks A Lot, I found it was Samsung Rapid Mode That was taking that, turned it off.
  • magicandre1981
    magicandre1981 almost 7 years
    @SurajJain nice to hear this. which tag was so high in poolmon?
  • Suraj Jain
    Suraj Jain almost 7 years
    NDbf Was high, then I found it was sumsungrapiddskfltr or something, I turned it off, it works good now.
  • magicandre1981
    magicandre1981 almost 7 years
    @SurajJain have you captured a ETL file via xperf.exe? if yes, can you please share it, so that I can add this to the answer?
  • Suraj Jain
    Suraj Jain almost 7 years
    No, I was not able to capture, In your case when you expanded Thre there were so many names, But when I expanded mine, It was just null, So i was not able to move forward .
  • Suraj Jain
    Suraj Jain almost 7 years
    Also, can you correct your sentence "you have use xperf" to "you have to use xperf" .
  • Suraj Jain
    Suraj Jain almost 7 years
    Also I have few doubts ,Would You if possible chat little with me?
  • magicandre1981
    magicandre1981 almost 7 years
    @SurajJain how did you see that the tag belongs to Samsung? Have you only used poolmon + findstr?
  • Suraj Jain
    Suraj Jain almost 7 years
    Also, checked the driver property to get its name, the driver was samsung rapid mode filter, I searched on the internet, and many were having same xact problem, and some even checked with poolmon, then I turned of the rapid mode. The problem then gets solved, Rapid mode reserves some memory to store ssd data to speed up.
  • SparedWhisle
    SparedWhisle over 6 years
    @magicandre1981 this answer is very helpful to me, thank you very much. I followed the steps, I found that the problem was caused by fltMgr.sys(If I did the steps correctly), but I'm not sure what I should do next. could you kindly take a look at my Question at superuser.com/q/1263991/160304 and give me some hints if you are free?
  • user2924019
    user2924019 over 6 years
    This helped us to find out a particular version of "Intel Rapid Storage Technology" is causing memory leaks within one of our clients. After removing, the constant 80% memory usage was solved!
  • user2924019
    user2924019 over 6 years
    I've found that Windows 10 still aims to keep memory usage below 60%, and any more than this it starts to page. We have alerts on 1000+ devices for when memory usage goes above 80% and the PC's really do start to slow down. Windows 10 may manage it better, but it's also better to keep a large portion of memory free, ready for other processes to use when needed, otherwise, it would have to write back to the disk before freeing up memory which is slow.
  • magicandre1981
    magicandre1981 over 6 years
    @user2924019 nice to hear that it helped you to fix your issue
  • Abhineet
    Abhineet almost 6 years
    And there you go, "Century"!!!
  • Serdar Yalçın
    Serdar Yalçın over 4 years
    Thank you very much, after removing a RAID system of two disks, I found out that about 4 GB more memory used by the drivers and with your information I found out the reason of the problem as "Intel Rapid Storage Technology". Honestly I was thinking the Nvidia drivers were the problem. Disabled it from the BIOS and now I have reclaimed back 2.8 GB.
  • csrowell
    csrowell over 3 years
    Yep, same issue for me, years later with an old version installed. Amusingly the company claims to have addressed the issues:"Some users have reported memory leaks with some versions of our performance suite. The current version of the Killer Control Center has no known instance of memory leaks..." support.killernetworking.com/knowledge-base/…
  • mega.venik
    mega.venik over 2 years
    Hi! Sorry for necroposting, but what should I do if I get "n/a" stack? imgur.com/a/05PtonK Even after clicking "Trace > Load symbols". Both FMic and Irp tags leak for unknown reason:(
  • magicandre1981
    magicandre1981 over 2 years
    @mega.venik they were allocated outside the trace so no stack was captured. Expand the part where you see the stack to look for 3rd party drivers
  • mega.venik
    mega.venik over 2 years
    @magicandre1981 but the Root stack is only 0,045 Mb in size - doesn't look like a problem spot. Or how do I find issue there?
  • magicandre1981
    magicandre1981 over 2 years
    @mega.venik to get larger sizes you would need to trace it longer (you only captured 5 seconds), but this is a good start point.
  • magicandre1981
    magicandre1981 over 2 years
    @mega.venik have you tried to capture a longer trace (3-4 minutes)? What do you see in Stack?
  • mega.venik
    mega.venik over 2 years
    @magicandre1981 sorry for my silly questions, but how do I take longer snapshots? The command above stops working in a second. I've tried to find xperf man, but there's nothing about time. Increasing -MaxFile param also doesn't help
  • magicandre1981
    magicandre1981 over 2 years
    @mega.venik the command waits for pressing a key to stop. replace the -1 after timeout to 300 to capture 5 minutes
  • Venryx
    Venryx over 2 years
    So... this finally let me identify that the cause of the MASSIVE memory leaking plaguing my computer. In my case (as for Samuel), it was caused by the Razer Cortex program. It was gobbling a ridiculous 15-19GB of physical memory on my 32gb PC, after having been on for about a month (I put it in sleep mode at night). Uninstalling it reduced the "Nonpaged Pool" in RamMap from 19.8gb to 5.3gb, and it'll likely go lower still after a restart (hence the 15-19gb range).
  • Venryx
    Venryx over 2 years
    By the way, for people who don't want to install the whole Windows WDK just to install poolmon, or who prefer a GUI-based program rather than console-based, you can use PoolMonX instead. Worked great for me, with a small download size and better user-experience. (I got the same high-usage from FMic and Irp as Samuel did, hence my guessing it was caused by the same Razer Cortex program -- which apparently was correct given the huge memory-usage reduction that its subsequent uninstall achieved.)