finish get_mem_percentage_cmd function, and use cmdloop to test