Look for "xact_log_size_dist:" in the ruby stats file. That should give
statistics about the log sizes (in bytes) for the transactional program,
including the max log size.
Jayaram
Andreas Sæbjørnsen wrote:
Hi,
I am interested in measuring the maximum simulation log size in LogTM.
I notice that TransactionVersionManager has a variable of type int*
called m_logSize of size smt_threads. Would the total log size of the
LogTM log be equal to the sum of the elements in this array? What is
the units of this size?
If so, where would you recommend instrumenting the code in order to
find the largest total log size during one simulation? I was thinking
of adding a member variable m_totalLogSize in the class
TransactionVersionManager in 'ruby/log_tm/TransactionVersionManger.*'
of type int which stores the current largest log size. The value for
the largest log size would be computed in the beginning of
void TransactionVersionManager::commitTransaction(int thread,
bool isOpen);
void TransactionVersionManager::restartTransaction(int thread,
int xact_level);
and if the computed value is the largest then m_totalLogSize variable
is updated (I only expect one instance of the class). Should I expect
this to do the trick? I appreciate any comments.
thanks,
Andreas
------------------------------------------------------------------------
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
|