updated sample configuration

This commit is contained in:
Manfred Klimt 2018-06-29 11:17:02 +02:00
parent 71d7f96944
commit cdcc8bd9ea
4 changed files with 19 additions and 11 deletions

View file

@ -91,11 +91,10 @@ XCodecCacheCOSS::~XCodecCacheCOSS()
delete[] directory_;
INFO(log_) << "Stats: ";
INFO(log_) << "\tLookups=" << stats_.lookups;
INFO(log_) << "\tHits=" << (stats_.found_1 + stats_.found_2) << " (" << stats_.found_1 << " + " << stats_.found_2 << ")";
if (stats_.lookups > 0)
INFO(log_) << "\tHit ratio=" << ((stats_.found_1 + stats_.found_2) * 100) / stats_.lookups << "%";
INFO(log_) << "Cache statistics: ";
INFO(log_) << "Lookups: " << stats_.lookups;
INFO(log_) << "Matches: " << (stats_.found_1 + stats_.found_2) << " (" << stats_.found_1 << " + " << stats_.found_2 << ")";
INFO(log_) << "File: " << file_path_;
DEBUG(log_) << "Closing coss file: " << file_path_;
DEBUG(log_) << "Serial: " << serial_number_;

View file

@ -89,8 +89,6 @@ using namespace std;
#define HEADER_ALIGNED_SIZE ROUND_UP(HEADER_ARRAY_SIZE + METADATA_SIZE, CACHE_ALIGNEMENT)
#define METADATA_PADDING (HEADER_ALIGNED_SIZE - HEADER_ARRAY_SIZE - METADATA_SIZE)
#define USING_XCODEC_CACHE_RECENT_WINDOW
struct COSSIndexEntry
{
uint64_t stripe_range : 48;