Announcement

Collapse
No announcement yet.

Windows XP and virtual memory size

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

    Windows XP and virtual memory size

    Hey everyone.
    Today I've just started upgrading the RAM on the computers at work. Basically we're bumping it up to 2 GB. Now that's easy enough of a job for me, but what I'm more concerned with is the size of the pagefile/virtual memory.

    What do you guys (and gals?) think I should set it to? We are running XP Pro SP3.

    I was thinking something along the lines of 256 to 384 MB with 512 MB for the upper limit. However, my boss said we should have it at 1.5 times the amount of RAM installed, which comes out to 3 GB. According to him, that's what the Microsoft recommendation was. I think he's right about that because if I let XP do a "system managed size" for the pagefile, it comes out to ~3GB as well.

    But isn't 3 GB too much? At least as far as I know, virtual memory is much slower than the physical memory because it's limited to the read/write speed of the hard drive, isn't that correct? If so, wouldn't it make sense to keep the pagefile fairly small if there was enough physical memory? It always seems to me that the bigger the pagefile is, the more XP forces programs to use it.

    Last year or so, I've used this same logic to set the pagefile on my computers at home and after dramatically shrinking their pagefiles, they seem to have been running much faster ever since. One thing I definitely noticed with the system managed pagefile is that if a large program is minimized and not used for a few hours, it would always take a lot of time for it to come up (and the hard drive would read/write a lot, too). After reducing the pagefile, this effect seems almost non-existent.
    My theory on this is that when a program isn't used for a certain amount of time, Windows XP puts parts of it in the virtual memory to free up physical memory.

    I've already tried this experiment on all 4 of my computers, and all 4 yielded the same results. Currently, two of them have 512 MB of DDR RAM, and 256 MB pagefile. Originally they had the same amount of RAM, but ~760 MB for the pagefile. The other two computers have 384 MB SDRAM, and 160 MB pagefiles (before they both had ~500 MB pagefiles).
    The computers at work will have 2 GB of RAM, like mentioned earlier. Most use about 200 - 400 MB of memory when sitting idle after a fresh boot.
    ...
    Now I've already had the discussion about this with my boss. He's actually a very reasonable person and said that we should set the pagefile to whatever I think will make the computers work faster. So all in all, I just want to check whether or not I'm on the right track with this. Any thoughts, ideas, or suggestions?
    Thanks everyone.

    #2
    Re: Windows XP and virtual memory size

    http://www.tweakguides.com/TGTC.html

    - Choose the Regular Edition - it's free.


    http://www.theeldergeek.com/paging_file.htm

    - Follow links at bottom for sizing and manually setting.
    veritas odium parit

    Comment


      #3
      Re: Windows XP and virtual memory size

      Originally posted by momaka View Post

      But isn't 3 GB too much? At least as far as I know, virtual memory is much slower than the physical memory because it's limited to the read/write speed of the hard drive, isn't that correct?.
      Yes, that's correct. XP probably won't actually need to use near that much! XP at the most will usually use around 256 MB.

      => While Windows Vista and Windows 7 would easily use about 1 GB of pagefile!

      And you better upgrade the HDDs while at it.
      ASRock B550 PG Velocita

      Ryzen 9 "Vermeer" 5900X

      32 GB G.Skill RipJaws V F4-3200C16D-32GVR

      Arc A770 16 GB

      eVGA Supernova G3 750W

      Western Digital Black SN850 1TB NVMe SSD

      Alienware AW3423DWF OLED




      "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

      "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

      "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

      "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

      Comment


        #4
        Re: Windows XP and virtual memory size

        Originally posted by RJARRRPCGP View Post
        Yes, that's correct. XP probably won't actually need to use near that much! XP at the most will usually use around 256 MB.

        => While Windows Vista and Windows 7 would easily use about 1 GB of pagefile!

        And you better upgrade the HDDs while at it.
        Unless you use firefox in which case add 512Mb-1Gb because it's a pig on VM too.
        I've caught FF at over 750Mb on XP.
        [1.5Gb if you add VM and System RAM.]
        .
        Mann-Made Global Warming.
        - We should be more concerned about the Intellectual Climate.

        -
        Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

        - Dr Seuss
        -
        You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
        -

        Comment


          #5
          Re: Windows XP and virtual memory size

          If I'm not mistaken on a 32-bit Windoze OS the VM is limited to 4Gb just as system RAM is due to the same restriction on Memory Map size.
          [Number of Memory Addresses available.]
          .
          Mann-Made Global Warming.
          - We should be more concerned about the Intellectual Climate.

          -
          Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

          - Dr Seuss
          -
          You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
          -

          Comment


            #6
            Re: Windows XP and virtual memory size

            Your are correct on minimized apps in Window being paged to disk

            Windows XP does support running without a pagefile, you might want to test that (some third party applications will not work, but testing will reveal if you use any)

            I myself always have a pagefile that is atleast system RAM +8MB because otherwise it is not possible to do a memory dump in the event of a bluescreen, a full memory dump is very good for me when troubleshooting, but if you have no such need then sure, go ahead and try it...

            When reading online you will find so many different advices it is like asking "how long is a piece of string"
            --Impossible to answer

            Btw, you can buy a Ramdrive and put the pagefile on that, that way you can get access to more fast memory than 3.xx gigabytes in x86 Windows XP

            There exists software too, that will allow you to make a ramdisk, so if you have a system with 4GB of RAM, but can't utilize it because you run a 32bit OS, then you can make that into a ramdisk and put the pagefile on it
            "The one who says it cannot be done should never interrupt the one who is doing it."

            Comment


              #7
              Re: Windows XP and virtual memory size

              Originally posted by PCBONEZ View Post
              Unless you use firefox in which case add 512Mb-1Gb because it's a pig on VM too.
              I've caught FF at over 750Mb on XP.
              [1.5Gb if you add VM and System RAM.]
              .
              I never caught such bug. It sounds like the RAM leak bug that some Firefox users report.

              The most likely suspect, when memory usage is high, is anti-virus software.

              Especially McAfee. McAfee 6x (noticed this in 2002) has a bug where it uses a lot of RAM then crashes when scanning an archive file. The bug has the following symptoms:

              The HDD starts cranking and Windows complains of the virtual memory being low, then Windows gives error message, "MCSHIELD.EXE has generated errors and will be closed by Windows."
              Last edited by RJARRRPCGP; 08-18-2010, 03:16 PM.
              ASRock B550 PG Velocita

              Ryzen 9 "Vermeer" 5900X

              32 GB G.Skill RipJaws V F4-3200C16D-32GVR

              Arc A770 16 GB

              eVGA Supernova G3 750W

              Western Digital Black SN850 1TB NVMe SSD

              Alienware AW3423DWF OLED




              "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

              "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

              "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

              "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

              Comment


                #8
                Re: Windows XP and virtual memory size

                The memory leak has there on every version of FF I've used on both W2k and XP and it didn't matter which system.
                You probably haven't seen it because you don't have VM turned on [selected] in your Task Manager.
                Mann-Made Global Warming.
                - We should be more concerned about the Intellectual Climate.

                -
                Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

                - Dr Seuss
                -
                You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
                -

                Comment


                  #9
                  Re: Windows XP and virtual memory size

                  Any thoughts, ideas, or suggestions?
                  I have messed with this setting for years.

                  In a regular office setting, I would recommend that you leave the automatic setting. Let Windows manage the size.

                  Comment


                    #10
                    Re: Windows XP and virtual memory size

                    Toasty, thanks for the articles. The one from tweakguides.com was pretty useful actually even for things other than the virtual memory. Definitely will keep.

                    I have to say, though, Per Hansson is pretty much right about there not being a single answer to what the pagefile should be. I looked up a few other online articles, and none of them exactly agree on the pagefile size. Even the two that Toasty posted disagree on that matter: one says have a minimum of 1GB pagefile, the other says if you have more than 512 MB of physical memory, you should set the pagefile to minimum (2 MB) - interesting .

                    With that in mind, I just decided to set the pagefile initial size to 512 MB and the max to 1 GB. 2.5GB of total system RAM should be enough for the regular office use. On the computer that I use at work (3 GB of RAM), I've set my pagefile to 256 MB. Didn't really notice any difference between mine and the other computers I upgraded. It seems that McAffee and Windows Update suck up so many resources at start up that pretty much every computer we have is useless for the first 2 minutes after log-in.

                    Anyways, I doubt anyone at our office would hit the 2GB limit. Even I had a hard time going over 700 MB - that's with a bunch of various IE8 windows open, a few PDF files, and a few Word and Excel documents (by the way, we use Office 2007 and IE8 - no FireFox to leak memory). Leaving my computer with everything open for 1 hour and then coming back and resuming work didn't show any slow downs.
                    ...
                    Well, thanks for the replies everyone.

                    Comment


                      #11
                      Re: Windows XP and virtual memory size

                      Originally posted by JuniperSprouts View Post
                      In a regular office setting, I would recommend that you leave the automatic setting. Let Windows manage the size.
                      There is one disadvantage to this.

                      Assume a small system partition with 500mb free.
                      For example, the swap file is allowed to float between 1024 and 2048mb.

                      The user loads 22 separate copies of America Online and the swap file tries to increase to maximum. It hits the wall with a disk full: BSOD.

                      Setting a fixed swap file establishes the upper limit of the file, even if it is not used. A disk full condition can occur, but does not restrict swap file growth.

                      No BSOD.

                      Comment


                        #12
                        Re: Windows XP and virtual memory size

                        I've always set the min & max to the same value.
                        [Old trick to keep windows from wasting resources to re-size it.]

                        I tend to have A LOT going on at the same time so I tend to set it high.

                        Something like...

                        Physical RAM -- Virtual Memory.
                        256MB -- 512MB-768MB
                        512MB -- 1.0GB-1.5GB
                        1GB -- 2GB
                        2Gb -- 3GB
                        3 or 4 GB -- 4GB

                        I've never had issues running out of VM with those configurations at all.
                        Not even back in the P-1 and P-2 days.
                        .
                        Mann-Made Global Warming.
                        - We should be more concerned about the Intellectual Climate.

                        -
                        Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

                        - Dr Seuss
                        -
                        You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
                        -

                        Comment


                          #13
                          Re: Windows XP and virtual memory size

                          Yea, setting a fixed size is good for all the above reasons^^
                          And also for the fact that then the Pagefile wont become fragmented as much....
                          "The one who says it cannot be done should never interrupt the one who is doing it."

                          Comment

                          Working...
                          X