test and refactor linux memory detection
whitespace