Suppor validate set on memory size