docs and arguments for check_mem_cap