Using int everywhere for memory and swap