gvisor/runsc/boot
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
..
filter Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
BUILD Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
compat.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
compat_amd64.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
compat_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
config.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
controller.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
debug.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
events.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fds.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fs.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
limits.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
loader.go Implement async MemoryFile eviction, and use it in CachingInodeOperations. 2019-04-30 13:56:41 -07:00
loader_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
network.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
strace.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00