opt: add allocator setting.