I think I found my problem. I did not realize using /dev/shm as a ramdisk will create swap space. Is there a way to prevent the ramdisk from swapping to disk?