Announcement

Collapse
No announcement yet.

How To Clear Your Memory Without Restarting

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Clear Your Memory Without Restarting

    If you run a windows computer you’ll know like many others than after a while your system

    will in doubt start running slow. Most people will restart their computer to remove and idle

    processes. But if there’s a simpler way, why restart every time windows decides it doesn’t

    like you today?

    1. Right click on an empty spot on your desktop and select New - Shortcut.

    2. Type %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks in the box.

    3. Click Next.

    4. Give your shortcut a nice name like “Clear Memory”.

    5. Click Finish and you’re done.

    Now whenever your computer starts running slow click this shortcut to clear out your

    memory and get your computer running at a normal pace again.
    sigpic

  • #2
    Re: How To Clear Your Memory Without Restarting

    Interesting tip... what does the ProcessIdleTasks do? I am going to try it at work.. I have so muc hJunk running at any given time I can use a bit more clean memory..

    ...Nevermind..here it is in GeekSpeak:

    Technical Details

    From MSDN
    Idle Task Scheduling: The ProcessIdleTask API

    The file placement optimization, which is done no more often than once every three days, is an example of a task that is carried out when the system is deemed to be idle. System Restore and other features of Windows XP also attempt to defer some work until the system is deemed to be idle. There are also some done-once-after-setup work items that also operate under the Idle Task Scheduling mechanisms.

    All of these "idle tasks" are controllable by a system API in advapi32.dll, ProcessIdleTasks. The API s sole purpose is to allow benchmarks a simple way to force any pending idle tasks to be executed immediately, without having to wait a lengthy period of time.

    The API ProcessIdleTasks can be called in one of two ways, from the command line or synchronously from a program. To call ProcessIdleTasks from the command line, use this syntax:

    Rundll32.exe advapi32.dll,ProcessIdleTasks

    When called from the command line, the ProcessIdleTasks work is done in the background asynchronously. It can take 10 to 15 minutes for idle tasks to complete. Task Manager will report processes running, and the disk will likely be active during this time.

    The ProcessIdleTasks API takes no arguments and returns a standard Win32 error code. The definition is:

    DWORD
    ProcessIdleTasks()

    The API itself is synchronous, so it won t return until the idle tasks have completed.
    |TG|ARMA Pathfinder
    ..now where did I put my keys?

    Comment


    • #3
      Re: How To Clear Your Memory Without Restarting

      Interesting find. I'll keep it on hand. :)

      +rep to you sir! :D
      |TG-18th| Acreo Aeneas
      TG World of Tanks Clan Executive Officer
      Former 9th & 13th

      Pronounciation: Eh-Cree-Oh Ah-Nay-Ess
      Still can't say it? Call me Acorn then. -.-





      SSDs I Own: Kingston HyperX 3K (240 GB), Samsung 840 Pro (256 GB), Samsung 840 EVO (250 GB), Samsung 840 x 2 (120 GB), Plextor M5S (120 GB), OCZ Vertex (30 GB)

      TG Primer and Rules

      Comment


      • #4
        Re: How To Clear Your Memory Without Restarting

        Um... from that description that peardog posted, it sounds like this doesn't remove the idles tasks but actually processes them. It makes sense since the API call is called ProcessIdleTasks. This will actually slow down your system for the 10-15 minutes that it takes to process the tasks. It may feel faster afterwards because many of these tasks are optimizing tasks. While it may help speed things up, it doesn't actually sound like it clears the system's memory. It might not even fix memory leaks caused by applications.

        - It's who you game with.

        Comment


        • #5
          Re: How To Clear Your Memory Without Restarting

          A reboot is quicker



          - -


          "..good sportsmanship shouldn't be sacrificed in the name of teamwork. " --WhiskeySix

          Comment


          • #6
            Re: How To Clear Your Memory Without Restarting

            rebooting also provides an opportunity to get another beer. :)

            “Up, sluggard, and waste not life; in the grave will be sleeping enough!” Benjamin Franklin

            Comment


            • #7
              Re: How To Clear Your Memory Without Restarting

              Originally posted by =Sarc= View Post
              Um... from that description that peardog posted, it sounds like this doesn't remove the idles tasks but actually processes them. It makes sense since the API call is called ProcessIdleTasks. This will actually slow down your system for the 10-15 minutes that it takes to process the tasks. It may feel faster afterwards because many of these tasks are optimizing tasks. While it may help speed things up, it doesn't actually sound like it clears the system's memory. It might not even fix memory leaks caused by applications.
              Good. Now I have an excuse to take a nap. ;)
              |TG-18th| Acreo Aeneas
              TG World of Tanks Clan Executive Officer
              Former 9th & 13th

              Pronounciation: Eh-Cree-Oh Ah-Nay-Ess
              Still can't say it? Call me Acorn then. -.-





              SSDs I Own: Kingston HyperX 3K (240 GB), Samsung 840 Pro (256 GB), Samsung 840 EVO (250 GB), Samsung 840 x 2 (120 GB), Plextor M5S (120 GB), OCZ Vertex (30 GB)

              TG Primer and Rules

              Comment

              Connect

              Collapse

              TeamSpeak 3 Server

              Collapse

              Advertisement

              Collapse

              Twitter Feed

              Collapse

              Working...
              X