add max size
Signed-off-by: obullxl <obullxl@163.com>