Add a var for slab size

Change-Id: Ia2ba5d43e1cf614d598ae23944337d54178aed5a
Allow override of max memory

Change-Id: I51cb1aa41a9c73026e8d05b9d2100ac37aa7b4c9