def METHOD_NAME(mem_size):
    """
    Get the numa memory allocation result on the host
    :param mem_size: int, the vm memory size
    :return: str, the matched output in numa_maps
    """
    cmd = 'grep -B1 %s /proc/`pidof qemu-kvm`/smaps' % mem_size
    out = process.run(cmd, shell=True, verbose=True).stdout_text.strip()
    matches = re.findall('(\w+)-', out)
    if not matches:
        raise exceptions.TestError("Fail to find the pattern '(\w+)-' "
                                   "in smaps output '%s'" % out)
    cmd = 'grep %s /proc/`pidof qemu-kvm`/numa_maps' % matches[0]
    return process.run(cmd, shell=True, verbose=True).stdout_text.strip()