Pushing the Limits: Virtual Memory

Bare Foot Kid

R.I.P. August 13th 2014
SF Team
Local time
6:09 PM
Messages
22,809
Location
The Lowcountry
Pushing the Limits of Windows: Virtual Memory.

In my first post; I discussed physical memory limits, including the limits imposed by licensing, implementation, and driver compatibility. This time I’m turning my attention to another fundamental resource, virtual memory. Virtual memory separates a program’s view of memory from the system’s physical memory, so an operating system decides when and if to store the program’s code and data in physical memory and when to store it in a file. The major advantage of virtual memory is that it allows more processes to execute concurrently than might otherwise fit in physical memory.

While virtual memory has limits that are related to physical memory limits, virtual memory has limits that derive from different sources and that are different depending on the consumer. For example, there are virtual memory limits that apply to individual processes that run applications, the operating system, and for the system as a whole. It's important to remember as you read this that virtual memory, as the name implies, has no direct connection with physical memory. Windows assigning the file cache a certain amount of virtual memory does not dictate how much file data it actually caches in physical memory; it can be any amount from none to more than the amount that's addressable via virtual memory.

Process Address Spaces

Each process has its own virtual memory, called an address space, into which it maps the code that it executes and the data that the code references and manipulates. A 32-bit process uses 32-bit virtual memory address pointers, which creates an absolute upper limit of 4GB (2^32) for the amount of virtual memory that a 32-bit process can address. However, so that the operating system can reference its own code and data and the code and data of the currently-executing process without changing address spaces, the operating system makes its virtual memory visible in the address space of every process. By default, 32-bit versions of Windows split the process address space evenly between the system and the active process, creating a limit of 2GB for each.

Applications might use Heap APIs, the .NET garbage collector, or the C runtime malloc library to allocate virtual memory, but under the hood all of these rely on the VirtualAlloc API. When an application runs out of address space then VirtualAlloc, and therefore the memory managers layered on top of it, return errors (represented by a NULL address). The Testlimit utility, which I wrote for the the fourth edition of Windows Internals to demonstrate various Windows limits, calls VirtualAlloc repeatedly until it gets an error when you specify the –r switch. Thus, when you run the 32-bit version of Testlimit on 32-bit Windows, it will consume the entire 2GB of its address space.

Read more at the source.


Later :shock: Ted
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
I have 2GB RAM and have never used it up before. Even when running Windows 7 with as much programs as I can use, it's only take about 1GB.
So my question is should I disable the Virtual Memory Function to improve performance?
 

My Computer

Computer Manufacturer/Model Number
Thinkpad T60
OS
Windows 7 build 6956
CPU
Core Duo 2Ghz
Memory
2GB
Graphics Card(s)
ATI Mobility x1400
Monitor(s) Displays
15''
Internet Speed
20 - 100megabyte/s
Hello natri23.

If it ain't broke don't fix it!...;)

Seriously though think about this: If it didn't get used and is necessary why would they go to so much trouble to develop it and add it to the OS at all?

You disabling it would hinder performance.










Later :shock: Ted
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Hi Natri23

I would advise that you follow Ted's good advice, as both the OS and applications written for it, expect the virtual memory to be present.

I know users on vista have had problems after disabling it. Obviously Seven may be different but unless you are seriously short of disk space - I'd leave it as it is ;)
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
Thank you guys, I just think simply that RAM has a better speed than my hard disk's one
And one more question. I know that it's better to leave the pagefile at the first partition of the hard disk but my Windows 7 is on the third partition. So should I still leave the pagefile at the first partition or better the same one with my system
 

My Computer

Computer Manufacturer/Model Number
Thinkpad T60
OS
Windows 7 build 6956
CPU
Core Duo 2Ghz
Memory
2GB
Graphics Card(s)
ATI Mobility x1400
Monitor(s) Displays
15''
Internet Speed
20 - 100megabyte/s

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
I am using the CPU Meter Gadget and my Memory Button is Constantly around 50-70% I have my Virtual Memory Set on all drives I have to use whatever. My Question is... is my computer using any of the virtual memory? Why is my gadget always showing high memory usage. Don't get me wrong the computer Runs very smoothly. just curious why. and Not sure I understand when Virtual memory kicks in or not. any info?
 

My Computer

OS
Windows 7 Build 7000
Hello shadowminx69, welcome to Se7en Forums!


How much actual RAM do you have onboard; are you using a 32-bit or 64-bit Windows 7?















Later :shock: Ted
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
I have 1gb ram and I am running 32-bit.


Hello again.


If your motherboard will support it, I would add at least 1GB more of RAM; 32-bit really does way better with 2GB; 4GB would be way better. When I had 4GB with 32-bit Vista, the system idled at 25 to 30% RAM usage.

Yes, your system is using the swap file; leave it at "System Managed".




Later ;) Ted
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Im using 2 gig of ram with a 64 bit win 7 . My VM is located on a secondary drive locked at 3 gig.

Just looking for any thoughts on this type of config

My OS drive does have a small VM of 200 meg.


