config model memory allocate