how to customize number of core/memory to use per slave ?