Virtual memory
Virtual memory
I upgraded my T60 from 512MB to 1.5GB memory. What should I set my virtual memory to? And why? What exactly does it do and how do low/high settings influence overall performance?
Thanks.
Thanks.
____________________
T60 2007-C4U
T60 2007-C4U
-
DIGITALgimpus
- Senior Member

- Posts: 774
- Joined: Sat Aug 20, 2005 1:01 pm
Let the OS decide for you. There's no evidence that manual tamptering gives any performance boost. 99.9% of the time, people try to minimize it, and that just results in more clutter in your RAM, and ends up causing more problems. Since Windows NT 5.0 (Windows 2k) Windows does a decent job of managing it. It's one of the few things Windows actually does pretty well.
T43 (2687-DUU) - 1.86GHz, 1.5GB RAM, 100GB 5400 (non IBM-firmware Hitachi 5k100) HD, Fingerprint Scanner, 802.11abg/Bluetooth, ATI x300
-
christopher_wolf
- Special Member
- Posts: 5741
- Joined: Sat Oct 08, 2005 1:24 pm
- Location: UC Berkeley, California
- Contact:
Just to note; there is *no* way you can tell Windows to use zero virtual memory. In addition, virtual memory is not the same as a pagefile/swapfile. Virtual memory is a way for windows to abstract various system resources as memory, a page file being the most obvious, but not only, example. Windows will always use some virutal memory allocation even if you turn the pagefile swapping off. In general, unless you have a few very volatile applications that suck up memory and require their resources to be available for real-time processing and rendering to the user, you don't need to eliminate the page file as Windows manages that pretty well. 
IBM ThinkPad T43 Model 2668-72U 14.1" SXGA+ 1GB |IBM 701c
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
Re: Virtual memory
The default by windows is that the initial size of the paging file is 1.5 times the physical RAM on your computer and the max size is default the twice of the initial size. So in your case it would be something like 2304 and 4608 if you follow the windows default. Normally the paging file won't grow beyond the initial size and if it does you should consider installing more ram, but with 1.5gb i guess that won't be a problem. I would just follow the defaults and cannot find a good reason to not.thinktank wrote:I upgraded my T60 from 512MB to 1.5GB memory. What should I set my virtual memory to? And why? What exactly does it do and how do low/high settings influence overall performance?
-
smugiri
- Senior Member

- Posts: 774
- Joined: Tue Nov 23, 2004 4:29 pm
- Location: Mississauga, ON
- Contact:
@christopher_wolf - while I saw your comment on virtual memory not being the same as swap in all cases, I think that they are synonymous for all practical purposes in the case of Windows. And I suspect this post is really all about the pagefile and there is a way to turn that off. For Windows XP SP2 machines you can pick the option of using no virtual memory in the environment settings. Photoshop (among other applications including Oracle DBs) do(es) not work though - I am still stuck at Photoshop 6 as I am too cheap to upgrade from something that works.christopher_wolf wrote:Just to note; there is *no* way you can tell Windows to use zero virtual memory. In addition, virtual memory is not the same as a pagefile/swapfile. Virtual memory is a way for windows to abstract various system resources as memory, a page file being the most obvious, but not only, example. Windows will always use some virutal memory allocation even if you turn the pagefile swapping off. In general, unless you have a few very volatile applications that suck up memory and require their resources to be available for real-time processing and rendering to the user, you don't need to eliminate the page file as Windows manages that pretty well.
Whether having a swap file will have an effect on boot times or not depends partially on whether you have Windows set up to delete the swap file at every shutdown. If so, it will definitely take longer, if no, then there will be little impact.
Steve
-
christopher_wolf
- Special Member
- Posts: 5741
- Joined: Sat Oct 08, 2005 1:24 pm
- Location: UC Berkeley, California
- Contact:
To a minor extent, but Windows is generally more concerned with loading the files that it marked in the pre-fetch and driver folders. It does help, however, to defragment the pagefile during boot.leoblob wrote:Will reducing the size of the page file have any impact on boot times?
Steve, that isn't quite the case. Windows, yes even Windows XP, *will still use* some virtual memory regardless of what you have indicated it will do. This is because virtual memory is an integral part of the Windows memory handler. Both Microsoft and Sysinternals have also made notes along those lines (Microsoft has several KB articles on this, as a simple search should show, and Mark Russinovich has also written about it). It does, indeed, affect system performance depending on what you do. If, for example, you have a session or so of AutoCAD 2007 running and have 2GB of memory, it is far more efficient to keep the bulk of the CAD program in the volatile areas of memory to permit faster operations. This is, of course, opposed to swapping data on and off the HDD for a small operation. This is especially evident on smaller systems, such as the X Series.
IBM ThinkPad T43 Model 2668-72U 14.1" SXGA+ 1GB |IBM 701c
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
-
smugiri
- Senior Member

