Saving VM state triggers Out-Of-Memory killer
Saving my VM triggers the OOM for me.
My configuration is special with respect to two things: The VM state dump goes to an NFSv4 share, and the NFS share is connected via the interface the VM is bridged to network-wise.
I do have swap attached but it is totally unused. Under normal circumstances, the kernel should start swapping out if there is actually memory pressure, but for some reason it doesn't here, and starts the killing. That's my memory stats a few ms before the box freezes to ponder which thing to kill
total used free shared buffers cached Mem: 6155480 3971364 2184116 0 0 930180 -/+ buffers/cache: 3041184 3114296 Swap: 3911672 0 3911672
What's really strange is that there is clearly memory left to allocate, but probably not below the mysterious <3GB DMA boundary (32 bit machine)
When I switch the network adapter from being bridged to eth0 to "Not attached" before suspend the VM, it seems to work.
I suspect that the VirtualBox bridging uses some kind of network filter to intercept packets to virtual adapter. I suspect that this filtering is the culprint here.