70 errmsg (
"Your swap module does not support extending swap by policy" );
77 errmsg (
"Your swap module does not support extending swap" );
131 virtual void close() = 0;
virtual bool checkForAIO()
virtual bool extendSwapByPolicy(global_bytesize min_size)
extend swap by policy
swapPolicy
An enumeration to regulate how the swap should define when it approaches it's set boundary...
size_t getMemoryAlignment() const
Returns possible memory alignment restrictions.
virtual global_bytesize getUsedSwap() const
Simple getter.
Class that serves as a backend to managedMemory to actual write/read managedMemoryChunks to/from hard...
virtual global_bytesize getSwapSize() const
Simple getter.
void claimUsageof(global_bytesize bytes, bool rambytes, bool used)
account for memory usage change
virtual swapPolicy getSwapPolicy() const
unsigned int totalSwapActionsQueued
virtual void close()=0
Close the swap if not already closed.
managedSwap(global_bytesize size)
virtual global_bytesize swapIn(managedMemoryChunk **chunklist, unsigned int nchunks)=0
Trigger swap in of the chunks pointed to by chunklist.
virtual bool extendSwap(global_bytesize size)
extend swap by size number of bytes
virtual global_bytesize getFreeSwap() const
Simple getter.
manages all managed Chunks of raw memory
virtual global_bytesize swapOut(managedMemoryChunk **chunklist, unsigned int nchunks)=0
Trigger swap out of the chunks pointed to by chunklist.
void waitForCleanExit()
Function waits for all asynchronous IO to complete. The wait is implemented non-performant as a norma...
virtual bool cleanupCachedElements(rambrain::global_bytesize minimum_size=0)
throws out cached elements still in ram but also resident on disk. This makes space in situations of ...
virtual swapPolicy setSwapPolicy(swapPolicy newPolicy)
virtual void invalidateCacheFor(managedMemoryChunk &chunk)
tells managedFileSwap that the chunk under consideration might have been changed by user and needs to...
virtual void swapDelete(managedMemoryChunk *chunk)=0
Mark chunk as deleted.