Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CacheS.C File Reference

#include <sys/types.h>
#include <dirent.h>
#include <time.h>
#include <unistd.h>
#include <Basics.H>
#include <FS.H>
#include <VestaLog.H>
#include <Recovery.H>
#include <VestaLogSeq.H>
#include <AtomicFile.H>
#include <FP.H>
#include <UniqueId.H>
#include <BitVector.H>
#include <CacheConfig.H>
#include <CacheIntf.H>
#include <Debug.H>
#include <PKPrefix.H>
#include <Timer.H>
#include <Model.H>
#include <PKEpoch.H>
#include <CacheIndex.H>
#include <Derived.H>
#include <FV.H>
#include <VestaVal.H>
#include <GraphLog.H>
#include <CacheConfigServer.H>
#include <Leases.H>
#include <CacheEntry.H>
#include <CacheLog.H>
#include <Intvl.H>
#include <VPKFile.H>
#include <VMultiPKFile.H>
#include "VCacheVersion.H"
#include "PKPrefixSeq.H"
#include "CacheS.H"

Go to the source code of this file.

Functions

void * CacheS_DoFreeMPKFiles (void *arg) throw ()
void * CacheS_DoDeletions (void *arg) throw ()
void * CacheS_CleanCacheLogWorker (void *arg) throw ()
void * CacheS_FlushWorker (void *arg) throw ()


Function Documentation

void* CacheS_CleanCacheLogWorker void *  arg  )  throw ()
 

Definition at line 2348 of file CacheS.C.

References CacheWorker::argsReady, CacheS::CleanCacheLog(), CacheWorker::cs, CacheWorker::Finish(), Basics::mutex::lock(), CacheWorker::mu, CacheS::RegisterIdleCleanWorker(), Basics::mutex::unlock(), Basics::cond::wait(), and CacheWorker::workToDo.

Referenced by CleanWorker::CleanWorker().

void* CacheS_DoDeletions void *  arg  )  throw ()
 

Definition at line 1178 of file CacheS.C.

References CacheS::AddToWeededMPKs(), CacheS::cacheLogMu, CacheS::ChkptUsedCIs(), CacheS::ClearStableHitFilter(), CacheS::debug, CacheS::deleting, CacheS::doDeleting, CacheS::hitFilter, PKPrefix::List::len, Debug::Lock(), Basics::mutex::lock(), CacheS::mpksToWeed, CacheS::mu, CacheS::nextMPKToWeed, CacheS::notDeleting, PKPrefix::List::pfx, CacheS::SetStableDeleting(), Basics::cond::signal(), Debug::Timestamp(), CacheS::TryCleanCacheLog(), Basics::mutex::unlock(), Debug::Unlock(), CacheS::VToSCache(), Basics::cond::wait(), and CacheIntf::WeederOps.

Referenced by CacheS::CacheS().

void* CacheS_DoFreeMPKFiles void *  arg  )  throw ()
 

Definition at line 556 of file CacheS.C.

References Sequence< Elem, elem_ptrfree >::addhi(), CacheS::allFlushWorkersDone, CacheS::cache, CacheS::cacheLogMu, CacheS::cnt, Config_FreeAggressively, Config_FreePauseDur, CacheS::debug, VMultiPKFile::Delete(), VPKFile::DeleteOldEntries(), VPKFile::Evict(), CacheS::evictedNamesEpochs, CacheS::FlushMPKFile(), VMultiPKFile::FlushPending(), VMultiPKFile::FlushRunning(), CacheS::freeMPKFileEpoch, Table< K, V >::Default::Init(), VPKFile::IsStableEmpty(), VMultiPKFile::IsStale(), VMultiPKFile::IsUnmodified(), Debug::Lock(), Basics::mutex::lock(), CacheIntf::MPKFileFlush, CacheS::mpkTbl, VPKFile::mu, CacheS::mu, SPKFile::NamesEpoch(), Table< K, V >::Iterator::Next(), CacheS::numActiveFlushWorkers, VMultiPKFile::NumVPKFiles(), SPKFile::OldEntries(), EntryState::oldEntryCnt, EntryState::oldPklSize, Basics::thread::pause(), VPKFile::ReadyForEviction(), VPKFile::ReadyForPurgeWarm(), Sequence< Elem, elem_ptrfree >::remhi(), Sequence< Elem, elem_ptrfree >::remlo(), Table< K, V >::Iterator::Reset(), Sequence< Elem, elem_ptrfree >::size(), CacheS::state, Debug::Timestamp(), CacheS::TryCleanCacheLog(), Debug::Unlock(), Basics::mutex::unlock(), VMultiPKFile::VPKFileTbl(), and Basics::cond::wait().

Referenced by CacheS::CacheS().

void* CacheS_FlushWorker void *  arg  )  throw ()
 

Definition at line 3165 of file CacheS.C.

References CacheWorker::argsReady, CacheWorker::cs, CacheWorker::Finish(), Basics::mutex::lock(), CacheWorker::mu, FlushWorker::pfx, CacheS::RegisterIdleFlushWorker(), Basics::mutex::unlock(), CacheS::VToSCache(), Basics::cond::wait(), and CacheWorker::workToDo.

Referenced by FlushWorker::FlushWorker().


Generated on Mon May 8 00:49:01 2006 for Vesta by  doxygen 1.4.2