How to tweak virtual memory?

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
biiqdan530
Member
Posts: 30
Joined: Wed Apr 28, 2004 8:38 pm

How to tweak virtual memory?

Post by biiqdan530 »

Ok now right below is the way to tweak it. I have no clue what they mean by that. I dont know how to set it up can someone help. My maximum:is 36563 and my minimum is on 0 my harddisk is 28973MB free i have 128 Mbs of ram total. Can someone help me on how to set up virtual memory?



Virtual Memory Settings

If you let Windows 9x manage Virtual memory settings, the System often resizes the swap file ( the simulated memory on your hard disk ), and can use up to the entire free space on your Hard disk for caching. There is no single optimal setting for the swap file size, because it's dependant on the number of programs running at one time, and on the amount of RAM in your system. It should be at least the amount of your RAM, i.e if you have 32 meg RAM in your system, the swap file should be at least 32 meg to reduce the chance of "out of memory" errors.

By choosing a custom Virtual memory setting, you can optimize your system by having a constant swap file size. It not only eliminates the processing time Windows takes to resize the file, but also reduces the fragmentation of your Hard Disk. Note: It might be a good idea to defragment your Hard Disk before editing the swap file settings, so the swap file itself won't be fragmented. Here are the necessary steps:

1. Navigate to Control Panel > System > Performance > Virtual Memory and choose "Let me specify my own virtual memory settings".
2. Specify the same amount of space for minimum and maximum swap file size.
3. Make the swap file twice the amount of RAM you have on your system ( or at least the same size as your RAM ).
4. Reboot your computer.
User avatar
Mark
Posts: 13238
Joined: Wed Apr 11, 2001 12:00 am
Location: .

Post by Mark »

what operating system, most people will tell you to let windows manage.
7950x~64GBGskill6000~asusx670e~rx6800~2TBNvme-OS drive~4TB-Nvme-scratch~500GB-SSD-thrash~10TB storage~Windows 10
biiqdan530
Member
Posts: 30
Joined: Wed Apr 28, 2004 8:38 pm

Post by biiqdan530 »

Mark wrote:what operating system, most people will tell you to let windows manage.

98 SE is my operating system
User avatar
Philip
SG VIP
Posts: 11710
Joined: Sat May 08, 1999 5:00 am
Location: Jacksonville, Florida

Post by Philip »

PLease post software-related questions to the software forum...


I'd set the max and min to 512 MB or something like that... If you ever get "out of memory" errors, you can bump it up. With Windows xp/2k I might leave the OS manage it, but with Windows 9x I'd set it to a fixed size.
Disclaimer: Please use caution when opening messages, my grasp on reality may have shaken loose during transmission (going on rusty memory circuits), even though my tin foil hat is regularly audited for potential supply chain tampering. I also eat whatever crayons are put in front of me.
๑۩۞۩๑
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

Here's how I tweaked my own VM in 98SE with 128 MB of ram.
Step by step
First close all programs that are running.

1. Right click the "My Computer" Icon on your desktop, and select 'properties'
In the grey box that appears go to the tab named "Performance" (far right tab)
On that tab select to "disable virtual memory" (disregard any windows message that tries to scare you) just hit ok.

2. Shutdown and reboot to 'safe mode'. Defrag your C: drive while in safe mode.

3. When defragging of C: drive is complete, and while still in safe mode, go back and 'enable' your virtual memory.

4. Also set the "minimum" value to 140, and don't touch the maximum value.

5. Reboot normally to windows.

With 128 mb of ram, and virtual memory set at 140 (min) you should be good.
The reason I don't set the max, is so if and when windows needs more virtual memory, it will increase it (but only if it needs it)

The value set as minimum (140mb) will not get fragged, and you should get a bit of a performance boost since windows won't be resizing the virtual memory (swap file) unless, on the rare occasion it needs to.

Make sure you do each step above, each one is important. The VM must be turned off before rebooting to safe mode. And the drive must be defragged before setting (creating) a new swap file (VM) size to ensure a that the VM or swap file is defragged, and stays defragged.
User avatar
Thcranky1
Regular Member
Posts: 141
Joined: Mon Jul 14, 2003 4:28 pm
Location: Wichita, KS.

Post by Thcranky1 »

Hey man,

