1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

A More Virtuous Setting for Virtual Memory?

Discussion in 'Windows XP' started by dkline, 2006/10/07.

  1. 2006/10/07
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    I have a Dell Dimension 4500 with 1 GB Ram and an 80 GB hard drive partitioned into C (45.1 GB), D (9.75 GB), E (9.75 GB) and F (9.75 GB)

    In the Advanced tab of System Properties, under the "Virtual Memory" button, I have the following configuration:

    C drive -- System managed.
    D drive -- Custom -- 1533-1533
    E drive -- no paging file
    F drive -- no paging file

    Is this the best setup for my virtual memory or should I configure it differently?
     
  2. 2006/10/07
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    What is the current size on C:?

    In general, there is nothing to gain by splitting the pagefile over different partitions on the same hard disk but I don't think there would be any downside since Windows will use the fastest one (I think).

    The installations I have done of WinXPpro on computers with 1 GB RAM have by default been set up with 1536MB-3072MB on C: and to my knowledge, the pagefile has never been increased above the initial size but should the need arise, it can be.

    Christer
     

  3. to hide this advert.

  4. 2006/10/07
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    Thanks Christer. The paging file on C is system managed, so it doesn't give a size.

    I think I read somewhere that there should not be a virtual memory paging file on the drive (partition) with the system files. But maybe that's not true.

    Do you think I should do 1536-3072 on C and have no paging files on D, E and F?
     
  5. 2006/10/08
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    My 2 cents worth on this .....

    Set a custom pagefile on the Windows partition purely for Memory Dumps, say 5 - 500 MB and leave your other pagefile alone - the size is more than adequate for 1 Gb RAM (1.5x RAM).

    This is the method I use on my system with 2 Gb RAM - the main pagefile is on another physical disk and set at 3000Mb. Usage rarely exceeds 300Mb.

    Christer is right in that Windows will use the faster drive/partition.

    How can I optimize the Windows 2000/XP/2003 virtual memory (Pagefile)?

    RAM, Virtual Memory, Pagefile and all that stuff
     
  6. 2006/10/08
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    The key words here are "on another physical disk ". In dklines case, I understand that there is only a single hard disk with multiple partitions and in that case, the partition at the front [C:] is always the fastest.

    The important thing is to NOT have a "Windows managed" pagefile. It will grow and shrink which means that it will sooner or later be in several fragments.

    Should you go my way or Petes way? Your choice ... :cool: ... if you try both you won't notice any difference.

    Christer
     
  7. 2006/10/08
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    So Christer, are you suggesting that I do a custom 1536-3072 pagefile on the C partition, and leave D, E and F with no paging file?
     
  8. 2006/10/08
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Well, that's what I would have done. In my opinion, setting a maximum is an unecessary restriction. The disk space space is not "set aside" and will only be claimed when needed, if ever. If the system should need to go beyond the set value, it will not be able to and the only other option is a blue screen.

    A friend of mine runs a 3.0GHz P4 with 1GB of PC3200. The pagefile was set by the WinXP installer to 1536-3072MB. He runs a few video and picture editing programs and his pagefile was resized on a regular basis. More RAM would have been better but upping the pagefile to 2048-3072MB made the system "good enough to live with ".

    Christer
     
  9. 2006/10/08
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    I'm sorry to be so dense, Christer. But I can't tell if you're saying I should set my C partition page file to 1536-3027 (and disable pagefiles on the other partition) or if you're saying I shouldn't because I shouldn't set a maximum.
     
  10. 2006/10/09
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Your question:

    My answer:

    So, the answer is YES and the rest of that post was unnecessary information (the reason why, which I didn't manage to explain well enough).

    Christer
     
  11. 2006/10/10
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    Thanks again, Christer. I have reset the page file as suggested to 1536-3072 on the C partition, with no paging files on the D, E and F partitions.

    Just out of curiosity, why do some people say that the pagefile maximum should be set to the same value as the minimum (i.e., in my case, that would be a page file of 1536-1536)?

    And why do some folks also say that you should not have a page file on the same drive or partition as the system files (in my case, partition C)?

    Anyway, thanks again for your help.
     
  12. 2006/10/10
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    A Windows managed pagefile will shrink and grow and shrink again, as required by the system. This means that it will get fragmented. The "expansions" will be put wherever there is free space. A fixed pagefile (minimum=maximum) will not behave like that and if you set it to a fixed size on a fresh installation, it will be put immediately after the system files and it will stay there in one contiguous chunk. If you do it when the partition is ½ full, it will end up after everything else that is currently there (which is not the optimum but better than a Windows managed pagefile).

    Now, with a fixed pagefile, if the system for one reason or the other runs out of pagefile, it will blue screen. That is why I recommend to set the maximum size as 2 x the minimum size. The minimum size should be set to "the most your system is expected to need and some on top of that ". If the pagefile should be increased by the system, the initial part will remain the same and when it shrinks back, it will still be in a single contiguous chunk. If that starts to happen on a regular basis, increase the minimum size (as a temporary solution - see further down).

    There is no gain in putting the pagefile on a different partition if they both are on the same physical hard disk. It would only reduce performance since it gets located away from the fastest outer tracks.

    If the pagefile is put on a different physical hard disk on a different controller, the system and the pagefile is handled on different channels which means that reading and writing to both can occur simultaneously. Theoretically, this is an advantage if a single channel gets saturated but no matter what, whenever the pagefile is used, the system takes a performance hit.

    Download and run the utility XP Pagefile Monitor and if you find that you need more Virtual Memory, the solution is to get more RAM!

    Christer
     
  13. 2006/10/10
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    There is one other point regarding the pagefile which is specific to the use of some programs - Photoshop is a prime example. Photoshop uses a 'scratch disk' to store information about the image which is being edited; this is a variable amount of disk space which grows and shrinks according to the needs of Photoshop at any specific time and which is freed up when Photoshop is closed. The location of the 'scratch disk' can be set in Photoshop preferences and the use of a partition other than that on which the pagefile is located is preferred. If the computer has only a single drive the pagefile and 'scratch disk' must co-exist and a warning to this effect is flagged up in Photoshop when it is first opened after installation.

    The 'scratch disk' can become fragmented in the same way as a variable pagefile and those fragments can interact with fragments of a Windows managed pagefile to the detriment of performance. When running Photoshop it is recommended that the 'scratch disk' is placed on another partition or drive (I have a dedicated partition for the 'scratch disk') to optimise performance, but where this is not possible and the 'scratch disk' must co-exist on the same partition as the pagefile a fixed size pagefile is recommended.
     
  14. 2006/10/10
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    Wow! Thanks a lot, guys. I learned a lot from your last two posts (and I moved my Photoshop scratch file from the C to another partition).
     
  15. 2006/10/10
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Thanks Pete for the explanation on the scratch file. My friend that I mentioned uses Photoshop and I installed the program for him but didn't remember the particulars. Now, I don't have to read up on it and can enjoy my cup of coffee in a reclined position ... :cool: ... !

    Christer
     
  16. 2006/11/03
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    Hey, I just noticed that I have a 1.5 GB file on my F partition named pagefile.sys -- created October 6 when I was experimenting here with virtual memory, no doubt.

    Can I delete that file?

    Right now my pagefile is on the C partition, with D,E and F having no paging file.
     
  17. 2006/11/03
    charlesvar

    charlesvar Inactive Alumni

    Joined:
    2002/02/18
    Messages:
    7,024
    Likes Received:
    0
    Hi Dave,

    Yes you can delete the one on F.

    Are all the partitions on one drive? If they aren't, putting the page file on a partition on another drive is better than having it on C - but only of the page file sits on another drive.

    Regards - Charles
     
  18. 2006/11/03
    Christer

    Christer Geek Member Staff

    Joined:
    2002/12/17
    Messages:
    6,585
    Likes Received:
    74
    Yes, if Windows will let you but it should.

    Christer
     
  19. 2006/11/04
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    Okay, I deleted it, thanks.

    But not without Windows trying to scare the **** out of me. "If you delete this Windows may not work and your first born will die die die! "

    But hey, I trust you guys more than I do Gates, so what the hell.
     
  20. 2006/11/04
    charlesvar

    charlesvar Inactive Alumni

    Joined:
    2002/02/18
    Messages:
    7,024
    Likes Received:
    0
    Hi Dave,

    Forgot that it could have been done thru the CP.

    Right click My Computer > properties > Advanced tab > Performance section > Virtual memory > Change bar > and click on the partition and tick "no page file" and XP would have deleted it.

    What a mouthfull, huh :)

    Regards - Charles
     
  21. 2006/11/04
    dkline

    dkline Inactive Thread Starter

    Joined:
    2002/01/10
    Messages:
    406
    Likes Received:
    0
    No I already had set it to "no paging file" but there it was anyway, a 1.5 Gig pagefile.sys. Anyway, whatever the hell it was, it was too big for the recycle bin so it's gone gone gone now.

    Hope you guys are right that I don't need it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.