xrootd
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
XrdPfc::Configuration Struct Reference

Contains parameters configurable from the xrootd config file. More...

#include <XrdPfc.hh>

Public Member Functions

 Configuration ()
 
bool are_file_usage_limits_set () const
 
bool is_age_based_purge_in_effect () const
 
bool is_uvkeep_purge_in_effect () const
 
bool is_dir_stat_reporting_on () const
 
bool is_purge_plugin_set_up () const
 
void calculate_fractional_usages (long long du, long long fu, double &frac_du, double &frac_fu)
 
CkSumCheck_e get_cs_Chk () const
 
bool is_cschk_cache () const
 
bool is_cschk_net () const
 
bool is_cschk_any () const
 
bool is_cschk_both () const
 
bool does_cschk_have_missing_bits (CkSumCheck_e cks_on_file) const
 
bool should_uvkeep_purge (time_t delta) const
 

Public Attributes

bool m_hdfsmode
 flag for enabling block-level operation
 
bool m_allow_xrdpfc_command
 flag for enabling access to /xrdpfc-command/ functionality.
 
std::string m_username
 username passed to oss plugin
 
std::string m_data_space
 oss space for data files
 
std::string m_meta_space
 oss space for metadata files (cinfo)
 
long long m_diskTotalSpace
 total disk space on configured partition or oss space
 
long long m_diskUsageLWM
 cache purge - disk usage low water mark
 
long long m_diskUsageHWM
 cache purge - disk usage high water mark
 
long long m_fileUsageBaseline
 cache purge - files usage baseline
 
long long m_fileUsageNominal
 cache purge - files usage nominal
 
long long m_fileUsageMax
 cache purge - files usage maximum
 
int m_purgeInterval
 sleep interval between cache purges
 
int m_purgeColdFilesAge
 purge files older than this age
 
int m_purgeAgeBasedPeriod
 peform cold file / uvkeep purge every this many purge cycles
 
int m_accHistorySize
 max number of entries in access history part of cinfo file
 
std::set< std::string > m_dirStatsDirs
 directories for which stat reporting was requested
 
std::set< std::string > m_dirStatsDirGlobs
 directory globs for which stat reporting was requested
 
int m_dirStatsMaxDepth
 maximum depth for statistics write out
 
int m_dirStatsStoreDepth
 depth to which statistics should be collected
 
long long m_bufferSize
 prefetch buffer size, default 1MB
 
long long m_RamAbsAvailable
 available from configuration
 
int m_RamKeepStdBlocks
 number of standard-sized blocks kept after release
 
int m_wqueue_blocks
 maximum number of blocks written per write-queue loop
 
int m_wqueue_threads
 number of threads writing blocks to disk
 
int m_prefetch_max_blocks
 maximum number of blocks to prefetch per file
 
long long m_hdfsbsize
 used with m_hdfsmode, default 128MB
 
long long m_flushCnt
 nuber of unsynced blcoks on disk before flush is called
 
time_t m_cs_UVKeep
 unverified checksum cache keep
 
int m_cs_Chk
 Checksum check.
 
bool m_cs_ChkTLS
 Allow TLS.
 

Detailed Description

Contains parameters configurable from the xrootd config file.

Constructor & Destructor Documentation

◆ Configuration()

XrdPfc::Configuration::Configuration ( )

Member Function Documentation

◆ are_file_usage_limits_set()

bool XrdPfc::Configuration::are_file_usage_limits_set ( ) const
inline

References m_fileUsageMax.

◆ calculate_fractional_usages()

void XrdPfc::Configuration::calculate_fractional_usages ( long long  du,
long long  fu,
double &  frac_du,
double &  frac_fu 
)

◆ does_cschk_have_missing_bits()

bool XrdPfc::Configuration::does_cschk_have_missing_bits ( CkSumCheck_e  cks_on_file) const
inline

References m_cs_Chk.

◆ get_cs_Chk()

CkSumCheck_e XrdPfc::Configuration::get_cs_Chk ( ) const
inline

References m_cs_Chk.

◆ is_age_based_purge_in_effect()

bool XrdPfc::Configuration::is_age_based_purge_in_effect ( ) const
inline

References m_purgeColdFilesAge.

◆ is_cschk_any()

bool XrdPfc::Configuration::is_cschk_any ( ) const
inline

References XrdPfc::CSChk_Both, and m_cs_Chk.

◆ is_cschk_both()

bool XrdPfc::Configuration::is_cschk_both ( ) const
inline

References XrdPfc::CSChk_Both, and m_cs_Chk.

◆ is_cschk_cache()

bool XrdPfc::Configuration::is_cschk_cache ( ) const
inline

References XrdPfc::CSChk_Cache, and m_cs_Chk.

◆ is_cschk_net()

bool XrdPfc::Configuration::is_cschk_net ( ) const
inline

References XrdPfc::CSChk_Net, and m_cs_Chk.