I have a book that is all about windows 98 and what they say you want to do as a rule of thumb is, of course taking into consideration that there is plenty of space of your hard drive...which by the way yours has...but to continue as a rule of thumb when setting your v-mem in Win98 or any other OS after 98 by the way, is to set your minimum to double what your amount of System RAM totals. You said 128 so the minimum should be set to 256 and for the maximum set it to either 4 times your System RAM up to 6 times your System RAM. With a 128 stick as your SYSRAM them at 4 times that the total would be 512 and at 6 times that would be 768.

Hope this helps...

PEACE!!

--Thcranky1
User avatar
Richard_UK
Regular Member
Posts: 128
Joined: Sat Aug 23, 2003 7:46 am
Location: Birmingham (UK)

Post by Richard_UK »

now this is interesting, ive always wondered what this ment. maybe you can help me out at the same time

i have 768 Mb

OS..Win Xp Pro

what would be my ideal settings???

at the moment i have it on "Custom settings" Page file

minimum allowed 2Mb

Rocomended 1150

currently allocated 1152

is this ok?
DELL Dimension 8300 / P4 3.4Ghz @4.0 Ghz / CoolRiver Deluxe Cpu/Vga/Mb Liquid Cooling,/Win Xp Pro / 3072Gb DDR Ram Corsair XMS3200 Pro PC-3200 / Ati Radeon 9800 Pro Graphics / 20" Ultra Sharp TFT Monitor / Creative Audigy 2 ZS Platinum Soundcard / 200Gb Seagate HD + 250Gb Maxtor Ultra Hd x2 (storage).NEC Dvd-Rw/Cd-Rw...Blueyonder 3Mbit,internet connection/ Webstar DPX100 Modem / Altec Lansing subwoofer.
biiqdan530
Member
Posts: 30
Joined: Wed Apr 28, 2004 8:38 pm

Post by biiqdan530 »

Norm wrote:Here's how I tweaked my own VM in 98SE with 128 MB of ram.
Step by step
First close all programs that are running.

1. Right click the "My Computer" Icon on your desktop, and select 'properties'
In the grey box that appears go to the tab named "Performance" (far right tab)
On that tab select to "disable virtual memory" (disregard any windows message that tries to scare you) just hit ok.

2. Shutdown and reboot to 'safe mode'. Defrag your C: drive while in safe mode.

3. When defragging of C: drive is complete, and while still in safe mode, go back and 'enable' your virtual memory.

4. Also set the "minimum" value to 140, and don't touch the maximum value.

5. Reboot normally to windows.

With 128 mb of ram, and virtual memory set at 140 (min) you should be good.
The reason I don't set the max, is so if and when windows needs more virtual memory, it will increase it (but only if it needs it)

The value set as minimum (140mb) will not get fragged, and you should get a bit of a performance boost since windows won't be resizing the virtual memory (swap file) unless, on the rare occasion it needs to.

Make sure you do each step above, each one is important. The VM must be turned off before rebooting to safe mode. And the drive must be defragged before setting (creating) a new swap file (VM) size to ensure a that the VM or swap file is defragged, and stays defragged.




I set it to 256 minimum and 768 maximum will it work better this way?
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

biiqdan530 wrote:I set it to 256 minimum and 768 maximum will it work better this way?
No.

Performance will be a tad slower (not enough to notice), and you could run out of ram and get "out of memory" errors.

128(physical ram)+768(maximum virtual ram)=896 (total ram)

If you need more ram than 896 you will get errors.
Some applications need tons of ram, and if you set the max at 768 instead of leaving it as "the amount of freespace" left on the HD, it is possible windows will choke.
If you have a scanner, test it by scanning a page at 9600 dpi
(that's just one example of an app that needs tons of ram)
User avatar
Paft
SG Elite
Posts: 5785
Joined: Tue Feb 20, 2001 12:00 am
Location: Richmond VA

Post by Paft »

I always used these 2 rules of thumb:

< 512 mb: 1.5 times your physical RAM
512 - 1024 mb: equal to physical RAM
> 1024 mb: 1/2 your physical RAM

This has always worked well for me - Remember to set the minimum and maximum to the same size.
cyberskye
Senior Member
Posts: 4717
Joined: Wed Jan 10, 2001 12:00 am
Location: DC

Post by cyberskye »

Completely depends on how you use you system - is a dump truck better or worse than a sportscar? Depends on what you're trying to do.

Best case would be to monitor your system and see how much ram you use as you do your daily thing. If you're swapping (not paging) a lot, buy more ram.

For *ANYTHING* DOS related (for me, this includes W9x) I would take Norm at his word. The guy knows his stuff.

Kinda weird to take something other than his (very specific) advice and then ask if it's good. What would you expect as an answer? :rolleyes:
anything is possible - nothing is free

:wth:
Blisster wrote:It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)
:wth:
biiqdan530
Member
Posts: 30
Joined: Wed Apr 28, 2004 8:38 pm

