meminfo implementation and example
supporting unit passed to meminfo