My dual core cpu monitor is showing 0 - 10 % max at idle with about 1 gig of ram being used.

I would say that windows 7 runs at least 30% faster than vista with a core activity reduction of about 10 -20% at idle. This is obviously based on my list of apps running which I beleive I have matched in both systems.


Cheers
 

My Computer

OS
windows 7 build 7000 64
CPU
amd 5000+
Memory
3gig
Graphics Card(s)
ati 2600HD
Sound Card
realtek 7.1
Monitor(s) Displays
22 IN Samsung
Hard Drives
200gig sata
160gig sata
300gig sata
PSU
650
FWIW:

Your system will *always* use Virtual Memory unless it is expressly disabled.

Turning it off, especially for systems with low RAM (less than 2 GB) could have a pretty bad effect as there would be no place to clear out used RAM to if a new program all of a sudden opens up.

Today's HDs are a lot faster than the ATA-33 drives of the last millennium. But even in that speed, they cannot hope to match the speed of RAM, but it is *necessary* to have the Virtual Memory on - even in systems with 8 GB, I highly recommend that you leave it on - you don't want to be doing something like surfing, and all of a sudden you run into a memory leak in a plugin, for example, and have your system lock up on you, now would you?

FWIW, Virtual memory is not a new thing - it has been used for decades now and has become a staple in the system. Unless you have gobs of RAM (12 GB or more, and even these amounts today I am not sure anymore is 12 GB is enough) you're better off leaving the VM system running.
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    The Beast Model A (homebrew)
    OS
    Windows 11 21H2 Current build
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spec
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Plat
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    SteelSeries Apex Pro Wired Gaming Keyboard
    Keyboard
    SteelSeries Apex Pro
    Mouse
    Logitech MX Master 3S | MX Master 3 for business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Antivirus
    Windows Defender + MB 3
    Browser
    Nightly (default) + Firefox (stable),Chrome, Edge
  • Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Latitude E5470
    OS
    ChromeOS Flex Dev Channel (current)
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics Card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Keyboard
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Bare Foot Kid-
johngalt - I have a question here I have 64bit Vista & 64bit Windows 7 on the same HD. C:-Vista 105G; D:My Documents 40G; E:Windows 7. I can change the swap file on the Vista to a Min & Max of 7500. Windows 7 will only allow a system managed if 4137Min and recommended of 5457 (Not sure how the system sets that - Question 1)? The WEI for Vista is Processor-4.9; Memory Ram-5.9; Graphics-4.1; Gaming Graphics-3.8; Primary Harddisk-5.3==>Overall 3.8 AND for Windows 7 4.9, 5.9, 3.9, 5.3. 2.9==>Overall 2.9 --Notice the difference in the hard drive number on the SAME Harddrive? Question 2 and finally notice the difference in Gaming Graphics in Vista where ATI Catalyst Manager finsihed the install --3.8 and Vista where it wouldn't install--5.3? Question 3? - (I asked Johngalt the same question - Saw Your post and thought You might have more to say -Ok?) Thank You - God's Speed with this one --Patrick C
 

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv6t
OS
Windows 7 Home - 64 Bit
CPU
AMD A8-3510MX APU with Radeon(tm) HD Graphics
Memory
6 Gigabytes
Graphics Card(s)
1GB of DDR3 Memory 7ATI Radeon HD 3200 Graphics
Sound Card
Motherboard
Monitor(s) Displays
15.6 LCD
Screen Resolution
1280 X 800 - 32-bit Color
Hard Drives
600 Gig - C:\ 299 G ; D:\ 298 G ; E:\ 32 G
Cooling
Laptop sits on a Belkin stand with a cooling fan from USB.
Mouse
On-Board Laptop Synaptics (driver) Point device
Internet Speed
Broadband -Wireless Net Gear (B, G, & N)
Hi Bare Foot Kid,

Back to the physical memory limit, I want to an old old question but I couldn't find the answer for myself. In the past, I saw an PC which run Windows XP SP 3 can reach to 4GB physical memory after we add the parameter /PAE in the boot command. But in Windows 7, even Ultimate version, they say it could support up to 4GB, but when I installed Win 7 Ultimate 32-bits version, the OS warning that usable memory is just around 3.25GB. Is that mean the rest cann't be used? and I will lost the 750 MB physical memory???

Your answer is appreciated.

Fat Bear.
 

My Computer

OS
Win 7 Ultimate 64-bits
Virtual memory snafu

I'm new to 7, but what I'm encountering doesn't make any sense to me. Hopefully someone can point me in the right direction. I have a new pc with W7, and 8 GB of ram. I installed my Photoshop Elements and tried to run it and it is saying I don't have enough virtual memory. Ironic to me since i've run the same program on older pc's with far less actual memory. Any ideas?
 

My Computer

OS
Windows 7
I'm new to 7, but what I'm encountering doesn't make any sense to me. Hopefully someone can point me in the right direction. I have a new pc with W7, and 8 GB of ram. I installed my Photoshop Elements and tried to run it and it is saying I don't have enough virtual memory. Ironic to me since i've run the same program on older pc's with far less actual memory. Any ideas?


