Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOCache ¶
type IOCache struct {
// contains filtered or unexported fields
}
IOCache is a read-through cache to:
a) provide a reentrant interface b) deduplicate page pread(2) requests (i.e. no thundering-herd for the same
page file)
c) prevent tainting of the filesystem cache (i.e. ZFS ARC) by artificially
promoting pages from the MRU to the MFU.
d) sized sufficiently large so that we can spend our time faulting in pages
vs performing cache hits.
func New ¶
func New(ctx context.Context, cfg *config.Config, metrics *cgm.CirconusMetrics, fhc *fhcache.FileHandleCache) (*IOCache, error)
New creates a new IOCache.
func (*IOCache) GetIFPresent ¶
GetIFPresent forwards to gcache.Cache's GetIFPresent().
Click to show internal directories.
Click to hide internal directories.