code: private int getSlotCount(int memory, int vcores) {
          int cpuports = (int) Math.ceil(vcores / JOYConstants.JSTORM_VCORE_WEIGHT);
          int memoryports = (int) Math.floor(memory / JOYConstants.JSTORM_MEMORY_WEIGHT);
  //        return cpuports > memoryports ? memoryports : cpuports;
          return memoryports;
      }
docs: todo:  cause we don't support cgroup yet,now vcores is useless