Question Low virtual memory crash need help

Page 2 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.
Aug 8, 2023
61
0
30
First up my system:Rx 6750 xt-ryzen 5 3600-16 GB of ram single stick.Msi 650w PSU.Mobo is b450m s2h with up to date bios.I reset windows 4-5 days ago so it cant be a virus or anything.Aside from audio drivers all are updated.Xmp is active

I ran memory diagnosis tool and it came back with 0 issues.

İssue:When i max out settings in Cod MW 2 and Witcher 3 while 4-5 Mozilla tabs are open in background.My game freezes and windows closes the game and Mozilla.In Cod while i was monitoring my ram/vram usage a crash happened while Vram was at 11.2 GB usage and Ram was at 12 GB.I will add 3 pictures 1 of which is the in game ram/Vram usage after increasing paging file size to min:24.576 max:49.152.One hwinfo picture shows the ram usage before changing paging file size and the other shows after.



Here is the transcript of event log.Couldnt translate it to English.Günlük Adı: System

Kaynak: Microsoft-Windows-Resource-Exhaustion-Detector

Tarih: 17.08.2023 01:00:31

Olay Kimliği: 2004

Görev Kategorisi:Kaynak Tükenme Tanısı Olayları

Düzey: Uyarı

Anahtar sözcükler:Sistem kaydetme sınırının (sanal bellek) tükenmesiyle ilgili olaylar.

Kullanıcı: SYSTEM

Bilgisayar: DESKTOP-FJQIE64

Açıklama:

Windows yetersiz sanal bellek durumunu başarıyla tanıladı. En fazla sanal belleği şu programlar kullanıyordu: cod.exe (300) 17473638400 bayt kullandı, steamwebhelper.exe (5788) 749494272 bayt kullandı ve steamwebhelper.exe (13788) 642646016 bayt kullandı.

Olay Xml'si:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

<System>

<Provider Name="Microsoft-Windows-Resource-Exhaustion-Detector" Guid="{9988748e-c2e8-4054-85f6-0c3e1cad2470}" />

<EventID>2004</EventID>

<Version>0</Version>

<Level>3</Level>

<Task>3</Task>

<Opcode>33</Opcode>

<Keywords>0x8000000020000000</Keywords>

<TimeCreated SystemTime="2023-08-16T22:00:31.1700126Z" />

<EventRecordID>1604</EventRecordID>

<Correlation ActivityID="{ffa1e0e5-ce94-410f-bf46-c1689be7157a}" />

<Execution ProcessID="15220" ThreadID="15540" />

<Channel>System</Channel>

<Computer>DESKTOP-FJQIE64</Computer>

<Security UserID="S-1-5-18" />

</System>

<UserData>

<MemoryExhaustionInfo xmlns="http://www.microsoft.com/Windows/Resource/Exhaustion/Detector/Events">

<SystemInfo>

<SystemCommitLimit>32020865024</SystemCommitLimit>

<SystemCommitCharge>31923818496</SystemCommitCharge>

<ProcessCommitCharge>25950560256</ProcessCommitCharge>

<PagedPoolUsage>839585792</PagedPoolUsage>

<PhysicalMemorySize>17100419072</PhysicalMemorySize>

<PhysicalMemoryUsage>13204312064</PhysicalMemoryUsage>

<NonPagedPoolUsage>675565568</NonPagedPoolUsage>

<Processes>191</Processes>

</SystemInfo>

<PagedPoolInfo>

<Tag_1>

<Name>Vi54</Name>

<PoolUsed>130629632</PoolUsed>

</Tag_1>

<Tag_2>

<Name>MmSt</Name>

<PoolUsed>116467824</PoolUsed>

</Tag_2>

<Tag_3>

<Name>Ntff</Name>

<PoolUsed>25017344</PoolUsed>

</Tag_3>

</PagedPoolInfo>

<NonPagedPoolInfo>

<Tag_1>

<Name>Irp </Name>

<PoolUsed>56922080</PoolUsed>

</Tag_1>

<Tag_2>

<Name>FMic</Name>

