Background: I have 16 GB of memory in my machine.
When my machine uses already 15 GB of memory and my application allocates another chunk of 2 GB memory I run out of physical memory and swapping (should) pops in and uses the available disk-space. Instead Windows freezes completley. Why does this happen? I thought Windows (a user-process) does never page out memory related processes/threads/os-memory. Why does it block then?
I would expect that my process hangs but why does it happen with the entire OS? One idea: It's related to the memory-size of 2 GB which blocks the internal memory management until it succeeded. Therefore the other processes block as well. I am not sure if this makes any sense. What are your thoughts on this?