Post by biiqdan530 »

Paft wrote:I always used these 2 rules of thumb:

< 512 mb: 1.5 times your physical RAM
512 - 1024 mb: equal to physical RAM
> 1024 mb: 1/2 your physical RAM

This has always worked well for me - Remember to set the minimum and maximum to the same size.
Well i have 128 memory so what do i set the maximum and minimum to? right now im taking Norms advice and as of now i have it 140 minimum and no max. See what i want also is to speed up my internet games. See i play checkers on yahoo and sometimes i play 1 minute games meaning u have to beat them in one minute or if u draw then u have to keep up with his time or go ahead. And when i play someone quick i end up loosing i need to speed this comp up to be quick. Ive downloaded everything from this website and now i need more advice
biiqdan530
Member
Posts: 30
Joined: Wed Apr 28, 2004 8:38 pm

Post by biiqdan530 »

Norm wrote:No.

Performance will be a tad slower (not enough to notice), and you could run out of ram and get "out of memory" errors.

128(physical ram)+768(maximum virtual ram)=896 (total ram)

If you need more ram than 896 you will get errors.
Some applications need tons of ram, and if you set the max at 768 instead of leaving it as "the amount of freespace" left on the HD, it is possible windows will choke.
If you have a scanner, test it by scanning a page at 9600 dpi
(that's just one example of an app that needs tons of ram)
See what i want also is to speed up my internet games. See i play checkers on yahoo and sometimes i play 1 minute games meaning u have to beat them in one minute or if u draw then u have to keep up with his time or go ahead. And when i play someone quick i end up loosing i need to speed this comp up to be quick. Ive downloaded everything from this website and now i need more advice. I need some other way to speed up my cpu besides the virtual memory any ideas please help thanks.
cyberskye
Senior Member
Posts: 4717
Joined: Wed Jan 10, 2001 12:00 am
Location: DC

Post by cyberskye »

Sounds like you want a fasater connection. If your pc can't keep up with your bandwidth it's probably time ot buy a new machine.
anything is possible - nothing is free

:wth:
Blisster wrote:It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)
:wth:
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

You can edit your system.ini file to use the virtual ram only when physical ram gets low.

Under the [386enh} section, add this line and reboot.

ConservativeSwapFileUsage=1

Plus, to speed up your PC you can remove all (or most) of your startup apps.
Using start>run>msconfig
Reboot after making changes.

As long as you turn off all other programs running in the background you can increase performance quite a bit. Best done from each programs prefferences, but msconfig will do the job.
CableDude
SG VIP
Posts: 26801
Joined: Sat Jun 02, 2001 12:00 pm

Post by CableDude »

Norm wrote:You can edit your system.ini file to use the virtual ram only when physical ram gets low.

Under the [386enh} section, add this line and reboot.

ConservativeSwapFileUsage=1
I use this. :)
User avatar
Cypher
Posts: 2717
Joined: Tue Jul 02, 2002 12:00 pm
Location: Returning video tapes

Post by Cypher »

CableDude wrote:I use this. :)
:nod:
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

You guys running XP should have a look here.
http://www.tweakxp.com/tweak1686.aspx

and here

http://www.subzerotech.com/index/module ... 13/page/10

The system.ini tweak is for win98
User avatar
Cypher
Posts: 2717
Joined: Tue Jul 02, 2002 12:00 pm
Location: Returning video tapes

Post by Cypher »

Norm wrote:You guys running XP should have a look here.
http://www.tweakxp.com/tweak1686.aspx

and here

http://www.subzerotech.com/index/module ... 13/page/10

The system.ini tweak is for win98
I'm doing that as well and it does work. :D
I thought the same thing about the .ini one in XP until I read this
Look who submitted it. :thumb:
I figured I could try it out and remove it if it doesn't work.
CableDude
SG VIP
Posts: 26801
Joined: Sat Jun 02, 2001 12:00 pm

Post by CableDude »

Hiya Norm,

I'm still using 98. :D :D
User avatar
Cypher
Posts: 2717
Joined: Tue Jul 02, 2002 12:00 pm
Location: Returning video tapes

Post by Cypher »

Yeah I took that conservative tweak dealy off.
I'm on XP Pro CE
Post Reply