16GB Ram - Force Windows 7 to use as much RAM as possible?












20















I was wondering if there is any way to configure Windows to consume MORE ram.
I have a desktop PC with 16 GB of ram and only 2 is used on a normal workload.
The maximum which i witnessed till now is 6 GB. Is there any way to tell Windows
to tune its inner working for such an environment?










share|improve this question


















  • 4





    Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

    – Shinrai
    Jul 26 '11 at 16:36






  • 3





    Don't forget that free memory will be used as file-cache. Therefore it is not useless...

    – Robert
    Jul 26 '11 at 16:48






  • 1





    Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

    – surfasb
    Jul 26 '11 at 23:54






  • 1





    Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

    – surfasb
    Jul 26 '11 at 23:58






  • 3





    Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

    – Dan Dascalescu
    Dec 30 '12 at 3:08
















20















I was wondering if there is any way to configure Windows to consume MORE ram.
I have a desktop PC with 16 GB of ram and only 2 is used on a normal workload.
The maximum which i witnessed till now is 6 GB. Is there any way to tell Windows
to tune its inner working for such an environment?










share|improve this question


















  • 4





    Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

    – Shinrai
    Jul 26 '11 at 16:36






  • 3





    Don't forget that free memory will be used as file-cache. Therefore it is not useless...

    – Robert
    Jul 26 '11 at 16:48






  • 1





    Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

    – surfasb
    Jul 26 '11 at 23:54






  • 1





    Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

    – surfasb
    Jul 26 '11 at 23:58






  • 3





    Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

    – Dan Dascalescu
    Dec 30 '12 at 3:08














20












20








20


9






I was wondering if there is any way to configure Windows to consume MORE ram.
I have a desktop PC with 16 GB of ram and only 2 is used on a normal workload.
The maximum which i witnessed till now is 6 GB. Is there any way to tell Windows
to tune its inner working for such an environment?










share|improve this question














I was wondering if there is any way to configure Windows to consume MORE ram.
I have a desktop PC with 16 GB of ram and only 2 is used on a normal workload.
The maximum which i witnessed till now is 6 GB. Is there any way to tell Windows
to tune its inner working for such an environment?







windows-7 windows memory






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 26 '11 at 16:25









oipoistaroipoistar

201124




201124








  • 4





    Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

    – Shinrai
    Jul 26 '11 at 16:36






  • 3





    Don't forget that free memory will be used as file-cache. Therefore it is not useless...

    – Robert
    Jul 26 '11 at 16:48






  • 1





    Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

    – surfasb
    Jul 26 '11 at 23:54






  • 1





    Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

    – surfasb
    Jul 26 '11 at 23:58






  • 3





    Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

    – Dan Dascalescu
    Dec 30 '12 at 3:08














  • 4





    Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

    – Shinrai
    Jul 26 '11 at 16:36






  • 3





    Don't forget that free memory will be used as file-cache. Therefore it is not useless...

    – Robert
    Jul 26 '11 at 16:48






  • 1





    Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

    – surfasb
    Jul 26 '11 at 23:54






  • 1





    Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

    – surfasb
    Jul 26 '11 at 23:58






  • 3





    Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

    – Dan Dascalescu
    Dec 30 '12 at 3:08








4




4





Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

– Shinrai
Jul 26 '11 at 16:36





Uh...why? If you're not running anything that NEEDS that RAM, it won't use it...

– Shinrai
Jul 26 '11 at 16:36




3




3





Don't forget that free memory will be used as file-cache. Therefore it is not useless...

– Robert
Jul 26 '11 at 16:48





Don't forget that free memory will be used as file-cache. Therefore it is not useless...

– Robert
Jul 26 '11 at 16:48




1




1





Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

– surfasb
Jul 26 '11 at 23:54





Don't forget most programs are not written to take advantage of all that RAM. You could throw 60 GB worth of RAM at a program and it won't change its habits. Unless it is specifically to written use up all RAM possible (rare occurrences these days), there isn't anything Windows can do. All the OS can do is twiddle its thumbs and wait on the application. For example, lets say someone is transfering a bunch of notes onto their computer. Well, all they know how to do is type. All their tricks and shortcuts are geared towards typing faster. That's what they were programmed to do.

– surfasb
Jul 26 '11 at 23:54




1




1





Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

– surfasb
Jul 26 '11 at 23:58





