store_swapout.cc
Go to the documentation of this file.
120 debugs(20, 3, "storeSwapOut: swapping out " << swap_buf_len << " bytes from " << mem->swapout.queue_offset);
Decision
Decision states for StoreEntry::swapoutPossible() and related code.
Definition: MemObject.h:165
Definition: MemObject.h:34
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
Definition: MemObject.cc:489
struct StatCounters::@131 swap
Definition: Store.h:42
const char * getSerialisedMetaData(size_t &length) const
Definition: store.cc:1736
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1915
void swapOutDecision(const MemObject::SwapOut::Decision &decision)
Definition: store.cc:1786
bool swappingOut() const
whether we are in the process of writing this entry to disk
Definition: Store.h:134
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1906
bool mayStartSwapOut()
whether we may start writing to disk (now or in the future)
Definition: store_swapout.cc:329
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:236
void storeWriterDone()
called when a store writer ends its work (successfully or not)
Definition: store.cc:1794
void attachToDisk(const sdirno, const sfileno, const swap_status_t)
Definition: store.cc:1926
virtual bool write(char const *buf, size_t size, off_t offset, FREE *free_func)=0
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
void memoryOut(StoreEntry &, const bool preserveSwappable)
called to get rid of no longer needed entry data in RAM, if any
Definition: Controller.cc:589
int64_t accumulateMore(StoreEntry &) const
Definition: Controller.cc:480
virtual void finalizeSwapoutSuccess(const StoreEntry &)=0
finalize the successful swapout that has been already noticed by Store
virtual void finalizeSwapoutFailure(StoreEntry &)=0
abort the failed swapout that has been already noticed by Store
Definition: cbdata.h:361
mem_node * getBlockContainingLocation(int64_t location) const
Definition: stmem.cc:139
Definition: mem_node.h:18
int64_t store_maxobjsize
StoreIOState::Pointer storeCreate(StoreEntry *e, StoreIOState::STIOCB *close_callback, void *callback_data)
Definition: store_io.cc:25
void storeIOWrite(StoreIOState::Pointer sio, char const *buf, size_t size, off_t offset, FREE *free_func)
Definition: store_io.cc:85
static StoreIOState::STIOCB storeSwapOutFileClosed
Definition: store_swapout.cc:28