code: public static int getPageSize(Configuration configuration) {
  		final int pageSize = checkedDownCast(MemorySize.parse(
  			configuration.getString(TaskManagerOptions.MEMORY_SEGMENT_SIZE)).getBytes());
  
  		// check page size of for minimum size
  		ConfigurationParserUtils.checkConfigParameter(pageSize >= MemoryManager.MIN_PAGE_SIZE, pageSize,
  			TaskManagerOptions.MEMORY_SEGMENT_SIZE.key(),
  			"Minimum memory segment size is " + MemoryManager.MIN_PAGE_SIZE);
  		// check page size for power of two
  		ConfigurationParserUtils.checkConfigParameter(MathUtils.isPowerOf2(pageSize), pageSize,
  			TaskManagerOptions.MEMORY_SEGMENT_SIZE.key(),
  			"Memory segment size must be a power of 2.");
  
  		return pageSize;
  	}
docs: Parses the configuration to get the page size and validates the value.
  
  @param configuration configuration object
  @return size of memory segment