'Get the kernel memory info (/proc/meminfo) of the remote machine
and return a dictionary mapping the various statistics.'

def get_meminfo(self):

    meminfo_dict = {}
    meminfo = self.run('cat    /proc/meminfo').stdout.splitlines()
    for (key, val) in (line.split(':', 1) for line in meminfo):
        meminfo_dict[key.strip()] = val.strip()
    return meminfo_dict
