Jump to content

paging file snafu

0ld_Chicken
Go to solution Solved by Mira Yurizaki,

Virtual memory is the entire memory space available to the OS. The second number may also just mean how much space is reserved for itself rather than how much space it's actually taking up. Programs in Windows will request X amount of memory, but Windows won't actually give it to them unless they really need it. To paraphrase Raymond Chen who's one of the Windows programmers (he also has a really interesting blog called The Old New Thing):

Quote

It's like reserving cleaning service for your room on a particular day. The cleaning company isn't going to put one person away to wait until that day to clean your room. It just means they will guarantee someone will show up and clean your room on that day.

 

So I've been playing with my paging file this morning after noticing some high usages in HWiNFO64 AND afterburner.  While playing Doom I am getting over 14gb of virtual memory commited with an 80% virtual memory load.  I find this interesting because I'm only using around 7gb of my 16gb of ram.  So I tried setting my pagefile to a smaller size, minimum 1024, max 2048.  After changing this (in control panel>system>advanced etc...) and restarting my pc I view the same usages while playing games like I haven't changed the pagefile size.  So I tried disabling the pagefile just to see what happens and again I get the same result of 14gb of virtual memory and around 7gb ram.    It's been the same in several games so far so I know it isn't just Doom

 

 

I'm just interested to know what is going on here?  It seems to me that my computer is going willy-nilly with virtual memory no matter what I set it to.  Am I just misunderstanding something here?   I'm not having performance issues, just curiosity issues.  If someone knows of a better way to monitor/control virtual memory or any other advice I'd appreciate it. 

20160612102800_1.jpg

pagefile.png

LTT Community Standards                                               Welcome!-A quick guide for new members to LTT

Man's Machine- i7-7700k@5.0GHz / Asus M8H / GTX 1080Ti / 4x4gb Gskill 3000 CL15  / Custom loop / 240gb Intel SSD / 3tb HDD / Corsair RM1000x / Dell S2716DG

The Lady's Rig- G3258@4.4GHz(1.39v) on Hyper 212 / Gigabyte GA-B85M / gtx750 / 8gb PNY xlr8 / 500gb seagate HDD / CS 450M / Asus PB277Q

Link to comment
Share on other sites

Link to post
Share on other sites

Virtual memory is the entire memory space available to the OS. The second number may also just mean how much space is reserved for itself rather than how much space it's actually taking up. Programs in Windows will request X amount of memory, but Windows won't actually give it to them unless they really need it. To paraphrase Raymond Chen who's one of the Windows programmers (he also has a really interesting blog called The Old New Thing):

Quote

It's like reserving cleaning service for your room on a particular day. The cleaning company isn't going to put one person away to wait until that day to clean your room. It just means they will guarantee someone will show up and clean your room on that day.

 

Link to comment
Share on other sites

Link to post
Share on other sites

45 minutes ago, M.Yurizaki said:

Virtual memory is the entire memory space available to the OS. The second number may also just mean how much space is reserved for itself rather than how much space it's actually taking up. Programs in Windows will request X amount of memory, but Windows won't actually give it to them unless they really need it. To paraphrase Raymond Chen who's one of the Windows programmers (he also has a really interesting blog called The Old New Thing):

 

let me see if I understand,  the 16gb of virtual memory that it is showing isn't from a hdd/ssd paging file but from the ram?  I've been reading into virtual memory a bit (as much as I can comprehend ^_^) and I do understand that windows sort of allocates space for things without necessarily putting them there.  Perhaps I need to be watching for the physical reads/writes to the pagefile drive to see if there is anything being written/read... didn't think about that one lol

LTT Community Standards                                               Welcome!-A quick guide for new members to LTT

Man's Machine- i7-7700k@5.0GHz / Asus M8H / GTX 1080Ti / 4x4gb Gskill 3000 CL15  / Custom loop / 240gb Intel SSD / 3tb HDD / Corsair RM1000x / Dell S2716DG

The Lady's Rig- G3258@4.4GHz(1.39v) on Hyper 212 / Gigabyte GA-B85M / gtx750 / 8gb PNY xlr8 / 500gb seagate HDD / CS 450M / Asus PB277Q

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, M.Yurizaki said:

Virtual memory is physical memory + page file space. If you reduce your page file space to 0, virtual memory is now just physical memory.

ok that helps a lot!  There is a difference between the virtual memory allocated and physical memory used because like you said, windows won't actually put it there until necessary but its been allocated.  Thanks a bunch!

LTT Community Standards                                               Welcome!-A quick guide for new members to LTT

Man's Machine- i7-7700k@5.0GHz / Asus M8H / GTX 1080Ti / 4x4gb Gskill 3000 CL15  / Custom loop / 240gb Intel SSD / 3tb HDD / Corsair RM1000x / Dell S2716DG

The Lady's Rig- G3258@4.4GHz(1.39v) on Hyper 212 / Gigabyte GA-B85M / gtx750 / 8gb PNY xlr8 / 500gb seagate HDD / CS 450M / Asus PB277Q

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×