Hi Vballin,

You running the 32bit or 64bit version of Windows 7?

Steven
 
Hi Bare Foot Kid,

Back to the physical memory limit, I want to an old old question but I couldn't find the answer for myself. In the past, I saw an PC which run Windows XP SP 3 can reach to 4GB physical memory after we add the parameter /PAE in the boot command. But in Windows 7, even Ultimate version, they say it could support up to 4GB, but when I installed Win 7 Ultimate 32-bits version, the OS warning that usable memory is just around 3.25GB. Is that mean the rest cann't be used? and I will lost the 750 MB physical memory???

Your answer is appreciated.

Fat Bear.

There's a part of your 4gb used by hardware purposes such bios & pilotes...

It'll slowly free it by the hardware system when it doesn't need it anymore.

I'm running 4096Mo Ram but first 96Mo were hardware reserved and few weeks later (after having flashing new bios and updates some pilots) it had shown 69mo still reserved. So by now i'm on 4027Mo Ram.

That's for me a kind of security warning...This have to be tuned.

(some threads had been around about it)

Hope this helps!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
I'm new to 7, but what I'm encountering doesn't make any sense to me. Hopefully someone can point me in the right direction. I have a new pc with W7, and 8 GB of ram. I installed my Photoshop Elements and tried to run it and it is saying I don't have enough virtual memory. Ironic to me since i've run the same program on older pc's with far less actual memory. Any ideas?

I'm using either a photo editor and when entering the App, it tells me i better swap the primary disk to an external disk because of virtual memory...I has always openned the App like this for me.

Is that you're talking about?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
This subject is a little more complex than what's being explained here. Let's use 32-bit.


Windows allocates PHYSICAL memory in 4K blocks. VIRTUAL memory can be allocated in any size but whatever the aggregate size is, it will POTENTIALLY be backed in REAL physical memory only WHEN it is actually populated with some data/code.



Using Task Manager

Each process you see in Task Manager resides within a 4 GB address space. This (and EVERY OTHER) address space is comprised of VIRTUAL addresses 0x00000000 to 0xFFFFFFFF. (0 thru 2^32 - 1).

Let's say you have notepad.exe AND wordpad.exe both open. EACH will reside in its own 4GB address space and EACH will have a virtual address 0x0 or 0x1234 or 0xABCD, etc. But, not all virtual addresses may contain INFORMATION (data or program code). That depends on what that application does.

Windows maps each address space's VIRTUAL memory to REAL/PHYSICAL memory on your PC. Let's say notepad.exe is a load module that is 64K in size. Let's say that MOST of the code that you use when you are using notepad resides in virtual address 0x1000 to 0x1FFF. The term "working set" refers to the NEEDED pages for a given address space. Meaning, of the 64K of code (comprising 16 4K pages, 16x4=64K), only 4K (1 page of PHYSICAL memory) is needed at "this" point in time of your using notepad.exe. Working Set is a selectable/viewable column in Task Manager. Select it and other MEMORY-related columns and compare.

Let's say you now open photoshop and open a monster 4G-size photo. Windows will toss out (i.e. PHYSICALLY write PHYSICAL memory pages to the page file) oldest pages FIRST. These would be notepad and wordpad (you had both opened per above). You now go BACK to notepad leaving this photograph open. Now, Windows must move (page-out) some PARTS (4K pages) of this PHOTO OR PARTS (4K pages) of photoshop code ITSELF to make room for that 0x1000 - 0x1FFF page you need to do your notepad stuff.



Page File

The Page File is neither virtual nor physical memory. It is simply a secondary place to store REAL physical memory pages that have been backed on behalf of an address spaces VIRTUAL memory usage AND since Windows needs more physical memory since ALL 4K pages are in use, he must write SOME portion of the physical memory somewhere. The Page File is an extension of PHYSICAL memory, not of "virtual" addressing memory. Physical memory is the BACKING for virtual memory requests (loading a program exe or dlls AND/OR user data).


Pictures would help with this immensely.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 7
CPU
AMD Phenom II X2 (dual-core)
Motherboard
GA-MA785GM-US2H
Memory
4G
Graphics Card(s)
integrated ATI HD 4200
Sound Card
integrated
Monitor(s) Displays
Samsung 24"
Screen Resolution
1920x1080
Hard Drives
1 SSD - Samsung 840 - 500 GB - OS and DATA partitions
1 SSD - Intel 320 - 120 GB (used for backups) - Misc/BACKUP
1 SATA HD - WD, 500 GB - BACKUP
PSU
Ultra X4 500W
Case
Ultra X-blaster
Keyboard
Microsoft Digital Media Pro
Mouse
Logitech WIRED!
Internet Speed
15 Mbps FIOS
64 bit

No I'm not getting an error about discs. The error reads as follows:

"Could not start Adobe Photoshop because the volume Windows is using for Virtual Memory does not have enough free space, which could lead to stability problems. See Windows Help for information on increasing available Virtual Memory."

Now that I've actually read it I might be better able to solve my issue . . . might.
 

My Computer

OS
Windows 7
Back
Top