implement meminfo and its test