gvisor/pkg
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
..
abi Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
amutex Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
atomicbitops Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
binary Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
bits Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
bpf Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
compressio Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
control Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
cpuid Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
dhcp Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
eventchannel Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fd Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fdnotifier Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
gate Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
ilist Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
linewriter Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
log Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
metric Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
p9 Reduce memory allocations on serving path 2019-04-29 15:33:47 -07:00
rand Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
refs Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
seccomp Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
secio Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
segment Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sentry Implement async MemoryFile eviction, and use it in CachingInodeOperations. 2019-04-30 13:56:41 -07:00
sleep Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
state Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
syserr Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
syserror Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
tcpip Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
tmutex Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
unet Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
urpc Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
waiter Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00