- Posts: 774
- Joined: Tue Nov 23, 2004 4:29 pm
- Location: Mississauga, ON
- Contact:
I cannot seem to make any headway finding material covering non-swap virtual memory in Windows, any chance you could point me to some of the resources that you mentioned please?christopher_wolf wrote:To a minor extent, but Windows is generally more concerned with loading the files that it marked in the pre-fetch and driver folders. It does help, however, to defragment the pagefile during boot.leoblob wrote:Will reducing the size of the page file have any impact on boot times?
Steve, that isn't quite the case. Windows, yes even Windows XP, *will still use* some virtual memory regardless of what you have indicated it will do. This is because virtual memory is an integral part of the Windows memory handler. Both Microsoft and Sysinternals have also made notes along those lines (Microsoft has several KB articles on this, as a simple search should show, and Mark Russinovich has also written about it). It does, indeed, affect system performance depending on what you do. If, for example, you have a session or so of AutoCAD 2007 running and have 2GB of memory, it is far more efficient to keep the bulk of the CAD program in the volatile areas of memory to permit faster operations. This is, of course, opposed to swapping data on and off the HDD for a small operation. This is especially evident on smaller systems, such as the X Series.
Steve
-
christopher_wolf
- Special Member
- Posts: 5741
- Joined: Sat Oct 08, 2005 1:24 pm
- Location: UC Berkeley, California
- Contact:
Sure; a look-through of the KB database at Microsoft.com will give the following...
http://support.microsoft.com/default.as ... -us;555223
See also;
http://members.shaw.ca/bsanders/Windows ... ileEtc.htm
In addition to;
http://shsc.info/WindowsMemoryManagement
Also, various tasks (printing to a PDF) and interaction with external computer equipment, on Windows, have virtual memory assigned to them. Another good example is when you plug in a removable media device; Windows has to have a way to reference and access the storage area on the device, either RAM or HDD based storage, quickly over UPnP and virtual memory is a key component in allowing it to do this.
HTH
http://support.microsoft.com/default.as ... -us;555223
As such, it is an *integral part* of the Windows Memory manager and quite a few things, excepting the kernel, simply wouldn't run without it. Again, it *does not* cannonically equal the paging file alone; think of the paging file being used as a type of memory container with special handling to make up for slower read/write ops. Essentially, that is all you have to do to get a page file to work and that happens to be one, but not the only, application of virtual memory on most Windows OSes. Looking at a filesystem, say JFS and its derivatives, you can trace their development all the way back to components of IBM's research into memory managers.In modern operating systems, including Windows, application programs and many system processes always reference memory using virtual memory addresses which are automatically translated to real (RAM) addresses by the hardware. Only core parts of the operating system kernel bypass this address translation and use real memory addresses directly.
Virtual Memory is always in use, even when the memory required by all running processes does not exceed the amount of RAM installed on the system.
See also;
http://members.shaw.ca/bsanders/Windows ... ileEtc.htm
In addition to;
http://shsc.info/WindowsMemoryManagement
Also, various tasks (printing to a PDF) and interaction with external computer equipment, on Windows, have virtual memory assigned to them. Another good example is when you plug in a removable media device; Windows has to have a way to reference and access the storage area on the device, either RAM or HDD based storage, quickly over UPnP and virtual memory is a key component in allowing it to do this.
HTH
Last edited by christopher_wolf on Tue Aug 22, 2006 10:51 am, edited 3 times in total.
IBM ThinkPad T43 Model 2668-72U 14.1" SXGA+ 1GB |IBM 701c
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
-
smugiri
- Senior Member

- Posts: 774
- Joined: Tue Nov 23, 2004 4:29 pm
- Location: Mississauga, ON
- Contact:
Thanks for the links and explanations @christopher_wolf, I love learning new stuff. So, my new understanding of the gist of the material you pointed me to is that virtual memory is the combination of swap, paging files, extended memory and temporary files used by the OS/apps. Does this sound accurate?
Steve
-
christopher_wolf
- Special Member
- Posts: 5741
- Joined: Sat Oct 08, 2005 1:24 pm
- Location: UC Berkeley, California
- Contact:
Almost; just about everything that can be used as a storage device can have virtual memory attached to it. Virtual memory is more of a way to abstract storage (storage in the sense that Windows is equating it with memory). Basically anytime a process needs to use a form of memory it gets a handle to resources covered by virtual memory. Also, virtual memory is used as a way for windows to present memory to large tasks that would usually cause interrupts in the smooth flow of operation (due to the increase in the rate of resource acquisition by the large process), such as printer spooling as Mike pointed out.smugiri wrote:Thanks for the links and explanations @christopher_wolf, I love learning new stuff. So, my new understanding of the gist of the material you pointed me to is that virtual memory is the combination of swap, paging files, extended memory and temporary files used by the OS/apps. Does this sound accurate?
IBM ThinkPad T43 Model 2668-72U 14.1" SXGA+ 1GB |IBM 701c
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
As other and more technically inclined posters have shown the virtual memory is a complicated thing. As far as the swap file is concerned, I have adopted the habit of setting its maximum and minimum sizes to be identical, so that the file does not change size. It can then be defragged into a single block that remains where it is and/or moved to the beginning of the harddisk (provided the defrag software/Windows lets you do that).
On my X30 I have done the experiment of turning the page file off. It has 512 MB RAM and it seems to run happily without the page file, with less disk access and a slightly cooler harddrive. It also runs a bit longer on battery power (I used the gain in battery duration to set the screen brightness in BIOS to Normal so it is just as bright on battery as on AC power). Of course I do not run PhotoShop or large databases on that machine...
On my X30 I have done the experiment of turning the page file off. It has 512 MB RAM and it seems to run happily without the page file, with less disk access and a slightly cooler harddrive. It also runs a bit longer on battery power (I used the gain in battery duration to set the screen brightness in BIOS to Normal so it is just as bright on battery as on AC power). Of course I do not run PhotoShop or large databases on that machine...
T42 (14"/250GB/1.5GB; NL; with minidock); R51 (15" flexview/40GB/1 GB). X31 (12"/320GB/1GB); T42 (14"/60GB/1GB; FR)
-
bill bolton
- Admin

