public static int getCpuCores() {
    return CPUS;
  }
NOTICE: This method is currently used only for data dir, thus using FSFactory to get file

@param dir directory path
@return
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/JVMCommonUtils.java