<PoolUsed>56149760</PoolUsed>

</Tag_2>

<Tag_3>

<Name>DAL3</Name>

<PoolUsed>55130080</PoolUsed>

</Tag_3>

</NonPagedPoolInfo>

<ProcessInfo>

<Process_1>

<Name>cod.exe</Name>

<ID>300</ID>

<CreationTime>2023-08-16T20:48:21.7074386Z</CreationTime>

<CommitCharge>17473638400</CommitCharge>

<HandleCount>3857</HandleCount>

<Version>1.0.0.0</Version>

<TypeInfo>201</TypeInfo>

</Process_1>

<Process_2>

<Name>steamwebhelper.exe</Name>

<ID>5788</ID>

<CreationTime>2023-08-16T21:48:03.1478912Z</CreationTime>

<CommitCharge>749494272</CommitCharge>

<HandleCount>767</HandleCount>

<Version>8.22.60.19</Version>

<TypeInfo>210</TypeInfo>

</Process_2>

<Process_3>

<Name>steamwebhelper.exe</Name>

<ID>13788</ID>

<CreationTime>2023-08-16T20:47:21.7751948Z</CreationTime>

<CommitCharge>642646016</CommitCharge>

<HandleCount>2462</HandleCount>

<Version>8.22.60.19</Version>

<TypeInfo>219</TypeInfo>

</Process_3>

<Process_4>

<Name>

</Name>

<ID>0</ID>

<CreationTime>1601-01-01T00:00:00.0000000Z</CreationTime>

<CommitCharge>0</CommitCharge>

<HandleCount>0</HandleCount>

<Version>0.0.0.0</Version>

<TypeInfo>0</TypeInfo>

</Process_4>

<Process_5>

<Name>

</Name>

<ID>0</ID>

<CreationTime>1601-01-01T00:00:00.0000000Z</CreationTime>

<CommitCharge>0</CommitCharge>

<HandleCount>0</HandleCount>

<Version>0.0.0.0</Version>

<TypeInfo>0</TypeInfo>

</Process_5>

<Process_6>

<Name>

</Name>

<ID>0</ID>

<CreationTime>1601-01-01T00:00:00.0000000Z</CreationTime>

<CommitCharge>0</CommitCharge>

<HandleCount>0</HandleCount>

<Version>0.0.0.0</Version>

<TypeInfo>0</TypeInfo>

</Process_6>

</ProcessInfo>

<ExhaustionEventInfo>

<Time>2023-08-16T22:00:29.8096738Z</Time>

</ExhaustionEventInfo>

</MemoryExhaustionInfo>

</UserData>

</Event>
 
Windows will continuously move stale or underutilized data to the pagefile so that it doesn't run into a problem if an application suddenly requests 95% of your RAM. If Windows waited until your RAM was full, it would take significantly longer to load that high-RAM application, since it has to write an absolute ton of data to your (very slow) pagefile. Keeping true RAM utilization low by writing to the pagefile whenever possible is the most efficient way for your computer to operate.
My commit charge always seem high for some reason.Even when vram is at 8gb of use.Currwntly with 8.3gb vram use and 1.2 shared and with 12.3gb ram use (again 4gb standby) Commit charge is at 27.6 why is that?
 
yes its very normal, any old data which can be reuse later is stored in drive (page file) even if you have free ram, it will sit there until you close that app which has it mapped
One last question.Is it also normal that the game uses only 12 GB of ram and 4 is kept at standby even though virtual ram usage is almost full? Shouldn't it use like 14-15gb ram before it tanks the virtual memory?
 
One last question.Is it also normal that the game uses only 12 GB of ram and 4 is kept at standby even though virtual ram usage is almost full? Shouldn't it use like 14-15gb ram before it tanks the virtual memory?
if its on standby, then its not currently used, hence you have free ram when needed

to help you understand, disable swap file and see what will happen, im pretty sure youll get out of ram very quickly, as that commit carge will fill up your ram instantly and thats it, game crash during loading with out of memory
 
  • Like
Reactions: hdmi123
if its on standby, then its not currently used, hence you have free ram when needed