- Posts: 3848
- Joined: Thu Sep 01, 2005 10:09 am
- Location: Sydney, Australia - Best Address on Earth!
In general, having the pagefile in about the middle of the boot drive partition is a better strategy than placing it at the begining of the boot drive partition.fschwep wrote:It can then be defragged into a single block that remains where it is and/or moved to the beginning of the harddisk (provided the defrag software/Windows lets you do that)
Cheers,
Bill
-
christopher_wolf
- Special Member
- Posts: 5741
- Joined: Sat Oct 08, 2005 1:24 pm
- Location: UC Berkeley, California
- Contact:
You can place it as Bill said, or you can let something like PerfectDisk 7.0 handle it during an offline defrag and placing the proper reference files during an online defrag. 
IBM ThinkPad T43 Model 2668-72U 14.1" SXGA+ 1GB |IBM 701c
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
~o/
I met someone who looks a lot like you.
She does the things you do.
But she is an IBM.
/~o ---ELO from "Yours Truly 2059"
Hello,
quite a while ago, I came across a site, as I have upgraded the memory on my laptop. I have followed the instructions on their site to the letter, which worked very well for me.
Here's the link to the site:
http://www.theeldergeek.com/paging_file.htm
quite a while ago, I came across a site, as I have upgraded the memory on my laptop. I have followed the instructions on their site to the letter, which worked very well for me.
Here's the link to the site:
http://www.theeldergeek.com/paging_file.htm
IBM Thinkpad X31 2884-JGU
P M 1.4Ghz | 2GB RAM | 80GB HDD | 12.1" XGA | X3 Ultrabase | DVD/CD-RW | 802.11 a/b/g WLAN | BT | WinXP Pro SP2
P M 1.4Ghz | 2GB RAM | 80GB HDD | 12.1" XGA | X3 Ultrabase | DVD/CD-RW | 802.11 a/b/g WLAN | BT | WinXP Pro SP2
Recently (2 - 3 months ago) German mag C'T (an excellent, very competent and trustworthy publication - unlike any other computing magazine...) ran an article which put to the test about 40 or more well known 'so called' Windows tweaks, including fixing virtual memory at a set size, putting the paging file on another disk, etc. They also tested loads of other tweaks you see about the internet. In every single case they performed benchmarks and found that tweaking Windows settings either had no performance effect, or a detrimental effect.
YMMV but on the strength of this I've changed from being a tweaker to letting Windows get on with looking after itself - the numbers don't lie....
(Sorry, I can't find the article online to link to)
YMMV but on the strength of this I've changed from being a tweaker to letting Windows get on with looking after itself - the numbers don't lie....
(Sorry, I can't find the article online to link to)
T60p (2.33GHz, 2Gb)
T42p (2.13GHz, 2Gb)
X31 (1.5GHz, 1Gb)
T42p (2.13GHz, 2Gb)
X31 (1.5GHz, 1Gb)
-
- Similar Topics
- Replies
- Views
- Last post
-
-
No Trackpoint scrolling in Virtual Desktops under Windows 7
by axur-delmeria » Thu Mar 30, 2017 7:27 am » in Windows 7 - 1 Replies
- 751 Views
-
Last post by dr_st
Thu Mar 30, 2017 10:53 am
-
-
-
T420 Upgrade Options for CPU/Memory
by Farro » Tue Jan 24, 2017 4:19 am » in ThinkPad T400/410/420 and T500/510/520 Series - 8 Replies
- 1883 Views
-
Last post by jaspen-meyer
Tue Feb 28, 2017 8:32 am
-
-
-
X230 Users...my X230 doesn't like my 16gb G.Skill memory kit
by mr.rhtuner » Sat Mar 18, 2017 8:00 pm » in ThinkPad X230 and later Series - 14 Replies
- 1197 Views
-
Last post by Frenel
Sun May 21, 2017 12:28 pm
-
-
-
SD ram card as extended memory vs. SSD allocation
by D L Davis » Thu Mar 30, 2017 9:34 pm » in ThinkPad W500/510/520 and W7x0 Series - 11 Replies
- 1247 Views
-
Last post by Cigarguy
Thu Apr 06, 2017 7:03 pm
-
Who is online
Users browsing this forum: No registered users and 2 guests






