Standby memory reclaim service (game stuttering fix)

Discussion in 'Operating Systems' started by uKER, May 16, 2019.

  1. uKER

    uKER Member Guru

    Messages:
    158
    Likes Received:
    155
    GPU:
    Gigabyte RTX 2070
    Hi everyone.
    Here I am with another app (I'm the guy who made NVSlimmer, if anyone wonders).
    After I tried several of the available options to release standby memory and none of them worked for me, I decided to make one myself.

    In case anyone doesn't know what this is about, see this topic.

    I've been using it for a couple of weeks and so far so good.
    I went for the minimalistic approach, and did away with configuring check intervals and free memory thresholds.
    Here there's no options, no configuration, nothing.
    Just install and away it goes.

    The app runs as a Windows service. Every 3 seconds it checks for the amount of free memory in the system, and the amount of standby memory, and whenever the amount of free memory drops below the amount of standby memory, it attempts to reclaim all of the standby memory.

    If you want to check that it (or whatever other option you were using) is actually working, you have to run "resmon", go to the Memory tab, and check the dark blue section of the bar.
    That dark blue section getting too big is not good.
    To actually see it in action, first stop the service by running "services.msc" and looking for "Standby memory reclaim service".
    Then then run some memory hog (a VirtualBox VM with 4 GB configured RAM has served me well), and upon exiting that program, you should have a sizable dark blue bar.
    Go back to the Services control panel, start the service, and the dark blue should immediately go away.

    I guess installation is pretty self-explanatory.
    Let me know how it goes for you.

    Cheers.

    DOWNLOAD:
    http://bit.ly/StandbyReclaim10
     
    Last edited: May 17, 2019
    Magicblow, AsiJu, Hemisfear and 7 others like this.
  2. mbk1969

    mbk1969 Ancient Guru

    Messages:
    8,168
    Likes Received:
    4,950
    GPU:
    GeForce GTX 1070
    Why 3 seconds? Have you witnessed standby list swallowing whole free memory in 3 seconds?
     
  3. uKER

    uKER Member Guru

    Messages:
    158
    Likes Received:
    155
    GPU:
    Gigabyte RTX 2070
    Well, in fact I started with 1 minute, but since I never saw it taking up even 1% processor usage, it was a matter of "why not?".
    I do concede that it's probably overkill, so if anyone finds it useful to do so, I may lengthen the interval a bit.
    Just let me know.
     
  4. mbk1969

    mbk1969 Ancient Guru

    Messages:
    8,168
    Likes Received:
    4,950
    GPU:
    GeForce GTX 1070
    How many rigs do you use for testing?
    I mean on your rig it is 1%, but on some weak rig it can be more percents. And in case this weak rig is overwhelmed with running apps (like game creating 90+% CPU load) this added percents could start a problem.
     
    Strange Times likes this.

  5. uKER

    uKER Member Guru

    Messages:
    158
    Likes Received:
    155
    GPU:
    Gigabyte RTX 2070
    Yeah, I've only tested it on my PC, and as I said it didn't even register on the CPU usage.
    Now have you actually seen it cause significant CPU usage in any real scenario?
     
    Last edited: May 16, 2019
  6. mbk1969

    mbk1969 Ancient Guru

    Messages:
    8,168
    Likes Received:
    4,950
    GPU:
    GeForce GTX 1070
    Not with your app. I have seen high CPU utilization created by WMI on Win7. Probably WMI subsystem was optimized on Win8+. And btw, there were some people who disabled WMI services completely back then.

    I criticize those 3 seconds only from the general point of view. And many years of programming whisper into ears: do not assume the good conditions.
     
    Caesar, 386SX and Strange Times like this.
  7. uKER

    uKER Member Guru

    Messages:
    158
    Likes Received:
    155
    GPU:
    Gigabyte RTX 2070
    I guess we'll just see where popular demand leads us.
     
  8. Mufflore

    Mufflore Ancient Guru

    Messages:
    11,413
    Likes Received:
    611
    GPU:
    Redacted by NDA
    A few q's if you can.
    Why did you make an app to do this?
    ie what exactly is standby memory and why do you want to release it?

    What contra-indications can the use of your app can give?
    ie are there any possible performance or other issues?

    Thanks
     
  9. uKER

    uKER Member Guru

    Messages:
    158
    Likes Received:
    155
    GPU:
    Gigabyte RTX 2070
    To put it in simple terms, Windows 10 has a known memory management issue where memory that's released by programs is marked as standby memory, and while it's known to be free, Windows will not assign it to programs that request memory, thus causing stuttering in games.
    This app periodically releases said memory, and no, there should be no ill effects.
     
  10. Mufflore

    Mufflore Ancient Guru

    Messages:
    11,413
    Likes Received:
    611
    GPU:
    Redacted by NDA
    Ah ok, thanks. I am on Windows 7 and havent seen this issue with 16GB ram.
    A bit more info in the first post or title would be beneficial.
     

  11. mbk1969

    mbk1969 Ancient Guru

    Messages:
    8,168
    Likes Received:
    4,950
    GPU:
    GeForce GTX 1070
    uKER likes this.
  12. Mufflore

    Mufflore Ancient Guru

    Messages:
    11,413
    Likes Received:
    611
    GPU:
    Redacted by NDA
    I wouldnt have opened the other thread.
    This one has no identification info.

    I like his nvslimmer util and use it each time I install a new driver.
    So I almost downloaded and installed this but hung back for a moment to check ...
     
  13. xodus84

    xodus84 New Member

    Messages:
    2
    Likes Received:
    0
    GPU:
    MSI 2080ti
    I've attempted to install this using the bat file as admin and keep getting this error message:
    Error registering service.
    Press any key to continue...

    Windows 10 PRO Build 1903.

    EDIT:
    Got this to install by the following:
    Elevated cmd prompt, changed directory
    C:\WINDOWS\system32>chdir C:\Windows\Microsoft.NET\Framework\v4.0.30319\

    Install:
    C:\Windows\Microsoft.NET\Framework\v4.0.30319>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "C:\Users\USERNAME\Desktop\StandbyMemReclaim 1.0\StandbyMemReclaim.exe"
     
    Last edited: May 18, 2019
  14. Vicalvi

    Vicalvi Member

    Messages:
    18
    Likes Received:
    1
    GPU:
    eVGA GTX 680 SC Signature
    Here it worked perfectly, coincidentally or not, my stutterings stopped. Thank you Uker for another useful community application.
     
    uKER likes this.
  15. Darktronik

    Darktronik New Member

    Messages:
    2
    Likes Received:
    1
    GPU:
    GTX970
    hello Uker,
    thanks for the app.

    Unfortunately, I am getting this error while trying to install: "error registering service"

    I didnt understand the steps.
     

  16. BetA

    BetA Ancient Guru

    Messages:
    4,181
    Likes Received:
    164
    GPU:
    MSI GTX670 PEOC@1350Mhz
    SOrry for the lame questiion :)

    Is there a way to do this without having to run a service or background process?
    I dont know, like an BAT file on the desktop that you klick when you need it?

    would this be possible?

    just wondering^^

    cheers...
     
  17. mbk1969

    mbk1969 Ancient Guru

    Messages:
    8,168
    Likes Received:
    4,950
    GPU:
    GeForce GTX 1070
    There is an app https://docs.microsoft.com/en-us/sysinternals/downloads/rammap and there you find menu item for trimming the standby lists.
    And of course such app can be easily implemented. Ask uKER. If he will refuse I can do that too.
     
  18. Koniakki

    Koniakki Ancient Guru

    Messages:
    2,843
    Likes Received:
    443
    GPU:
    ZOTAC GTX 1080Ti FE
    May I ask how this compared vs the "Intelligent standby list cleaner (ISLC)" from the DDU creator(Wagnardsoft)?

    Just curious since I'm currently using that and this also looks interesting.
     
    Last edited: May 19, 2019
    WhiteLightning likes this.
  19. Chastity

    Chastity Ancient Guru

    Messages:
    2,017
    Likes Received:
    504
    GPU:
    Nitro 390/GTX1070M
    They perform the same function.
     
  20. xodus84

    xodus84 New Member

    Messages:
    2
    Likes Received:
    0
    GPU:
    MSI 2080ti
    Start menu, type in "cmd"
    The Command Prompt app should display, run it as administrator.

    Next type this without quotes:
    "chdir C:\Windows\Microsoft.NET\Framework\v4.0.30319\"
    press enter

    then type this WITH quotes:
    "C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "C:\Users\USERNAME\Desktop\StandbyMemReclaim 1.0\StandbyMemReclaim.exe"
    press enter

    Note: "C:\Users\USERNAME\Desktop\StandbyMemReclaim 1.0\StandbyMemReclaim.exe" is the full directory to the StandbyMemReclaim.exe file.
     

Share This Page