I'm running some memory intensive calculations on Ubuntu 13.04. I have 8 GB of RAM, and a swap partition with the same amount of memory. The hard disk and swap partition are encrypted.
› free -m
total used free shared buffers cached
Mem: 7663 3773 3890 0 151 2099
-/+ buffers/cache: 1522 6141
Swap: 7863 0 7863
I've watched what happens several times in resource monitor. The swap is at zero when the process starts. The memory gradually fills up, and when RAM features about 99%, the computer freezes with high IO wait on the hard disk.
I've read several other Ask Ubuntu questions, and tried changing vm.min_free_kbytes
and vm.swappiness
as recommended here, but it didn't work. What should I do?
swappiness
at value of5
. I've changed that to10
and the system is no more freezing, however it can choke after a while from startup and Chrome surfing (4 GB RAM here). I guess in my case the system was unable to engageswap
from a point of too highRAM usage
, Yours of 99% may be fatal.#/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0 /dev/mapper/cryptswap1 none swap sw 0 0