Hand them a scanner and they are gonna say "I wasn't programmed to use that." and go back to typing. You can put all the latest and greatest scanners and OCRs infront of them, but they will do what they were programmed to do, even if you threw all your RAM at it . And there is nothing the OS can do about it. The only programs that will really use up all that memory are server programs who load up all their database indexes into memory. Hate to break it to you, but the trend is to write programs that use less memory.

– surfasb
Jul 26 '11 at 23:58




3




3





Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

– Dan Dascalescu
Dec 30 '12 at 3:08





Use Chrome, and start opening tabs. You won't be complaining about unused RAM for long.

– Dan Dascalescu
Dec 30 '12 at 3:08










6 Answers
6






active

oldest

votes


















36














It likely already is using it. In this example:




  • Total RAM: 12GB

  • Used: 4.45GB


You would think there's 7.55GB of unused RAM. Wrong. Windows uses it as caching, either by keeping previously used data that is not required anymore, or by loading up frequently accessed data in advance (mostly OS stuff like libraries and prefetches - it's not loading up your word files or anything). With some luck, some of it will be re-used which will improve performance.




  • Cached: 7.8GB (most marked as available because for other stuff can use it at any moment)

  • Actually free: 16 megabytes.


enter image description here






share|improve this answer



















  • 3





    wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

    – kluka
    Nov 10 '12 at 2:01











  • I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

    – user626528
    Apr 9 '16 at 8:58













  • Likewise... I have 64GB and I've never seen more than 13GB used for caching

    – Basic
    Jun 11 '16 at 18:38











  • Why the pagefile usage is not shown there?

    – skan
    Sep 27 '16 at 19:56



















12














It already is.



What is important to note is the difference between memory that the system must have to run and memory that is nice to have for caching and such. That 2GB of memory, up to 6GB at times, is memory that windows must keep in memory to run your programs or face serious pagefile thrashing issues. However, that doesn't mean that the other 14GB aren't in use! On the contrary, the rest of memory is being used heavily for caching files from disk and other frequently used but slow data stores. However, since this is just cache, windows doesn't consider the memory to be "in use" -- it can just dump it if it needs the space for actual application data.



"But then why do I need a pagefile?"



Having a page file allows windows to manage the cache in the best way possible. See, we humans think we know a thing or two about how to best manage some 128 billion bits of data in the most effective way possible. The truth is we don't know squat compared to the algorithmic efficiency that a computer otherwise attempts to use when we stop meddling and let it do its thing.



Let's say a program needs 200MB of memory, but it's only accessing 100MB of that memory frequently. Windows will allocate 100MB of memory for the application (part of that 2GB you're seeing), and then allocate 100MB of page file for the rest of the space that the application needs. And when you have the spare memory available, it'll just load that 100MB from the page file into memory, so that it's sitting there, always ready. When windows does this, it knows that that 100MB of memory is still available for more important needs-- let's say you're loading a 100MB level file for a game frequently, every couple of minutes or so, but that application only uses that extra memory once a day (and while we're at it, assume the rest of memory is already filled with cache). Should that memory sit there idle, while the game level is loaded off disk each time? Of course not! Windows will dump the application data from the cache and load the game level into the cache, making your game run considerably faster.






