Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
e267869a
Commit
e267869a
authored
Oct 30, 2014
by
Eric Cano
Browse files
Fixes to statistcs printing
parent
11f96763
Changes
11
Hide whitespace changes
Inline
Side-by-side
castor/log/LogContext.hpp
View file @
e267869a
...
...
@@ -161,7 +161,7 @@ class ScopedParamContainer{
return
*
this
;
}
ScopedParamContainer
&
add
Timing
(
const
std
::
string
&
s
,
double
t
){
ScopedParamContainer
&
add
SnprintfDouble
(
const
std
::
string
&
s
,
double
t
){
char
buf
[
100
];
std
::
snprintf
(
buf
,
sizeof
(
buf
),
"%f"
,
t
);
m_context
.
pushOrReplace
(
Param
(
s
,
buf
));
...
...
castor/tape/tapeserver/daemon/DiskReadTask.cpp
View file @
e267869a
...
...
@@ -163,14 +163,14 @@ void DiskReadTask::circulateAllBlocks(size_t fromBlockId, MemBlock * mb){
//------------------------------------------------------------------------------
void
DiskReadTask
::
logWithStat
(
int
level
,
const
std
::
string
&
msg
,
log
::
LogContext
&
lc
){
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
Timing
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
Timing
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
Timing
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
Timing
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
Timing
(
"checkingErrorTime"
,
m_stats
.
checkingErrorTime
)
.
add
Timing
(
"openingTime"
,
m_stats
.
openingTime
)
.
add
Timing
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
(
"filePayloadTransferSpeedMBps"
,
params
.
add
SnprintfDouble
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
SnprintfDouble
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
SnprintfDouble
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
SnprintfDouble
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
SnprintfDouble
(
"checkingErrorTime"
,
m_stats
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"openingTime"
,
m_stats
.
openingTime
)
.
add
SnprintfDouble
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
SnprintfDouble
(
"filePayloadTransferSpeedMBps"
,
m_stats
.
totalTime
?
1.0
*
m_stats
.
dataVolume
/
1000
/
1000
/
m_stats
.
totalTime
:
0
)
.
add
(
"FILEID"
,
m_migratedFile
->
fileid
())
.
add
(
"path"
,
m_migratedFile
->
path
());
...
...
castor/tape/tapeserver/daemon/DiskReadThreadPool.cpp
View file @
e267869a
...
...
@@ -131,14 +131,14 @@ void DiskReadThreadPool::addThreadStats(const DiskStats& other){
void
DiskReadThreadPool
::
logWithStat
(
int
level
,
const
std
::
string
&
message
){
m_pooldStat
.
totalTime
=
m_totalTime
.
secs
();
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
Timing
(
"poolTransferTime"
,
m_pooldStat
.
transferTime
)
.
add
Timing
(
"poolWaitFreeMemoryTime"
,
m_pooldStat
.
waitFreeMemoryTime
)
.
add
Timing
(
"poolCheckingErrorTime"
,
m_pooldStat
.
checkingErrorTime
)
.
add
Timing
(
"poolOpeningTime"
,
m_pooldStat
.
openingTime
)
.
add
Timing
(
"poolRealTime"
,
m_pooldStat
.
totalTime
)
params
.
add
SnprintfDouble
(
"poolTransferTime"
,
m_pooldStat
.
transferTime
)
.
add
SnprintfDouble
(
"poolWaitFreeMemoryTime"
,
m_pooldStat
.
waitFreeMemoryTime
)
.
add
SnprintfDouble
(
"poolCheckingErrorTime"
,
m_pooldStat
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"poolOpeningTime"
,
m_pooldStat
.
openingTime
)
.
add
SnprintfDouble
(
"poolRealTime"
,
m_pooldStat
.
totalTime
)
.
add
(
"poolFileCount"
,
m_pooldStat
.
filesCount
)
.
add
(
"poolDataVolume
InMB"
,
1.0
*
m_pooldStat
.
dataVolume
/
1000
/
1000
)
.
add
(
"AveragePoolPayloadTransferSpeedMBps"
,
.
add
(
"poolDataVolume
"
,
m_pooldStat
.
dataVolume
)
.
add
SnprintfDouble
(
"AveragePoolPayloadTransferSpeedMBps"
,
m_pooldStat
.
totalTime
?
1.0
*
m_pooldStat
.
dataVolume
/
1000
/
1000
/
m_pooldStat
.
totalTime
:
0
);
m_lc
.
log
(
level
,
message
);
}
...
...
@@ -189,15 +189,15 @@ void DiskReadThreadPool::DiskReadWorkerThread::run() {
void
DiskReadThreadPool
::
DiskReadWorkerThread
::
logWithStat
(
int
level
,
const
std
::
string
&
message
){
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
Timing
(
"threadTransferTime"
,
m_threadStat
.
transferTime
)
.
add
Timing
(
"threadWaitFreeMemoryTime"
,
m_threadStat
.
waitFreeMemoryTime
)
.
add
Timing
(
"threadCheckingErrorTime"
,
m_threadStat
.
checkingErrorTime
)
.
add
Timing
(
"threadOpeningTime"
,
m_threadStat
.
openingTime
)
.
add
Timing
(
"threadTotalTime"
,
m_threadStat
.
totalTime
)
.
add
(
"threaDataVolumeInMB"
,
1.0
*
m_threadStat
.
dataVolume
/
1000
/
1000
)
.
add
(
"threadPayloadTransferSpeedMBps"
,
params
.
add
SnprintfDouble
(
"threadTransferTime"
,
m_threadStat
.
transferTime
)
.
add
SnprintfDouble
(
"threadWaitFreeMemoryTime"
,
m_threadStat
.
waitFreeMemoryTime
)
.
add
SnprintfDouble
(
"threadCheckingErrorTime"
,
m_threadStat
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"threadOpeningTime"
,
m_threadStat
.
openingTime
)
.
add
SnprintfDouble
(
"threadTotalTime"
,
m_threadStat
.
totalTime
)
.
add
SnprintfDouble
(
"threaDataVolumeInMB"
,
1.0
*
m_threadStat
.
dataVolume
/
1000
/
1000
)
.
add
SnprintfDouble
(
"threadPayloadTransferSpeedMBps"
,
m_threadStat
.
totalTime
?
1.0
*
m_threadStat
.
dataVolume
/
1000
/
1000
/
m_threadStat
.
totalTime
:
0
)
.
add
Timing
(
"totalTime"
,
m_threadStat
.
totalTime
);
.
add
SnprintfDouble
(
"totalTime"
,
m_threadStat
.
totalTime
);
m_lc
.
log
(
level
,
message
);
}
}}}}
...
...
castor/tape/tapeserver/daemon/DiskWriteTask.cpp
View file @
e267869a
...
...
@@ -206,15 +206,15 @@ const DiskStats DiskWriteTask::getTaskStats() const{
//------------------------------------------------------------------------------
void
DiskWriteTask
::
logWithStat
(
int
level
,
const
std
::
string
&
msg
,
log
::
LogContext
&
lc
){
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
Timing
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
Timing
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
Timing
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
Timing
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
Timing
(
"checkingErrorTime"
,
m_stats
.
checkingErrorTime
)
.
add
Timing
(
"openingTime"
,
m_stats
.
openingTime
)
.
add
Timing
(
"closingTime"
,
m_stats
.
closingTime
)
.
add
Timing
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
(
"filePayloadTransferSpeedMBps"
,
params
.
add
SnprintfDouble
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
SnprintfDouble
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
SnprintfDouble
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
SnprintfDouble
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
SnprintfDouble
(
"checkingErrorTime"
,
m_stats
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"openingTime"
,
m_stats
.
openingTime
)
.
add
SnprintfDouble
(
"closingTime"
,
m_stats
.
closingTime
)
.
add
SnprintfDouble
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
SnprintfDouble
(
"filePayloadTransferSpeedMBps"
,
m_stats
.
totalTime
?
1.0
*
m_stats
.
dataVolume
/
1000
/
1000
/
m_stats
.
totalTime
:
0
)
.
add
(
"FILEID"
,
m_recallingFile
->
fileid
())
.
add
(
"path"
,
m_recallingFile
->
path
());
...
...
castor/tape/tapeserver/daemon/DiskWriteThreadPool.cpp
View file @
e267869a
...
...
@@ -123,18 +123,18 @@ void DiskWriteThreadPool::addThreadStats(const DiskStats& other){
void
DiskWriteThreadPool
::
logWithStat
(
int
level
,
const
std
::
string
&
message
){
m_pooldStat
.
totalTime
=
m_totalTime
.
secs
();
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
Timing
(
"poolTransferTime"
,
m_pooldStat
.
transferTime
)
.
add
Timing
(
"poolChecksumingTime"
,
m_pooldStat
.
checksumingTime
)
.
add
Timing
(
"poolWaitDataTime"
,
m_pooldStat
.
waitDataTime
)
.
add
Timing
(
"poolWaitReportingTime"
,
m_pooldStat
.
waitReportingTime
)
.
add
Timing
(
"poolCheckingErrorTime"
,
m_pooldStat
.
checkingErrorTime
)
.
add
Timing
(
"poolOpeningTime"
,
m_pooldStat
.
openingTime
)
.
add
Timing
(
"poolClosingTime"
,
m_pooldStat
.
closingTime
)
.
add
Timing
(
"poolRealTime"
,
m_pooldStat
.
totalTime
)
params
.
add
SnprintfDouble
(
"poolTransferTime"
,
m_pooldStat
.
transferTime
)
.
add
SnprintfDouble
(
"poolChecksumingTime"
,
m_pooldStat
.
checksumingTime
)
.
add
SnprintfDouble
(
"poolWaitDataTime"
,
m_pooldStat
.
waitDataTime
)
.
add
SnprintfDouble
(
"poolWaitReportingTime"
,
m_pooldStat
.
waitReportingTime
)
.
add
SnprintfDouble
(
"poolCheckingErrorTime"
,
m_pooldStat
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"poolOpeningTime"
,
m_pooldStat
.
openingTime
)
.
add
SnprintfDouble
(
"poolClosingTime"
,
m_pooldStat
.
closingTime
)
.
add
SnprintfDouble
(
"poolRealTime"
,
m_pooldStat
.
totalTime
)
.
add
(
"poolFileCount"
,
m_pooldStat
.
filesCount
)
.
add
(
"poolDataVolume
InMB"
,
1.0
*
m_pooldStat
.
dataVolume
/
1024
/
1024
)
.
add
(
"AveragePoolPayloadTransferSpeedMBps"
,
m_pooldStat
.
totalTime
?
1.0
*
m_pooldStat
.
dataVolume
/
1000
/
1000
/
m_pooldStat
.
t
ransfer
Time
:
0
);
.
add
(
"poolDataVolume
"
,
m_pooldStat
.
dataVolume
)
.
add
SnprintfDouble
(
"AveragePoolPayloadTransferSpeedMBps"
,
m_pooldStat
.
totalTime
?
1.0
*
m_pooldStat
.
dataVolume
/
1000
/
1000
/
m_pooldStat
.
t
otal
Time
:
0
);
m_lc
.
log
(
level
,
message
);
}
//------------------------------------------------------------------------------
...
...
@@ -192,14 +192,14 @@ void DiskWriteThreadPool::DiskWriteWorkerThread::run() {
void
DiskWriteThreadPool
::
DiskWriteWorkerThread
::
logWithStat
(
int
level
,
const
std
::
string
&
msg
)
{
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
Timing
(
"threadTransferTime"
,
m_threadStat
.
transferTime
)
.
add
Timing
(
"threadChecksumingTime"
,
m_threadStat
.
checksumingTime
)
.
add
Timing
(
"threadWaitDataTime"
,
m_threadStat
.
waitDataTime
)
.
add
Timing
(
"threadWaitReportingTime"
,
m_threadStat
.
waitReportingTime
)
.
add
Timing
(
"threadCheckingErrorTime"
,
m_threadStat
.
checkingErrorTime
)
.
add
Timing
(
"threadOpeningTime"
,
m_threadStat
.
openingTime
)
.
add
Timing
(
"threadClosingTime"
,
m_threadStat
.
closingTime
)
.
add
Timing
(
"threadTotalTime"
,
m_threadStat
.
totalTime
)
params
.
add
SnprintfDouble
(
"threadTransferTime"
,
m_threadStat
.
transferTime
)
.
add
SnprintfDouble
(
"threadChecksumingTime"
,
m_threadStat
.
checksumingTime
)
.
add
SnprintfDouble
(
"threadWaitDataTime"
,
m_threadStat
.
waitDataTime
)
.
add
SnprintfDouble
(
"threadWaitReportingTime"
,
m_threadStat
.
waitReportingTime
)
.
add
SnprintfDouble
(
"threadCheckingErrorTime"
,
m_threadStat
.
checkingErrorTime
)
.
add
SnprintfDouble
(
"threadOpeningTime"
,
m_threadStat
.
openingTime
)
.
add
SnprintfDouble
(
"threadClosingTime"
,
m_threadStat
.
closingTime
)
.
add
SnprintfDouble
(
"threadTotalTime"
,
m_threadStat
.
totalTime
)
.
add
(
"threaDataVolumeInMB"
,
1.0
*
m_threadStat
.
dataVolume
/
1000
/
1000
)
.
add
(
"threadFileCount"
,
m_threadStat
.
filesCount
)
.
add
(
"threadPayloadTransferSpeedMBps"
,
...
...
castor/tape/tapeserver/daemon/TapeReadSingleThread.cpp
View file @
e267869a
...
...
@@ -148,7 +148,7 @@ void castor::tape::tapeserver::daemon::TapeReadSingleThread::run() {
m_stats
.
mountTime
+=
timer
.
secs
(
castor
::
utils
::
Timer
::
resetCounter
);
{
castor
::
log
::
ScopedParamContainer
scoped
(
m_logContext
);
scoped
.
add
Timing
(
"mountTime"
,
m_stats
.
mountTime
);
scoped
.
add
SnprintfDouble
(
"mountTime"
,
m_stats
.
mountTime
);
m_logContext
.
log
(
LOG_INFO
,
"Tape mounted and drive ready"
);
}
// Then we have to initialise the tape read session
...
...
@@ -157,7 +157,7 @@ void castor::tape::tapeserver::daemon::TapeReadSingleThread::run() {
//and then report
{
castor
::
log
::
ScopedParamContainer
scoped
(
m_logContext
);
scoped
.
add
Timing
(
"positionTime"
,
m_stats
.
positionTime
);
scoped
.
add
SnprintfDouble
(
"positionTime"
,
m_stats
.
positionTime
);
m_logContext
.
log
(
LOG_INFO
,
"Tape read session session successfully started"
);
}
m_initialProcess
.
tapeMountedForRead
();
...
...
@@ -221,16 +221,15 @@ void castor::tape::tapeserver::daemon::TapeReadSingleThread::logWithStat(
int
level
,
const
std
::
string
&
msg
,
log
::
ScopedParamContainer
&
params
)
{
params
.
add
(
"type"
,
"read"
)
.
add
(
"VID"
,
m_volInfo
.
vid
)
.
addTiming
(
"mountTime"
,
m_stats
.
mountTime
)
.
addTiming
(
"positionTime"
,
m_stats
.
positionTime
)
.
addTiming
(
"waitInstructionsTime"
,
m_stats
.
waitInstructionsTime
)
.
addTiming
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
addTiming
(
"transferTime"
,
m_stats
.
transferTime
)
.
addTiming
(
"waitFreeMemoryTime"
,
m_stats
.
waitFreeMemoryTime
)
.
addTiming
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
addTiming
(
"unloadTime"
,
m_stats
.
unloadTime
)
.
addTiming
(
"unmountTime"
,
m_stats
.
unmountTime
)
.
addTiming
(
"totalTime"
,
m_stats
.
totalTime
)
.
addSnprintfDouble
(
"mountTime"
,
m_stats
.
mountTime
)
.
addSnprintfDouble
(
"positionTime"
,
m_stats
.
positionTime
)
.
addSnprintfDouble
(
"waitInstructionsTime"
,
m_stats
.
waitInstructionsTime
)
.
addSnprintfDouble
(
"transferTime"
,
m_stats
.
transferTime
)
.
addSnprintfDouble
(
"waitFreeMemoryTime"
,
m_stats
.
waitFreeMemoryTime
)
.
addSnprintfDouble
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
addSnprintfDouble
(
"unloadTime"
,
m_stats
.
unloadTime
)
.
addSnprintfDouble
(
"unmountTime"
,
m_stats
.
unmountTime
)
.
addSnprintfDouble
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
(
"dataVolume"
,
m_stats
.
dataVolume
)
.
add
(
"headerVolume"
,
m_stats
.
headerVolume
)
.
add
(
"files"
,
m_stats
.
filesCount
)
...
...
castor/tape/tapeserver/daemon/TapeReadTask.hpp
View file @
e267869a
...
...
@@ -135,11 +135,11 @@ public:
// Hardcoded header size for lack of a better mechanism
// Head + trailer, 3 * 80 bytes each
localStats
.
headerVolume
=
(
2
*
3
*
80
);
params
.
add
Timing
(
"positionTime"
,
localStats
.
positionTime
)
.
add
Timing
(
"transferTime"
,
localStats
.
transferTime
)
.
add
Timing
(
"waitFreeMemoryTime"
,
localStats
.
waitFreeMemoryTime
)
.
add
Timing
(
"waitReportingTime"
,
localStats
.
waitReportingTime
)
.
add
Timing
(
"totalTime"
,
localStats
.
totalTime
)
params
.
add
SnprintfDouble
(
"positionTime"
,
localStats
.
positionTime
)
.
add
SnprintfDouble
(
"transferTime"
,
localStats
.
transferTime
)
.
add
SnprintfDouble
(
"waitFreeMemoryTime"
,
localStats
.
waitFreeMemoryTime
)
.
add
SnprintfDouble
(
"waitReportingTime"
,
localStats
.
waitReportingTime
)
.
add
SnprintfDouble
(
"totalTime"
,
localStats
.
totalTime
)
.
add
(
"dataVolume"
,
localStats
.
dataVolume
)
.
add
(
"driveTransferSpeedMBps"
,
localStats
.
totalTime
?
(
1.0
*
localStats
.
dataVolume
+
1.0
*
localStats
.
headerVolume
)
...
...
castor/tape/tapeserver/daemon/TapeSingleThreadInterface.hpp
View file @
e267869a
...
...
@@ -118,7 +118,7 @@ protected:
castor
::
utils
::
Timer
timer
;
m_mc
.
mountTapeReadOnly
(
m_volInfo
.
vid
,
m_drive
.
librarySlot
.
str
());
const
std
::
string
modeAsString
=
"R"
;
scoped
.
add
Timing
(
"MCMountTime"
,
timer
.
secs
()).
add
(
"mode"
,
modeAsString
);
scoped
.
add
SnprintfDouble
(
"MCMountTime"
,
timer
.
secs
()).
add
(
"mode"
,
modeAsString
);
if
(
mediachanger
::
TAPE_LIBRARY_TYPE_MANUAL
!=
m_drive
.
librarySlot
.
getLibraryType
())
{
m_logContext
.
log
(
LOG_INFO
,
"Tape mounted for read-only access"
);
...
...
@@ -144,7 +144,7 @@ protected:
castor
::
utils
::
Timer
timer
;
m_mc
.
mountTapeReadWrite
(
m_volInfo
.
vid
,
m_drive
.
librarySlot
.
str
());
const
std
::
string
modeAsString
=
"RW"
;
scoped
.
add
Timing
(
"MCMountTime"
,
timer
.
secs
()).
add
(
"mode"
,
modeAsString
);
scoped
.
add
SnprintfDouble
(
"MCMountTime"
,
timer
.
secs
()).
add
(
"mode"
,
modeAsString
);
m_logContext
.
log
(
LOG_INFO
,
"Tape mounted for read/write access"
);
}
catch
(
castor
::
exception
::
Exception
&
ex
)
{
...
...
castor/tape/tapeserver/daemon/TapeWriteSingleThread.cpp
View file @
e267869a
...
...
@@ -94,7 +94,7 @@ tapeFlush(const std::string& message,uint64_t bytes,uint64_t files,
log
::
ScopedParamContainer
params
(
m_logContext
);
params
.
add
(
"files"
,
files
)
.
add
(
"bytes"
,
bytes
)
.
add
Timing
(
"flushTime"
,
flushTime
);
.
add
SnprintfDouble
(
"flushTime"
,
flushTime
);
m_logContext
.
log
(
LOG_INFO
,
message
);
m_stats
.
flushTime
+=
flushTime
;
...
...
@@ -148,7 +148,7 @@ void castor::tape::tapeserver::daemon::TapeWriteSingleThread::run() {
m_stats
.
mountTime
+=
timer
.
secs
(
castor
::
utils
::
Timer
::
resetCounter
);
{
castor
::
log
::
ScopedParamContainer
scoped
(
m_logContext
);
scoped
.
add
Timing
(
"mountTime"
,
m_stats
.
mountTime
);
scoped
.
add
SnprintfDouble
(
"mountTime"
,
m_stats
.
mountTime
);
m_logContext
.
log
(
LOG_INFO
,
"Tape mounted and drive ready"
);
}
...
...
@@ -157,7 +157,7 @@ void castor::tape::tapeserver::daemon::TapeWriteSingleThread::run() {
m_stats
.
positionTime
+=
timer
.
secs
(
castor
::
utils
::
Timer
::
resetCounter
);
{
castor
::
log
::
ScopedParamContainer
scoped
(
m_logContext
);
scoped
.
add
Timing
(
"positionTime"
,
m_stats
.
positionTime
);
scoped
.
add
SnprintfDouble
(
"positionTime"
,
m_stats
.
positionTime
);
m_logContext
.
log
(
LOG_INFO
,
"Write session initialised, tape VID checked and drive positioned for writing"
);
}
...
...
@@ -255,17 +255,17 @@ void castor::tape::tapeserver::daemon::TapeWriteSingleThread::logWithStats(
int
level
,
const
std
::
string
&
msg
,
log
::
ScopedParamContainer
&
params
){
params
.
add
(
"type"
,
"write"
)
.
add
(
"VID"
,
m_volInfo
.
vid
)
.
add
Timing
(
"mountTime"
,
m_stats
.
mountTime
)
.
add
Timing
(
"positionTime"
,
m_stats
.
positionTime
)
.
add
Timing
(
"waitInstructionsTime"
,
m_stats
.
waitInstructionsTime
)
.
add
Timing
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
Timing
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
Timing
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
Timing
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
Timing
(
"flushTime"
,
m_stats
.
flushTime
)
.
add
Timing
(
"unloadTime"
,
m_stats
.
unloadTime
)
.
add
Timing
(
"unmountTime"
,
m_stats
.
unmountTime
)
.
add
Timing
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
SnprintfDouble
(
"mountTime"
,
m_stats
.
mountTime
)
.
add
SnprintfDouble
(
"positionTime"
,
m_stats
.
positionTime
)
.
add
SnprintfDouble
(
"waitInstructionsTime"
,
m_stats
.
waitInstructionsTime
)
.
add
SnprintfDouble
(
"checksumingTime"
,
m_stats
.
checksumingTime
)
.
add
SnprintfDouble
(
"transferTime"
,
m_stats
.
transferTime
)
.
add
SnprintfDouble
(
"waitDataTime"
,
m_stats
.
waitDataTime
)
.
add
SnprintfDouble
(
"waitReportingTime"
,
m_stats
.
waitReportingTime
)
.
add
SnprintfDouble
(
"flushTime"
,
m_stats
.
flushTime
)
.
add
SnprintfDouble
(
"unloadTime"
,
m_stats
.
unloadTime
)
.
add
SnprintfDouble
(
"unmountTime"
,
m_stats
.
unmountTime
)
.
add
SnprintfDouble
(
"totalTime"
,
m_stats
.
totalTime
)
.
add
(
"dataVolume"
,
m_stats
.
dataVolume
)
.
add
(
"headerVolume"
,
m_stats
.
headerVolume
)
.
add
(
"files"
,
m_stats
.
filesCount
)
...
...
castor/tape/tapeserver/daemon/TapeWriteTask.cpp
View file @
e267869a
...
...
@@ -262,11 +262,11 @@ namespace daemon {
void
TapeWriteTask
::
logWithStats
(
int
level
,
const
std
::
string
&
msg
,
log
::
LogContext
&
lc
)
const
{
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
Timing
(
"transferTime"
,
m_taskStats
.
transferTime
)
.
add
Timing
(
"checksumingTime"
,
m_taskStats
.
checksumingTime
)
.
add
Timing
(
"waitDataTime"
,
m_taskStats
.
waitDataTime
)
.
add
Timing
(
"waitReportingTime"
,
m_taskStats
.
waitReportingTime
)
.
add
Timing
(
"totalTime"
,
m_taskStats
.
totalTime
)
params
.
add
SnprintfDouble
(
"transferTime"
,
m_taskStats
.
transferTime
)
.
add
SnprintfDouble
(
"checksumingTime"
,
m_taskStats
.
checksumingTime
)
.
add
SnprintfDouble
(
"waitDataTime"
,
m_taskStats
.
waitDataTime
)
.
add
SnprintfDouble
(
"waitReportingTime"
,
m_taskStats
.
waitReportingTime
)
.
add
SnprintfDouble
(
"totalTime"
,
m_taskStats
.
totalTime
)
.
add
(
"dataVolume"
,
m_taskStats
.
dataVolume
)
.
add
(
"headerVolume"
,
m_taskStats
.
headerVolume
)
.
add
(
"driveTransferSpeedMBps"
,
m_taskStats
.
totalTime
?
...
...
castor/tape/tapeserver/daemon/TaskWatchDog.hpp
View file @
e267869a
...
...
@@ -260,7 +260,7 @@ private:
virtual
void
logStuckFile
()
{
castor
::
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
Timing
(
"TimeSinceLastBlockMove"
,
m_blockMovementTimer
.
usecs
())
params
.
add
SnprintfDouble
(
"TimeSinceLastBlockMove"
,
m_blockMovementTimer
.
usecs
())
.
add
(
"Path"
,
m_file
.
path
())
.
add
(
"FILEID"
,
m_file
.
fileid
())
.
add
(
"fSeq"
,
m_file
.
fseq
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment