def METHOD_NAME(self):
    self.logger.log_info("test memory capacity start")
    ret = E.OK
    status, out = run_command("free -t")
    self.logger.log_info(out)
    if status:
        self.log_reason("exec failed, cmd: free -t")
        ret = E.EIO
    else:
        for line in out.splitlines():
            if line.find("Total") >= 0:
                free_mem = line.split()[3]
                if int(free_mem) < self.free_mem_size:
                    self.log_reason("free memory less than {}kB".format(self.free_mem_size))
                    ret = E.EMEM4004
    if ret != E.OK:
        self.logger.log_err("test memory capacity done, FAILED.")
    else:
        self.logger.log_err("test memory capacity done, PASS.")
    return ret