From 330b5e8338ce8d5befae087d9f43bb1b1a2bdc78 Mon Sep 17 00:00:00 2001 From: Andreas Joachim Peters Date: Tue, 23 Jul 2024 09:28:14 +0200 Subject: [PATCH] XrdApps::Jcache: add average read and readv size to summary output --- src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh b/src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh index a81c49845b5..e055c9bbb0f 100644 --- a/src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh +++ b/src/XrdApps/XrdClJCachePlugin/file/CacheStats.hh @@ -318,6 +318,13 @@ struct CacheStats { "-------------------------------------------------------------------" "---- #" << std::endl; + oss << "# JCache : avg. bytes read : " << (sStats.readOps.load()?(sStats.bytesCached.load() / sStats.readOps.load()):0.0) << std::endl; + oss << "# JCache : avg. bytes readv : " << (sStats.readVOps.load()?(sStats.bytesCachedV.load() / sStats.readVOps.load()):0.0) << std::endl; + oss << "# " + "-------------------------------------------------------------------" + "---- #" + << std::endl; + oss << "# JCache : open files read : " << sStats.nreadfiles.load() << std::endl; oss << "# JCache : open unique f. read : " << sStats.UniqueUrls()