docs: private static long calculateNewNetworkBufferMemory(Configuration config, long networkBufSize, long maxJvmHeapMemory) {
  		float networkBufFraction = config.getFloat(TaskManagerOptions.NETWORK_BUFFERS_MEMORY_FRACTION);
  		long networkBufMin = MemorySize.parse(config.getString(TaskManagerOptions.NETWORK_BUFFERS_MEMORY_MIN)).getBytes();
  		long networkBufMax = MemorySize.parse(config.getString(TaskManagerOptions.NETWORK_BUFFERS_MEMORY_MAX)).getBytes();
  
  		int pageSize = getPageSize(config);
  
  		checkNewNetworkConfig(pageSize, networkBufFraction, networkBufMin, networkBufMax);
  
  		long networkBufBytes = Math.min(networkBufMax, Math.max(networkBufMin, networkBufSize));
  
  		ConfigurationParserUtils.checkConfigParameter(networkBufBytes < maxJvmHeapMemory,
  			"(" + networkBufFraction + ", " + networkBufMin + ", " + networkBufMax + ")",
  			"(" + TaskManagerOptions.NETWORK_BUFFERS_MEMORY_FRACTION.key() + ", " +
  				TaskManagerOptions.NETWORK_BUFFERS_MEMORY_MIN.key() + ", " +
  				TaskManagerOptions.NETWORK_BUFFERS_MEMORY_MAX.key() + ")",
  			"Network buffer memory size too large: " + networkBufBytes + " >= " +
  				maxJvmHeapMemory + " (maximum JVM memory size)");
  
  		return networkBufBytes;
  	}