store_swapout.cc
Go to the documentation of this file.
127 debugs(20, 3, "storeSwapOut: swapping out " << swap_buf_len << " bytes from " << mem->swapout.queue_offset);
void memoryOut(StoreEntry &, const bool preserveSwappable)
called to get rid of no longer needed entry data in RAM, if any
Definition: Controller.cc:594
virtual void finalizeSwapoutFailure(StoreEntry &)=0
abort the failed swapout that has been already noticed by Store
void storeIOWrite(StoreIOState::Pointer sio, char const *buf, size_t size, off_t offset, FREE *free_func)
Definition: store_io.cc:85
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
Definition: MemObject.cc:485
void transientsCompleteWriting(StoreEntry &)
marks the entry completed for collapsed requests
Definition: Controller.cc:640
bool mayStartSwapOut()
whether we may start writing to disk (now or in the future)
Definition: store_swapout.cc:336
int64_t accumulateMore(StoreEntry &) const
Definition: Controller.cc:485
static StoreIOState::STFNCB storeSwapOutFileNotify
Definition: store_swapout.cc:29
void STFNCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:41
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1891
mem_node * getBlockContainingLocation(int64_t location) const
Definition: stmem.cc:175
StoreIOState::Pointer storeCreate(StoreEntry *e, StoreIOState::STFNCB *file_callback, StoreIOState::STIOCB *close_callback, void *callback_data)
Definition: store_io.cc:25
const char * getSerialisedMetaData(size_t &length) const
Definition: store.cc:1730
void swapOutDecision(const MemObject::SwapOut::Decision &decision)
Definition: store.cc:1767
virtual void finalizeSwapoutSuccess(const StoreEntry &)=0
finalize the successful swapout that has been already noticed by Store
int64_t store_maxobjsize
static StoreIOState::STIOCB storeSwapOutFileClosed
Definition: store_swapout.cc:28
Definition: MemObject.h:33
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:51
Definition: Store.h:42
Decision
Decision states for StoreEntry::swapoutPossible() and related code.
Definition: MemObject.h:155
virtual bool write(char const *buf, size_t size, off_t offset, FREE *free_func)=0
Definition: mem_node.h:18
struct StatCounters::@136 swap
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1882
Definition: cbdata.h:359
void attachToDisk(const sdirno, const sfileno, const swap_status_t)
Definition: store.cc:1902
bool swappingOut() const
whether we are in the process of writing this entry to disk
Definition: Store.h:132
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:234