to help you understand, disable swap file and see what will happen, im pretty sure youll get out of ram very quickly, as that commit carge will fill up your ram instantly and thats it, game crash during loading with out of memory
Shouldnt the game or system use that 4gb ram instead of crashing?I think this is my issue
 
no, your issue is 32GB virtual size limit being full

set max to lets say 64GB? if you have free drive space
View: https://imgur.com/X252EHA
Ehh.I was mainly worried i had some sort of memory issue but it seems i have not so i think I'm simply going to play at lower settings and turn off Mozilla.To make sure ,Is it a normal process for the game to use virtual memory to it's limit even though i have free ram available?Seems rather odd that it doesn't tap into that 4gb ram instead.
 
You can set almost any amount of virtual memory, IF the hard drive/ssd/m.2 has enough available space.
A lot of ssd/m.2 use a portion of the drive for "caching" and wear leveling. This can be 32gig or more depending on drive or software.
so your free space may be half of what you think it is.

As stated above drive performance drops dramatically if you do not have enough free space on ssd/m.2.
It is not like a hard drive that you can fill up and performance remains basically the same.
 
You can set almost any amount of virtual memory, IF the hard drive/ssd/m.2 has enough available space.
A lot of ssd/m.2 use a portion of the drive for "caching" and wear leveling. This can be 32gig or more depending on drive or software.
so your free space may be half of what you think it is.

As stated above drive performance drops dramatically if you do not have enough free space on ssd/m.2.
It is not like a hard drive that you can fill up and performance remains basically the same.
The thing is when i set the paging file myself to 32 gb it worked.But when it's system controlled it maxes out at 29.Why coukd this be?
 
The thing is when i set the paging file myself to 32 gb it worked.But when it's system controlled it maxes out at 29.Why coukd this be?
looking through microsoft papers about system managed pagefile, maximum can be 3x of you ram size (48GB), however there is another limit into play, which is disk size ÷ 8, so with 29GBpagefile max we can say that you have +-232GB drive partition
 
Last edited:
  • Like
Reactions: hdmi123
looking through microsoft papers about system managed pagefile, maximum can be 3x of you ram size (48GB), however there is another limit into play, which is disk size ÷ 8, so with 29GBpagefile max we can say that you have +-232GB drive partition
My SSD is 120 gb.Shouldnt it be less technically?Its odd that the system is limited at 29 GB.Is there anything i can check to see if everything is normal?
 
What do you think is limiting my page file at 29gb? I can bump it up to 32 manually bu i heard doing that messes up your ssd
your drive size is limiting it, now ive mistakenly tought that you have 29GB page file, but nope, thats virtual ram size (ram + page file)

here from your picture
View: https://imgur.com/Mcssj2u


here you can see that at max your virtual memory utilisation was 30,22GB (29,515 * 1,024)
that is 16GB ram + 14GB page file

now if we recalculate your 120GB drive to see how much you can get with system managed paged file
120GB drive in base2 would be 111.7GB, could be less if drive has overprovisioning/extra slc buffer
111.7 / 8 = 13.9GB
so 16GB RAM + 14GB pagefile = max 30GB virtual ram

ya, so... in order to increase your virtual ram, you will need to set it manualy
 
your drive size is limiting it, now ive mistakenly tought that you have 29GB page file, but nope, thats virtual ram size (ram + page file)

here from your picture
View: https://imgur.com/Mcssj2u


here you can see that at max your virtual memory utilisation was 30,22GB (29,515 * 1,024)
that is 16GB ram + 14GB page file

now if we recalculate your 120GB drive to see how much you can get with system managed paged file
120GB drive in base2 would be 111.7GB, could be less if drive has overprovisioning/extra slc buffer
111.7 / 8 = 13.9GB
so 16GB RAM + 14GB pagefile = max 30GB virtual ram

ya, so... in order to increase your virtual ram, you will need to set it manualy
I see.Thank you for your detailed explanations.I will keep the page file managed by the system for now.Ill probably do a clean install later on my 480 GB ssd