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.

Unable to change Virtual Memory settings

Discussion in 'Legacy Windows' started by magi359, 2005/08/28.

  1. 2005/08/28
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0
    Running Win 98 SE on an IBM ThinkPad A22e (Celeron 800) with 128 MB RAM.

    I just installed a 4+ GB HDD, and partitioned it into 6 chunks: C is ~1.5 GB, D, E, and F are 1 GB, and G is leftovers, about 200 MB. My plan was to make G the swapfile.

    When I go into the Virtual Memory settings dialog box, the only option that shows any free space is C, while in reality G is empty, D has about 500 MB free, and E & F each have about 750 MB free.

    Can anyone point me to a fix?
     
  2. 2005/08/28
    TJ-IT

    TJ-IT Inactive

    Joined:
    2004/05/17
    Messages:
    121
    Likes Received:
    0
    Swap file must be on C: and/or another physical disk, not another partition on same disk as C:
     

  3. to hide this advert.

  4. 2005/08/28
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    Open your System.Ini file located in the windows folder with Notepad. Add these lines under the section labeled [386Enh].

    [386Enh]
    PagingDrive=G:
    MinPagingFileSize=131072


    Then reboot, you will have a 128 mb swapfile on G:, delete the old "Win386.Swp" file in the windows folder. If you want a different size, just multiply your choice by 1024 to use in the System.Ini file.
     
  5. 2005/08/29
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0

    Not so... I had it in a similar setup on the old (now crashed) HDD.
     
  6. 2005/08/29
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0
    Thanks, markp62. I'll give that a try this afternoon when I get home.
     
  7. 2005/08/30
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0
    First time I tried, I appended your text to the existing 386Enh. Saved, closed, rebooted. After reboot, checked Virtual Memory. Unchanged!? Checked System.ini - my change was NOT there.

    Second time, I inserted the text above the existing text. Saved, closed, maked file as Read Only for good measure, rebooted. After reboot, Virtual Memory still was set for "Allow Windows..." BUT the list for the other drives now showed a value for G (the intended swapfile drive). Previous checks of the drive list showed zero available on all drive but C.

    The Virtual Memory settings would not retain my choice of G, though, even though it showed in the list as having available space.
     
  8. 2005/08/30
    WhitPhil

    WhitPhil Inactive

    Joined:
    2002/01/07
    Messages:
    599
    Likes Received:
    4
    Don't APPEND the text.

    Look for an existing [386enh] section and insert the lines in that area.

    If there are existing lines referencing
    PagingDrive or MinPagingFileSize
    replace them.
     
  9. 2005/08/30
    Zander

    Zander Geek Member Alumni

    Joined:
    2002/01/07
    Messages:
    4,084
    Likes Received:
    5
    I wouldn't leave the system.ini file marked as read only. If you ever install a program or a device of some type that needs to put an entry in it, it'll fail and more than likely you'll have a messed up installation. Just something for you to think about.
     
  10. 2005/08/30
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    When you insert the lines in under the [386Enh], this bypasses the Virtual Memory settings. It will say, 'allow window to ...', and your reported seeing G: for the intended swap file drive. This is normal.
    Open Windows Explorer, and check the G: drive for a hidden file named Win386.Swp.
     
  11. 2005/08/30
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0
    Gotcha. So ignore what it looks like the settings box is saying... the location of the swapfile is the proof.

    Thanks!
     
  12. 2005/08/30
    TJ-IT

    TJ-IT Inactive

    Joined:
    2004/05/17
    Messages:
    121
    Likes Received:
    0
    I stand corrected! :eek: Maybe "must be" should be "recommended" ?
    I am trying to understand why anyone(generically, not aimed at magi359, nor meant as a slam) would want to move swap file from C to another partition on same drive? I know there is no performance gain from this, in fact it slows perf somewhat (being that C is the closest to outer part of disk, faster read/write). Moving to another drive, other than OS is on, does increase performance (although should be on first partition on that drive as well (reason above)
    I understand if C is too full, moving swap file to a partition with more room. But why set up small, multiple partitions and move swap from C on a new HDD??
    Just trying to "learn" a little more :eek:
    Appreciate any explanations, thanks, Joe.
     
  13. 2005/08/31
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    When you have enough memory, it is a good idea to move the swapfile, and set it's minimum size. At default values, even though it isn't being used, windows will increase the size of the swapfile in case it is needed, like calling ahead for reservations at a cafe. The size will shrink and grow according to the whims of windows. With a MIN size of 128 mb there is little of this going on, freeing up your drive's platters for your digital use and increasing system performance.
    I can look up my swap file on my 98Se partition, and see it hasn't been touched since I set it
    Another reason is drive fragmentation. Defrag does not touch the swapfile, therefore files are scattered around it because the swapfile is fragmented.
    When you create the swapfile on another empty partition with a MIN size, it is done in one swoop, creating little fragmentation in the process.
    If you create it on C:, it may be physically created beyond your system and program files, or stuck in the middle of them.
     
  14. 2005/09/12
    magi359

    magi359 Inactive Thread Starter

    Joined:
    2005/08/28
    Messages:
    7
    Likes Received:
    0
    A final note (from me, anyway):

    I ended up adding both a MIN and a MAX setting. The PC ran oddly with just the Min setting, especially at a high number. I set Min at 1 and Max at 200 MB, and it ran OK.

    After I got the HDD replaced, I set the swpafile in its own partition and it's running like a champ again.

    Curious why the temp HDD gave me problems while adjusting the virtual memory, while the old (dead) and new HDD made the change with no arguments.
     
  15. 2005/09/12
    WhitPhil

    WhitPhil Inactive

    Joined:
    2002/01/07
    Messages:
    599
    Likes Received:
    4
    Glad to hear that you are running again.
    BUT
    You do not want to place a MAX on the swapfile. If windows ever needs more VM than you currently have assigned, you will get program failures and potentially data corruption.
    Leave the MAX off, which will allow it to grow, if required.
     

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.