gvisor/runsc
Jamie Liu 8bfb83d0ac Implement async MemoryFile eviction, and use it in CachingInodeOperations.
This feature allows MemoryFile to delay eviction of "optional"
allocations, such as unused cached file pages.

Note that this incidentally makes CachingInodeOperations writeback
asynchronous, in the sense that it doesn't occur until eviction; this is
necessary because between when a cached page becomes evictable and when
it's evicted, file writes (via CachingInodeOperations.Write) may dirty
the page.

As currently implemented, this feature won't meaningfully impact
steady-state memory usage or caching; the reclaimer goroutine will
schedule eviction as soon as it runs out of other work to do. Future CLs
increase caching by adding constraints on when eviction is scheduled.

PiperOrigin-RevId: 246014822
Change-Id: Ia85feb25a2de92a48359eb84434b6ec6f9bea2cb
2019-04-30 13:56:41 -07:00
..
boot Implement async MemoryFile eviction, and use it in CachingInodeOperations. 2019-04-30 13:56:41 -07:00
cgroup Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
cmd Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
console Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
container Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fsgofer Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sandbox Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
specutils Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
test Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
tools/dockercfg Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
BUILD Add release hook and version flag 2019-04-01 16:18:43 -07:00
main.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
version.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00