Project
Loading...
Searching...
No Matches
o2::aod::native::Options Struct Reference

#include <ByteSource.h>

Public Types

enum struct  LocalIO { MMap , PRead }
 
enum struct  RemoteIO { Prefetch , Stream }
 
enum struct  HttpVersion { Auto , Http1_1 , Http2 }
 

Public Attributes

LocalIO localIO = LocalIO::MMap
 
RemoteIO remoteIO = RemoteIO::Prefetch
 
int threads = 1
 
int prefetchDepth = 1
 
size_t coalesceGap = 64 * 1024
 
size_t bufferBudget = kAutoBufferBudget
 
double spanFraction = 0.8
 
int streamWindows = 4
 
size_t streamWindowBytes = 2 * 1024 * 1024
 
HttpVersion httpVersion = HttpVersion::Auto
 
int httpConnections = 4
 
int readRetries = 2
 
double retryDelay = 2.0
 
size_t remoteInFlightBytes = 32 * 1024 * 1024
 

Static Public Attributes

static constexpr size_t kAutoBufferBudget = SIZE_MAX
 

Detailed Description

All the reader settings, collected from the –aod-reader-* / –aod-http-* workflow options.

Definition at line 28 of file ByteSource.h.

Member Enumeration Documentation

◆ HttpVersion

enum struct o2::aod::native::Options::HttpVersion
strong
Enumerator
Auto 
Http1_1 
Http2 

Definition at line 33 of file ByteSource.h.

◆ LocalIO

enum struct o2::aod::native::Options::LocalIO
strong
Enumerator
MMap 
PRead 

Definition at line 29 of file ByteSource.h.

◆ RemoteIO

enum struct o2::aod::native::Options::RemoteIO
strong
Enumerator
Prefetch 
Stream 

Definition at line 31 of file ByteSource.h.

Member Data Documentation

◆ bufferBudget

size_t o2::aod::native::Options::bufferBudget = kAutoBufferBudget

Definition at line 45 of file ByteSource.h.

◆ coalesceGap

size_t o2::aod::native::Options::coalesceGap = 64 * 1024

Definition at line 40 of file ByteSource.h.

◆ httpConnections

int o2::aod::native::Options::httpConnections = 4

Definition at line 50 of file ByteSource.h.

◆ httpVersion

HttpVersion o2::aod::native::Options::httpVersion = HttpVersion::Auto

Definition at line 49 of file ByteSource.h.

◆ kAutoBufferBudget

constexpr size_t o2::aod::native::Options::kAutoBufferBudget = SIZE_MAX
staticconstexpr

Most bytes the read plans of a file hold at once, 0 for no limit. A DF larger than this is read in groups of trees. kAutoBufferBudget: 16 MB for a local file, 64 MB for a remote one, where each read is a round trip.

Definition at line 44 of file ByteSource.h.

◆ localIO

LocalIO o2::aod::native::Options::localIO = LocalIO::MMap

Definition at line 36 of file ByteSource.h.

◆ prefetchDepth

int o2::aod::native::Options::prefetchDepth = 1

Definition at line 39 of file ByteSource.h.

◆ readRetries

int o2::aod::native::Options::readRetries = 2

For a source opened with ByteSource::openReplicas: how many times, at most, failed reads are retried on a replica (reopened) during the life of the file before moving on to the next replica, and the seconds waited before the first retry (doubled for each further one).

Definition at line 55 of file ByteSource.h.

◆ remoteInFlightBytes

size_t o2::aod::native::Options::remoteInFlightBytes = 32 * 1024 * 1024

Most bytes of one read plan in flight at once on a remote file, so that each request finishes within the server timeout on a slow link (XRootD expires requests after XRD_REQUESTTIMEOUT, 150 s in the ALICE setup).

Definition at line 60 of file ByteSource.h.

◆ remoteIO

RemoteIO o2::aod::native::Options::remoteIO = RemoteIO::Prefetch

Definition at line 37 of file ByteSource.h.

◆ retryDelay

double o2::aod::native::Options::retryDelay = 2.0

Definition at line 56 of file ByteSource.h.

◆ spanFraction

double o2::aod::native::Options::spanFraction = 0.8

Definition at line 46 of file ByteSource.h.

◆ streamWindowBytes

size_t o2::aod::native::Options::streamWindowBytes = 2 * 1024 * 1024

Definition at line 48 of file ByteSource.h.

◆ streamWindows

int o2::aod::native::Options::streamWindows = 4

Definition at line 47 of file ByteSource.h.

◆ threads

int o2::aod::native::Options::threads = 1

Definition at line 38 of file ByteSource.h.


The documentation for this struct was generated from the following file: