Cannot get system to use swap when hugepages &memlock are configured.
I've setup a test server -
Red Hat Enterprise Server 5.2
16 GB RAM
Oracle 10G with 5 GB SGA
6 GB of hugepages
6 GB of memlock for the oracle user
No matter what I change vm.swappiness or vm.pagecache to I cannot get this sever to use swap. I've got HammerOra hammering the system, RAM gets down to 80 MB free and kswapd kicks in trying to free pagecache (sometime getting upto 90% CPU and practically bringing the system to a halt) but it refuses to do any swapping.
This does not seem logical to me. I know that hugepages will not get swapped out, the SGA gets put into hugepages, fine. However I have 700 virtual users configured in HammerOra so there are a lot of connections and PGA activity but none of it ever gets swapped out.