dynamicly determining memory and cpus to use for the box