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);
struct StatCounters::@120 swap
void memoryOut(StoreEntry &, const bool preserveSwappable)
called to get rid of no longer needed entry data in RAM, if any
Definition: Controller.cc:581
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:489
bool mayStartSwapOut()
whether we may start writing to disk (now or in the future)
Definition: store_swapout.cc:328
int64_t accumulateMore(StoreEntry &) const
Definition: Controller.cc:472
const char * getSerialisedMetaData(size_t &length) const
Definition: store.cc:1750
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1929
mem_node * getBlockContainingLocation(int64_t location) const
Definition: stmem.cc:137
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:169
void swapOutDecision(const MemObject::SwapOut::Decision &decision)
Definition: store.cc:1800
StoreIOState::Pointer storeCreate(StoreEntry *e, StoreIOState::STIOCB *close_callback, void *callback_data)
Definition: store_io.cc:25
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:29
Definition: MemObject.h:33
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: Store.h:37
Decision
Decision states for StoreEntry::swapoutPossible() and related code.
Definition: MemObject.h:165
virtual bool write(char const *buf, size_t size, off_t offset, FREE *free_func)=0
Definition: mem_node.h:17
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1920
Definition: cbdata.h:365
void attachToDisk(const sdirno, const sfileno, const swap_status_t)
Definition: store.cc:1940
bool swappingOut() const
whether we are in the process of writing this entry to disk
Definition: Store.h:133
void storeWriterDone()
called when a store writer ends its work (successfully or not)
Definition: store.cc:1808
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:235
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products