meminfo refactoring