Skip to content

Commit

Permalink
Second rebase of alja/purge-main-rb1 onto master / 5.7.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio authored and osschar committed Dec 5, 2024
1 parent 8a4ca75 commit 3de56ee
Show file tree
Hide file tree
Showing 37 changed files with 3,432 additions and 1,305 deletions.
1 change: 0 additions & 1 deletion docs/ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
======
XRootD
======

Expand Down
1 change: 1 addition & 0 deletions src/XrdHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ set( XROOTD_PUBLIC_HEADERS
XrdNet/XrdNetSocket.hh
XrdOuc/XrdOucBuffer.hh
XrdOuc/XrdOucCRC.hh
XrdOuc/XrdOucCache.hh
XrdOuc/XrdOucCacheCM.hh
XrdOuc/XrdOucCacheStats.hh
XrdOuc/XrdOucCallBack.hh
Expand Down
2 changes: 2 additions & 0 deletions src/XrdOss/XrdOssAt.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
/* specific prior written permission of the institution or contributor. */
/******************************************************************************/

#include "XrdOuc/XrdOucEnv.hh"

#include <cstdint>
#include <sys/types.h>

Expand Down
38 changes: 37 additions & 1 deletion src/XrdPfc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
set( LIB_XRD_FILECACHE XrdPfc-${PLUGIN_VERSION} )
set( LIB_XRD_FILECACHE_LEGACY XrdFileCache-${PLUGIN_VERSION} )
set( LIB_XRD_BLACKLIST XrdBlacklistDecision-${PLUGIN_VERSION} )
set( LIB_XRD_PURGEQUOTA XrdPfcPurgeQuota-${PLUGIN_VERSION} )

#-------------------------------------------------------------------------------
# Shared library version
Expand All @@ -15,11 +16,18 @@ set( LIB_XRD_BLACKLIST XrdBlacklistDecision-${PLUGIN_VERSION} )
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_FILECACHE}
MODULE
SHARED
XrdPfc/XrdPfcTypes.hh
XrdPfc/XrdPfc.cc XrdPfc/XrdPfc.hh
XrdPfc/XrdPfcConfiguration.cc
XrdPfc/XrdPfcDirState.cc XrdPfc/XrdPfcDirState.hh
XrdPfc/XrdPfcDirStateSnapshot.cc XrdPfc/XrdPfcDirStateSnapshot.hh
XrdPfc/XrdPfcFPurgeState.cc XrdPfc/XrdPfcFPurgeState.hh
XrdPfc/XrdPfcPurge.cc
XrdPfc/XrdPfcPurgePin.hh
XrdPfc/XrdPfcResourceMonitor.cc XrdPfc/XrdPfcResourceMonitor.hh
XrdPfc/XrdPfcPathParseTools.hh
XrdPfc/XrdPfcFsTraversal.cc XrdPfc/XrdPfcFsTraversal.hh
XrdPfc/XrdPfcCommand.cc
XrdPfc/XrdPfcFile.cc XrdPfc/XrdPfcFile.hh
XrdPfc/XrdPfcFSctl.cc XrdPfc/XrdPfcFSctl.hh
Expand Down Expand Up @@ -53,6 +61,21 @@ target_link_libraries(
XrdUtils
)

#-------------------------------------------------------------------------------
# The XrdPurgeQuota library
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_PURGEQUOTA}
MODULE
XrdPfc/XrdPfcPurgeQuota.cc)

target_link_libraries(
${LIB_XRD_PURGEQUOTA}
PRIVATE
XrdUtils
${LIB_XRD_FILECACHE}
)

#-------------------------------------------------------------------------------
# xrdpfc_print
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -81,6 +104,19 @@ install(
COMMAND ln -sf lib${LIB_XRD_FILECACHE}.so lib${LIB_XRD_FILECACHE_LEGACY}.so
WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} )" )

install(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcPurgePin.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcDirStateSnapshot.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcDirState.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcStats.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfc.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcFile.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcTypes.hh
${CMAKE_CURRENT_SOURCE_DIR}/XrdPfc/XrdPfcInfo.hh
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/xrootd/XrdPfc
)

install(
TARGETS ${LIB_XRD_BLACKLIST}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
Expand Down
8 changes: 4 additions & 4 deletions src/XrdPfc/README
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,24 @@ CONFIGURATION

pfc.blocksize: prefetch buffer size, default 1M

pfc.ram [bytes[g]]: maximum allowed RAM usage for caching proxy
pfc.ram [bytes[g]]: maximum allowed RAM usage for caching proxy

pfc.prefetch <n>: prefetch level, default is 10. Value zero disables prefetching.

pfc.diskusage <low> <hig> diskusage boundaries, can be specified relative in percantage or in g or T bytes

pfc.user <username>: username used by XrdOss plugin

pfc.filefragmentmode [fragmentsize <bytes>] -- enable prefetching a unit of a file,
pfc.filefragmentmode [fragmentsize <bytes>] -- enable prefetching a unit of a file,
with default block size

pfc.osslib <lpath> [<params>] path to alternative plign for output file system
pfc.osslib <lpath> [<params>] path to alternative plign for output file system

pfc.decisionlib <lpath> [<prams>] path to decision library and plugin parameters

pfc.trace <none|error|warning|info|debug|dump> default level is warning, xrootd option -d sets debug level

Examples
Examples

a) Enable proxy file prefetching:
pps.cachelib libXrdPfc.so
Expand Down
Loading

0 comments on commit 3de56ee

Please sign in to comment.