Disable Prefetch & Superfetch

Page 1 of 7 123 ... LastLast

  1. Posts : 174
    Windows 10 Enterprise x64 1709
       #1

    Disable Prefetch & Superfetch


    Howdy,
    I've written a code in a batch file to disable Superfetch service and some other things.
    But the Superfetch part does not work?
    Code:
    SC Config Superfetch Start= Disabled
    SC Stop Superfetch
    Output >> The specified service does not exist as an installed service.
    Please advise
      My Computer


  2. Posts : 7,254
    Windows 10 Pro 64-bit
       #2

    Have you tried running it as administrator?
      My Computers


  3. Posts : 174
    Windows 10 Enterprise x64 1709
    Thread Starter
       #3

    Of course
      My Computer


  4. Posts : 11,247
    Windows / Linux : Arch Linux
       #4

    Hi there.

    I'm not sure why you would ever want to disable pre-fetch in an OS.

    Pre-fetch can considerably improve performance even with SSD's. What the pre-fetch does is use a complex algorithm built on your usage of the OS -- so even when stuff isn't loaded into storage (RAM) it will have an idea of what commands / applications you are likely to use and will when the OS isn't busy load those into RAM ready for you when you run the application.

    When you first install the OS it takes a while to build up the database -- that's often why a system "performs better" after a few boots and hours / days of use.

    SuperFetch is another thing entirely -- you could disable that if it relies on using a USB stick / other alternate storage to "boost RAM" and I'm not even sure if it exists in W10 any more.

    Cheers
    jimbo
      My Computer


  5. Posts : 174
    Windows 10 Enterprise x64 1709
    Thread Starter
       #5

    I'm not a newbie, of course I have reason to disable that!
    I have SanDisk Extreme Pro SSD and it's recommended to disable those 2 features in systems with SSD.
    Somewhere pointed that Windows automatically turn it off if you're using SSD, but mine didn't.
    So, I asked why my code returns an error, didn't ask about the function of those features!
    Thanks though!
      My Computer


  6. Posts : 5,451
    Windows 11 Home
       #6

    You used the wrong name, you should use the service name, not display name. Like this:

    sc config SysMain start= disabled

    Additionally you can use (just to be sure):

    reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 0 /f
    reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnableSuperfetch" /t REG_DWORD /d 0 /f
      My Computer


  7. Posts : 1,255
    Windows 10 Pro
       #7

    Most services have 2 names, a "Service Name" which is the official name of the service and a more descriptive "Display Name". The Service Name of the service that controls prefetch and superfetch is "SysMain" while it's display name is "Superfetch". Service manager shows the Display Name and you can see the Service Name in the services properties. The sc command expects the Service Name.

    Having 2 names for a service sometimes causes confusion.
      My Computer


  8. Posts : 11,247
    Windows / Linux : Arch Linux
       #8

    omidsolo said:
    I'm not a newbie, of course I have reason to disable that!
    I have SanDisk Extreme Pro SSD and it's recommended to disable those 2 features in systems with SSD.
    Somewhere pointed that Windows automatically turn it off if you're using SSD, but mine didn't.
    So, I asked why my code returns an error, didn't ask about the function of those features!
    Thanks though!
    Hi there
    Pre-fetch loads into RAM so I don't see why an SSD would have ANY problem with it -- note again I'm talking about PRE-FETCH not SUPER-FETCH which as I pointed out before is another issue entirely.

    So as PRE-FETCH is essentially an HDD / or an SSD READ operation what's the problem with it. !!!

    BTW some of the technical stuff you see on manufacturers sites isn't always accurate when it comes to describing the inner workings of an OS.


    Cheers
    jimbo
      My Computer


  9. Posts : 174
    Windows 10 Enterprise x64 1709
    Thread Starter
       #9

    Thanks all, useful info indeed :)
      My Computer


  10. Posts : 9,780
    Mac OS Catalina
       #10

    Superfetch and Prefetch need to stay enabled. Disabling them, does not improve performance, same as you are asking how to disable System Restore in your other thread.

    Leave those items alone. You will actually cause more problems.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:55.
Find Us




Windows 10 Forums