share|improve this answer































    5














    With 8GB of memory or more I'd suggest you try disabling kernel paging. This will force your kernel into the memory instead of paging part of it and you might get a slight increase in responsiveness from your system. What I would not suggest is disabling the page file, although you could probably get away with setting it at a minimum of 1GB and a max of 2GB. Windows 7 is actually very good at managing memory and although you probably won't run into any low memory issues by disabling the page file it will likely effect SuperFetch. Even though 6GB might be used for running programs, Windows will use almost the all the rest of the memory to cache files you a likely to open at a given time. This is SuperFetch (Prefetch's older brother). Disabling the page file will almost certainly give you no improvement in performance and you'll probably be shooting yourself in the foot when in comes to load times.






    share|improve this answer


























    • I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

      – Jamie Hanrahan
      Jan 14 at 11:49



















    1














    Disable pagefile. Generally a bad idea, but will do what you want.



    To do that, go to:
    Control PanelSystem and SecuritySystem



    Advanced systems settingsperformance settingsadvanced tabchange (under virtual memory)uncheck automatically, click no paging file



    This is an example of why its a bad idea not to have a page file. If this cant happen to you (you have enough RAM), then there will be no issues.




    Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.




    From https://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine






    share|improve this answer


























    • Done, and thanks for the reminder.

      – soandos
      Jul 26 '11 at 16:38






    • 7





      I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

      – Darth Android
      Jul 26 '11 at 16:41











    • See serverfault.com/questions/23621/…

      – Shinrai
      Jul 26 '11 at 16:44











    • In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

      – soandos
      Jul 26 '11 at 16:45











    • Downvoter comment?

      – soandos
      Jul 26 '11 at 17:02



















    1














    I am not sure about this answer, but it would seem common sense to me. Instead of disabling page file, lower it to the minimum recommendation size of 200mb. I think the default is 3024mb? This should force you machine to use more physical memory and also help HD performance.






    share|improve this answer































      1














      If you have Windows 7 Home Basic edition, your OS cannot use more than 8GB of RAM anyway. I believe no-one mentioned it. Plus, some processors do not support 16 GB RAM too. I believe you need i5 or higher to run more than 8 GB RAM. I'm not sure about AMD processors, although there definitely is a limit to RAM addressed by a processor too. Your RAM load seems fine and not out of the ordinary. You would have to edit a video or compose some 24-bit music in order to use 16 GB of RAM.






      share|improve this answer


























      • True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

        – Andreas Bergström
        Apr 22 '16 at 11:40












      protected by Community Mar 8 '13 at 4:27



      Thank you for your interest in this question.
      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



      Would you like to answer one of these unanswered questions instead?














      6 Answers
      6






      active

      oldest

      votes








      6 Answers
      6






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      36














      It likely already is using it. In this example:




      • Total RAM: 12GB

      • Used: 4.45GB


      You would think there's 7.55GB of unused RAM. Wrong. Windows uses it as caching, either by keeping previously used data that is not required anymore, or by loading up frequently accessed data in advance (mostly OS stuff like libraries and prefetches - it's not loading up your word files or anything). With some luck, some of it will be re-used which will improve performance.




      • Cached: 7.8GB (most marked as available because for other stuff can use it at any moment)

      • Actually free: 16 megabytes.


      enter image description here






      share|improve this answer



















      • 3





        wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

        – kluka
        Nov 10 '12 at 2:01











      • I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

        – user626528
        Apr 9 '16 at 8:58













      • Likewise... I have 64GB and I've never seen more than 13GB used for caching

        – Basic
        Jun 11 '16 at 18:38











      • Why the pagefile usage is not shown there?

        – skan
        Sep 27 '16 at 19:56
















      36














      It likely already is using it. In this example:




      • Total RAM: 12GB

      • Used: 4.45GB


      You would think there's 7.55GB of unused RAM. Wrong. Windows uses it as caching, either by keeping previously used data that is not required anymore, or by loading up frequently accessed data in advance (mostly OS stuff like libraries and prefetches - it's not loading up your word files or anything). With some luck, some of it will be re-used which will improve performance.




      • Cached: 7.8GB (most marked as available because for other stuff can use it at any moment)

      • Actually free: 16 megabytes.


      enter image description here






      share|improve this answer



















      • 3





        wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

        – kluka
        Nov 10 '12 at 2:01











      • I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

        – user626528
        Apr 9 '16 at 8:58













      • Likewise... I have 64GB and I've never seen more than 13GB used for caching

        – Basic
        Jun 11 '16 at 18:38











      • Why the pagefile usage is not shown there?

        – skan
        Sep 27 '16 at 19:56














      36












      36








      36







      It likely already is using it. In this example:




      • Total RAM: 12GB

      • Used: 4.45GB


      You would think there's 7.55GB of unused RAM. Wrong. Windows uses it as caching, either by keeping previously used data that is not required anymore, or by loading up frequently accessed data in advance (mostly OS stuff like libraries and prefetches - it's not loading up your word files or anything). With some luck, some of it will be re-used which will improve performance.




      • Cached: 7.8GB (most marked as available because for other stuff can use it at any moment)

      • Actually free: 16 megabytes.


      enter image description here






      share|improve this answer













      It likely already is using it. In this example:




      • Total RAM: 12GB

      • Used: 4.45GB


      You would think there's 7.55GB of unused RAM. Wrong. Windows uses it as caching, either by keeping previously used data that is not required anymore, or by loading up frequently accessed data in advance (mostly OS stuff like libraries and prefetches - it's not loading up your word files or anything). With some luck, some of it will be re-used which will improve performance.




      • Cached: 7.8GB (most marked as available because for other stuff can use it at any moment)

      • Actually free: 16 megabytes.


      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Dec 17 '11 at 20:07









      mtonemtone

      10.8k53759




      10.8k53759








      • 3





        wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

        – kluka
        Nov 10 '12 at 2:01











      • I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

        – user626528
        Apr 9 '16 at 8:58













      • Likewise... I have 64GB and I've never seen more than 13GB used for caching

        – Basic
        Jun 11 '16 at 18:38











      • Why the pagefile usage is not shown there?

        – skan
        Sep 27 '16 at 19:56














      • 3





        wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

        – kluka
        Nov 10 '12 at 2:01











      • I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

        – user626528
        Apr 9 '16 at 8:58













      • Likewise... I have 64GB and I've never seen more than 13GB used for caching

        – Basic
        Jun 11 '16 at 18:38











      • Why the pagefile usage is not shown there?

        – skan
        Sep 27 '16 at 19:56








      3




      3





      wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

      – kluka
      Nov 10 '12 at 2:01





      wow, I never noticed that. That sure explains very understandable why "more RAM is always better"

      – kluka
      Nov 10 '12 at 2:01













      I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

      – user626528
      Apr 9 '16 at 8:58







      I'm afraid this answer is incorrect. I have 32 Gb RAM and typically only 8 Gb is used for caching files - I've never seen more.

      – user626528
      Apr 9 '16 at 8:58















      Likewise... I have 64GB and I've never seen more than 13GB used for caching

      – Basic
      Jun 11 '16 at 18:38





      Likewise... I have 64GB and I've never seen more than 13GB used for caching

      – Basic
      Jun 11 '16 at 18:38













      Why the pagefile usage is not shown there?

      – skan
      Sep 27 '16 at 19:56





      Why the pagefile usage is not shown there?

      – skan
      Sep 27 '16 at 19:56













      12














      It already is.



      What is important to note is the difference between memory that the system must have to run and memory that is nice to have for caching and such. That 2GB of memory, up to 6GB at times, is memory that windows must keep in memory to run your programs or face serious pagefile thrashing issues. However, that doesn't mean that the other 14GB aren't in use! On the contrary, the rest of memory is being used heavily for caching files from disk and other frequently used but slow data stores. However, since this is just cache, windows doesn't consider the memory to be "in use" -- it can just dump it if it needs the space for actual application data.



      "But then why do I need a pagefile?"



      Having a page file allows windows to manage the cache in the best way possible. See, we humans think we know a thing or two about how to best manage some 128 billion bits of data in the most effective way possible. The truth is we don't know squat compared to the algorithmic efficiency that a computer otherwise attempts to use when we stop meddling and let it do its thing.



      Let's say a program needs 200MB of memory, but it's only accessing 100MB of that memory frequently. Windows will allocate 100MB of memory for the application (part of that 2GB you're seeing), and then allocate 100MB of page file for the rest of the space that the application needs. And when you have the spare memory available, it'll just load that 100MB from the page file into memory, so that it's sitting there, always ready. When windows does this, it knows that that 100MB of memory is still available for more important needs-- let's say you're loading a 100MB level file for a game frequently, every couple of minutes or so, but that application only uses that extra memory once a day (and while we're at it, assume the rest of memory is already filled with cache). Should that memory sit there idle, while the game level is loaded off disk each time? Of course not! Windows will dump the application data from the cache and load the game level into the cache, making your game run considerably faster.






      share|improve this answer




























        12














        It already is.



        What is important to note is the difference between memory that the system must have to run and memory that is nice to have for caching and such. That 2GB of memory, up to 6GB at times, is memory that windows must keep in memory to run your programs or face serious pagefile thrashing issues. However, that doesn't mean that the other 14GB aren't in use! On the contrary, the rest of memory is being used heavily for caching files from disk and other frequently used but slow data stores. However, since this is just cache, windows doesn't consider the memory to be "in use" -- it can just dump it if it needs the space for actual application data.



        "But then why do I need a pagefile?"



        Having a page file allows windows to manage the cache in the best way possible. See, we humans think we know a thing or two about how to best manage some 128 billion bits of data in the most effective way possible. The truth is we don't know squat compared to the algorithmic efficiency that a computer otherwise attempts to use when we stop meddling and let it do its thing.



        Let's say a program needs 200MB of memory, but it's only accessing 100MB of that memory frequently. Windows will allocate 100MB of memory for the application (part of that 2GB you're seeing), and then allocate 100MB of page file for the rest of the space that the application needs. And when you have the spare memory available, it'll just load that 100MB from the page file into memory, so that it's sitting there, always ready. When windows does this, it knows that that 100MB of memory is still available for more important needs-- let's say you're loading a 100MB level file for a game frequently, every couple of minutes or so, but that application only uses that extra memory once a day (and while we're at it, assume the rest of memory is already filled with cache). Should that memory sit there idle, while the game level is loaded off disk each time? Of course not! Windows will dump the application data from the cache and load the game level into the cache, making your game run considerably faster.






        share|improve this answer


























          12












          12








          12







          It already is.



          What is important to note is the difference between memory that the system must have to run and memory that is nice to have for caching and such. That 2GB of memory, up to 6GB at times, is memory that windows must keep in memory to run your programs or face serious pagefile thrashing issues. However, that doesn't mean that the other 14GB aren't in use! On the contrary, the rest of memory is being used heavily for caching files from disk and other frequently used but slow data stores. However, since this is just cache, windows doesn't consider the memory to be "in use" -- it can just dump it if it needs the space for actual application data.



          "But then why do I need a pagefile?"



          Having a page file allows windows to manage the cache in the best way possible. See, we humans think we know a thing or two about how to best manage some 128 billion bits of data in the most effective way possible. The truth is we don't know squat compared to the algorithmic efficiency that a computer otherwise attempts to use when we stop meddling and let it do its thing.



          Let's say a program needs 200MB of memory, but it's only accessing 100MB of that memory frequently. Windows will allocate 100MB of memory for the application (part of that 2GB you're seeing), and then allocate 100MB of page file for the rest of the space that the application needs. And when you have the spare memory available, it'll just load that 100MB from the page file into memory, so that it's sitting there, always ready. When windows does this, it knows that that 100MB of memory is still available for more important needs-- let's say you're loading a 100MB level file for a game frequently, every couple of minutes or so, but that application only uses that extra memory once a day (and while we're at it, assume the rest of memory is already filled with cache). Should that memory sit there idle, while the game level is loaded off disk each time? Of course not! Windows will dump the application data from the cache and load the game level into the cache, making your game run considerably faster.






          share|improve this answer













          It already is.



          What is important to note is the difference between memory that the system must have to run and memory that is nice to have for caching and such. That 2GB of memory, up to 6GB at times, is memory that windows must keep in memory to run your programs or face serious pagefile thrashing issues. However, that doesn't mean that the other 14GB aren't in use! On the contrary, the rest of memory is being used heavily for caching files from disk and other frequently used but slow data stores. However, since this is just cache, windows doesn't consider the memory to be "in use" -- it can just dump it if it needs the space for actual application data.



          "But then why do I need a pagefile?"



          Having a page file allows windows to manage the cache in the best way possible. See, we humans think we know a thing or two about how to best manage some 128 billion bits of data in the most effective way possible. The truth is we don't know squat compared to the algorithmic efficiency that a computer otherwise attempts to use when we stop meddling and let it do its thing.



          Let's say a program needs 200MB of memory, but it's only accessing 100MB of that memory frequently. Windows will allocate 100MB of memory for the application (part of that 2GB you're seeing), and then allocate 100MB of page file for the rest of the space that the application needs. And when you have the spare memory available, it'll just load that 100MB from the page file into memory, so that it's sitting there, always ready. When windows does this, it knows that that 100MB of memory is still available for more important needs-- let's say you're loading a 100MB level file for a game frequently, every couple of minutes or so, but that application only uses that extra memory once a day (and while we're at it, assume the rest of memory is already filled with cache). Should that memory sit there idle, while the game level is loaded off disk each time? Of course not! Windows will dump the application data from the cache and load the game level into the cache, making your game run considerably faster.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 26 '11 at 16:56









          Darth AndroidDarth Android

          34.1k476100




          34.1k476100























              5














              With 8GB of memory or more I'd suggest you try disabling kernel paging. This will force your kernel into the memory instead of paging part of it and you might get a slight increase in responsiveness from your system. What I would not suggest is disabling the page file, although you could probably get away with setting it at a minimum of 1GB and a max of 2GB. Windows 7 is actually very good at managing memory and although you probably won't run into any low memory issues by disabling the page file it will likely effect SuperFetch. Even though 6GB might be used for running programs, Windows will use almost the all the rest of the memory to cache files you a likely to open at a given time. This is SuperFetch (Prefetch's older brother). Disabling the page file will almost certainly give you no improvement in performance and you'll probably be shooting yourself in the foot when in comes to load times.






              share|improve this answer


























              • I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

                – Jamie Hanrahan
                Jan 14 at 11:49
















              5














              With 8GB of memory or more I'd suggest you try disabling kernel paging. This will force your kernel into the memory instead of paging part of it and you might get a slight increase in responsiveness from your system. What I would not suggest is disabling the page file, although you could probably get away with setting it at a minimum of 1GB and a max of 2GB. Windows 7 is actually very good at managing memory and although you probably won't run into any low memory issues by disabling the page file it will likely effect SuperFetch. Even though 6GB might be used for running programs, Windows will use almost the all the rest of the memory to cache files you a likely to open at a given time. This is SuperFetch (Prefetch's older brother). Disabling the page file will almost certainly give you no improvement in performance and you'll probably be shooting yourself in the foot when in comes to load times.






              share|improve this answer


























              • I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

                – Jamie Hanrahan
                Jan 14 at 11:49














              5












              5








              5







              With 8GB of memory or more I'd suggest you try disabling kernel paging. This will force your kernel into the memory instead of paging part of it and you might get a slight increase in responsiveness from your system. What I would not suggest is disabling the page file, although you could probably get away with setting it at a minimum of 1GB and a max of 2GB. Windows 7 is actually very good at managing memory and although you probably won't run into any low memory issues by disabling the page file it will likely effect SuperFetch. Even though 6GB might be used for running programs, Windows will use almost the all the rest of the memory to cache files you a likely to open at a given time. This is SuperFetch (Prefetch's older brother). Disabling the page file will almost certainly give you no improvement in performance and you'll probably be shooting yourself in the foot when in comes to load times.






              share|improve this answer















              With 8GB of memory or more I'd suggest you try disabling kernel paging. This will force your kernel into the memory instead of paging part of it and you might get a slight increase in responsiveness from your system. What I would not suggest is disabling the page file, although you could probably get away with setting it at a minimum of 1GB and a max of 2GB. Windows 7 is actually very good at managing memory and although you probably won't run into any low memory issues by disabling the page file it will likely effect SuperFetch. Even though 6GB might be used for running programs, Windows will use almost the all the rest of the memory to cache files you a likely to open at a given time. This is SuperFetch (Prefetch's older brother). Disabling the page file will almost certainly give you no improvement in performance and you'll probably be shooting yourself in the foot when in comes to load times.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 14 at 11:46









              Jamie Hanrahan

              18.5k34279




              18.5k34279










              answered Dec 29 '12 at 15:27









              eAbysseAbyss

              5112




              5112













              • I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

                – Jamie Hanrahan
                Jan 14 at 11:49



















              • I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

                – Jamie Hanrahan
                Jan 14 at 11:49

















              I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

              – Jamie Hanrahan
              Jan 14 at 11:49





              I'm sorry but setting the "DisablePagingExecutive" registry value is not really very helpful. First, all of the critical code in the exec is already nonpageable. Second, anything used often will not be paged out anyway (because the pager knows better). Your comments about the pagefile, though, are correct.

              – Jamie Hanrahan
              Jan 14 at 11:49











              1














              Disable pagefile. Generally a bad idea, but will do what you want.



              To do that, go to:
              Control PanelSystem and SecuritySystem



              Advanced systems settingsperformance settingsadvanced tabchange (under virtual memory)uncheck automatically, click no paging file



              This is an example of why its a bad idea not to have a page file. If this cant happen to you (you have enough RAM), then there will be no issues.




              Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.




              From https://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine






              share|improve this answer


























              • Done, and thanks for the reminder.

                – soandos
                Jul 26 '11 at 16:38






              • 7





                I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

                – Darth Android
                Jul 26 '11 at 16:41











              • See serverfault.com/questions/23621/…

                – Shinrai
                Jul 26 '11 at 16:44











              • In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

                – soandos
                Jul 26 '11 at 16:45











              • Downvoter comment?

                – soandos
                Jul 26 '11 at 17:02
















              1














              Disable pagefile. Generally a bad idea, but will do what you want.



              To do that, go to:
              Control PanelSystem and SecuritySystem



              Advanced systems settingsperformance settingsadvanced tabchange (under virtual memory)uncheck automatically, click no paging file



              This is an example of why its a bad idea not to have a page file. If this cant happen to you (you have enough RAM), then there will be no issues.




              Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.




              From https://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine






              share|improve this answer


























              • Done, and thanks for the reminder.

                – soandos
                Jul 26 '11 at 16:38






              • 7





                I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

                – Darth Android
                Jul 26 '11 at 16:41











              • See serverfault.com/questions/23621/…

                – Shinrai
                Jul 26 '11 at 16:44











              • In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

                – soandos
                Jul 26 '11 at 16:45











              • Downvoter comment?

                – soandos
                Jul 26 '11 at 17:02














              1












              1








              1







              Disable pagefile. Generally a bad idea, but will do what you want.



              To do that, go to:
              Control PanelSystem and SecuritySystem



              Advanced systems settingsperformance settingsadvanced tabchange (under virtual memory)uncheck automatically, click no paging file



              This is an example of why its a bad idea not to have a page file. If this cant happen to you (you have enough RAM), then there will be no issues.




              Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.




              From https://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine






              share|improve this answer















              Disable pagefile. Generally a bad idea, but will do what you want.



              To do that, go to:
              Control PanelSystem and SecuritySystem



              Advanced systems settingsperformance settingsadvanced tabchange (under virtual memory)uncheck automatically, click no paging file



              This is an example of why its a bad idea not to have a page file. If this cant happen to you (you have enough RAM), then there will be no issues.




              Removing pagefile entirely can cause more disk thrashing. Imagine a simple scenario where some app launches and demands 80% of existing RAM. This would force current executable code out of RAM - possibly even OS code. Now every time those other apps - or the OS itself (!!) need access to that data, the OS must page them in from backing store on disk, leading to much thrashing. Because without pagefile to serve as backing store for transient data, the only things that can be paged are executables and DLLs which had inherent backing stores to start with.




              From https://serverfault.com/questions/23621/any-benefit-or-detriment-from-removing-a-pagefile-on-an-8gb-ram-machine







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:14









              Community

              1




              1










              answered Jul 26 '11 at 16:28









              soandossoandos

              20.2k2892130




              20.2k2892130













              • Done, and thanks for the reminder.

                – soandos
                Jul 26 '11 at 16:38






              • 7





                I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

                – Darth Android
                Jul 26 '11 at 16:41











              • See serverfault.com/questions/23621/…

                – Shinrai
                Jul 26 '11 at 16:44











              • In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

                – soandos
                Jul 26 '11 at 16:45











              • Downvoter comment?

                – soandos
                Jul 26 '11 at 17:02



















              • Done, and thanks for the reminder.

                – soandos
                Jul 26 '11 at 16:38






              • 7





                I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

                – Darth Android
                Jul 26 '11 at 16:41











              • See serverfault.com/questions/23621/…

                – Shinrai
                Jul 26 '11 at 16:44











              • In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

                – soandos
                Jul 26 '11 at 16:45











              • Downvoter comment?

                – soandos
                Jul 26 '11 at 17:02

















              Done, and thanks for the reminder.

              – soandos
              Jul 26 '11 at 16:38





              Done, and thanks for the reminder.

              – soandos
              Jul 26 '11 at 16:38




              7




              7





              I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

              – Darth Android
              Jul 26 '11 at 16:41





              I would generally advise against disabling the page file. The benefits you think you're getting, you're actually not.

              – Darth Android
              Jul 26 '11 at 16:41













              See serverfault.com/questions/23621/…

              – Shinrai
              Jul 26 '11 at 16:44





              See serverfault.com/questions/23621/…

              – Shinrai
              Jul 26 '11 at 16:44













              In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

              – soandos
              Jul 26 '11 at 16:45





              In his case, if he really does never come close, there are potentially significant benefits (no more HD as a bottleneck for many things can make processes run MUCH faster). It just might not be worth the risk (hence my "its generally a bad idea").

              – soandos
              Jul 26 '11 at 16:45













              Downvoter comment?

              – soandos
              Jul 26 '11 at 17:02





              Downvoter comment?

              – soandos
              Jul 26 '11 at 17:02











              1














              I am not sure about this answer, but it would seem common sense to me. Instead of disabling page file, lower it to the minimum recommendation size of 200mb. I think the default is 3024mb? This should force you machine to use more physical memory and also help HD performance.






              share|improve this answer




























                1














                I am not sure about this answer, but it would seem common sense to me. Instead of disabling page file, lower it to the minimum recommendation size of 200mb. I think the default is 3024mb? This should force you machine to use more physical memory and also help HD performance.






                share|improve this answer


























                  1












                  1








                  1







                  I am not sure about this answer, but it would seem common sense to me. Instead of disabling page file, lower it to the minimum recommendation size of 200mb. I think the default is 3024mb? This should force you machine to use more physical memory and also help HD performance.






                  share|improve this answer













                  I am not sure about this answer, but it would seem common sense to me. Instead of disabling page file, lower it to the minimum recommendation size of 200mb. I think the default is 3024mb? This should force you machine to use more physical memory and also help HD performance.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 12 '12 at 14:35









                  The ArchitectThe Architect

                  111




                  111























                      1














                      If you have Windows 7 Home Basic edition, your OS cannot use more than 8GB of RAM anyway. I believe no-one mentioned it. Plus, some processors do not support 16 GB RAM too. I believe you need i5 or higher to run more than 8 GB RAM. I'm not sure about AMD processors, although there definitely is a limit to RAM addressed by a processor too. Your RAM load seems fine and not out of the ordinary. You would have to edit a video or compose some 24-bit music in order to use 16 GB of RAM.






                      share|improve this answer


























                      • True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                        – Andreas Bergström
                        Apr 22 '16 at 11:40


















                      1














                      If you have Windows 7 Home Basic edition, your OS cannot use more than 8GB of RAM anyway. I believe no-one mentioned it. Plus, some processors do not support 16 GB RAM too. I believe you need i5 or higher to run more than 8 GB RAM. I'm not sure about AMD processors, although there definitely is a limit to RAM addressed by a processor too. Your RAM load seems fine and not out of the ordinary. You would have to edit a video or compose some 24-bit music in order to use 16 GB of RAM.






                      share|improve this answer


























                      • True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                        – Andreas Bergström
                        Apr 22 '16 at 11:40
















                      1












                      1








                      1







                      If you have Windows 7 Home Basic edition, your OS cannot use more than 8GB of RAM anyway. I believe no-one mentioned it. Plus, some processors do not support 16 GB RAM too. I believe you need i5 or higher to run more than 8 GB RAM. I'm not sure about AMD processors, although there definitely is a limit to RAM addressed by a processor too. Your RAM load seems fine and not out of the ordinary. You would have to edit a video or compose some 24-bit music in order to use 16 GB of RAM.






                      share|improve this answer















                      If you have Windows 7 Home Basic edition, your OS cannot use more than 8GB of RAM anyway. I believe no-one mentioned it. Plus, some processors do not support 16 GB RAM too. I believe you need i5 or higher to run more than 8 GB RAM. I'm not sure about AMD processors, although there definitely is a limit to RAM addressed by a processor too. Your RAM load seems fine and not out of the ordinary. You would have to edit a video or compose some 24-bit music in order to use 16 GB of RAM.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Nov 4 '12 at 11:04









                      Indrek

                      20.6k117484




                      20.6k117484










                      answered Dec 17 '11 at 18:08









                      SchtruklynSchtruklyn

                      192




                      192













                      • True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                        – Andreas Bergström
                        Apr 22 '16 at 11:40





















                      • True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                        – Andreas Bergström
                        Apr 22 '16 at 11:40



















                      True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                      – Andreas Bergström
                      Apr 22 '16 at 11:40







                      True for Windows 7 Home. For Windows 10 Home edition though, the limit is 128GB on 64-bit systems: msdn.microsoft.com/en-us/library/windows/desktop/…

                      – Andreas Bergström
                      Apr 22 '16 at 11:40







                      protected by Community Mar 8 '13 at 4:27



                      Thank you for your interest in this question.
                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                      Would you like to answer one of these unanswered questions instead?



                      Popular posts from this blog

                      Paul Cézanne

                      UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

                      Angular material date-picker (MatDatepicker) auto completes the date on focus out