Windows container doesn't seem to use pagefile.sys #45808
andivlad-talentia
started this conversation in
General
Replies: 1 comment
-
You may have better luck asking in https://github.com/microsoft/Windows-Containers as much of Windows' Host Compute Service is a black box to us Moby maintainers. If I were to guess, I suspect that this is working as intended aside from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a working scenario where i need to limmit the maximum memory usage in a windows container. (image based on mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022). Running in process isolation.
The expected behavior after the memory has been reached is to go into pagefile based on what i've been reading. This doesn't seem to be the case.
Following the steps described here https://thomasvanlaere.com/posts/2022/02/exploring-windows-containers-page-files/ (excellently written) i should see the pagefile starting to get used, and it doesn't:
Running
Get-WmiObject Win32_PageFileusage | Select-Object -Property *
yieldsand then
Container can only allocate the 2g memory and then the script get's stuck in retrying.
If i try to execute something else against the container i get:
docker exec -it 6229068cc010 powershell container 6229068cc010faf1724ae64267568026ac3796e43f44196c89b8bf57864adfb2 encountered an error during hcs::System::CreateProcess: failure in a Windows system call: The paging file is too small for this operation to complete. (0x5af)
Beta Was this translation helpful? Give feedback.
All reactions