◆ is_dir_stat_reporting_on()

bool XrdPfc::Configuration::is_dir_stat_reporting_on ( ) const
inline

◆ is_purge_plugin_set_up()

bool XrdPfc::Configuration::is_purge_plugin_set_up ( ) const
inline

◆ is_uvkeep_purge_in_effect()

bool XrdPfc::Configuration::is_uvkeep_purge_in_effect ( ) const
inline

References m_cs_UVKeep.

◆ should_uvkeep_purge()

bool XrdPfc::Configuration::should_uvkeep_purge ( time_t  delta) const
inline

References m_cs_UVKeep.

Member Data Documentation

◆ m_accHistorySize

int XrdPfc::Configuration::m_accHistorySize

max number of entries in access history part of cinfo file

◆ m_allow_xrdpfc_command

bool XrdPfc::Configuration::m_allow_xrdpfc_command

flag for enabling access to /xrdpfc-command/ functionality.

◆ m_bufferSize

long long XrdPfc::Configuration::m_bufferSize

prefetch buffer size, default 1MB

◆ m_cs_Chk

int XrdPfc::Configuration::m_cs_Chk

◆ m_cs_ChkTLS

bool XrdPfc::Configuration::m_cs_ChkTLS

Allow TLS.

◆ m_cs_UVKeep

time_t XrdPfc::Configuration::m_cs_UVKeep

unverified checksum cache keep

Referenced by is_uvkeep_purge_in_effect(), and should_uvkeep_purge().

◆ m_data_space

std::string XrdPfc::Configuration::m_data_space

oss space for data files

◆ m_dirStatsDirGlobs

std::set<std::string> XrdPfc::Configuration::m_dirStatsDirGlobs

directory globs for which stat reporting was requested

Referenced by is_dir_stat_reporting_on().

◆ m_dirStatsDirs

std::set<std::string> XrdPfc::Configuration::m_dirStatsDirs

directories for which stat reporting was requested

Referenced by is_dir_stat_reporting_on().

◆ m_dirStatsMaxDepth

int XrdPfc::Configuration::m_dirStatsMaxDepth

maximum depth for statistics write out

Referenced by is_dir_stat_reporting_on().

◆ m_dirStatsStoreDepth

int XrdPfc::Configuration::m_dirStatsStoreDepth

depth to which statistics should be collected

◆ m_diskTotalSpace

long long XrdPfc::Configuration::m_diskTotalSpace

total disk space on configured partition or oss space

◆ m_diskUsageHWM

long long XrdPfc::Configuration::m_diskUsageHWM

cache purge - disk usage high water mark

◆ m_diskUsageLWM

long long XrdPfc::Configuration::m_diskUsageLWM

cache purge - disk usage low water mark

◆ m_fileUsageBaseline

long long XrdPfc::Configuration::m_fileUsageBaseline

cache purge - files usage baseline

◆ m_fileUsageMax

long long XrdPfc::Configuration::m_fileUsageMax

cache purge - files usage maximum

Referenced by are_file_usage_limits_set().

◆ m_fileUsageNominal

long long XrdPfc::Configuration::m_fileUsageNominal

cache purge - files usage nominal

◆ m_flushCnt

long long XrdPfc::Configuration::m_flushCnt

nuber of unsynced blcoks on disk before flush is called

◆ m_hdfsbsize

long long XrdPfc::Configuration::m_hdfsbsize

used with m_hdfsmode, default 128MB

◆ m_hdfsmode

bool XrdPfc::Configuration::m_hdfsmode

flag for enabling block-level operation

◆ m_meta_space

std::string XrdPfc::Configuration::m_meta_space

oss space for metadata files (cinfo)

◆ m_prefetch_max_blocks

int XrdPfc::Configuration::m_prefetch_max_blocks

maximum number of blocks to prefetch per file

◆ m_purgeAgeBasedPeriod

int XrdPfc::Configuration::m_purgeAgeBasedPeriod

peform cold file / uvkeep purge every this many purge cycles

◆ m_purgeColdFilesAge

int XrdPfc::Configuration::m_purgeColdFilesAge

purge files older than this age

Referenced by is_age_based_purge_in_effect().

◆ m_purgeInterval

int XrdPfc::Configuration::m_purgeInterval

sleep interval between cache purges

◆ m_RamAbsAvailable

long long XrdPfc::Configuration::m_RamAbsAvailable

available from configuration

◆ m_RamKeepStdBlocks

int XrdPfc::Configuration::m_RamKeepStdBlocks

number of standard-sized blocks kept after release

◆ m_username

std::string XrdPfc::Configuration::m_username

username passed to oss plugin

◆ m_wqueue_blocks

int XrdPfc::Configuration::m_wqueue_blocks

maximum number of blocks written per write-queue loop

◆ m_wqueue_threads

int XrdPfc::Configuration::m_wqueue_threads

number of threads writing blocks to disk


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