Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements in XrdFileCache configuration #173

Merged
merged 7 commits into from
Nov 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 19 additions & 18 deletions src/XrdFileCache/README
Original file line number Diff line number Diff line change
Expand Up @@ -112,36 +112,37 @@ Partial file block-based prefetching is enabled with option '-prefetchFileBlock'

CONFIGURATION

-bufferSize: prefetch buffer size, default 1M
pfc.cachedir <directory>: directory path to cache location

-NRamBuffersRead: number of in memmory cached blocks reserved for read tasks
pfc.blocksize: prefetch buffer size, default 1M

-NRamBuffersRead: number of in memmory cached blocks reserved for prefetch tasks
pfc.nread: number of in memory cached blocks reserved for read tasks

-hwm <fraction> / -lwm <fraction>: high / low watermarks for disk cache purge
operation (default 0.7 and 0.9)
pfc.nprefetch: number of in memory cached blocks reserved for prefetch tasks

-cacheDir <directory>: directory path to cache location
pfc.diskusage <lwm fraction> <hwm fraction>: high / low watermarks for disk cache
purge operation (default 0.7 and 0.9)

-user <username>: username required by the XrdOss plugin
pfc.user <username>: username used by XrdOss plugin

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

Options for block-based cache:
pfc.osslib <lpath> [<params>] path to alternative plign for output file system

-prefetchFileBlocks -- enable prefetching a unit of a file
pfc.decisionlib <lpath> [<prams>] path to decision library and plugin parameters

-blockSize <size>: default size of a file-block on the local disk
Examples

a) Enable proxy file prefetching:
pps.cachelib libXrdFileCache.so
pfc.cachedir /data/xrd-file-cache
pfc.nprefetch 1

Examples:

pss.cachelib /home/alja/xrd/hdfs/xfc/src/libXrdFileCache.so
-user alja -NRamBuffersRead 4M -NRamBuffersPrefetch 1 -cacheDir /data/xrd-file-cache


pss.cachelib /home/alja/xrd/hdfs/xfc/src/libXrdFileCache.so
-user alja -cacheDir /data/hdfs-file-cache
-prefetchFileBlocks -blockSize 64M
b) enable file block mode, with block size 64 MB:
pss.cachelib libXrdFileCache.so
pfc.filefragmentmode fragmentsize 64m


//==============================================================================
Expand Down