Re: Does Diego support memory swap?


Will Pragnell <wpragnell@...>
 

Hi Sam,

Sorry for the slow response - Monday and Friday were public holidays in the
UK (where the Garden team are based) so we didn't get a chance to look in
to this.

I think your understanding of that code is correct. I'm not sure why
`/proc/meminfo` is reporting those values for SwapTotal and SwapFree. I'll
try some experiments of my own and see if I can get to the bottom of it.

Best,
Will

On 28 March 2016 at 03:41, Sam Dai <sam.dai(a)servicemax.com> wrote:

According to this code
https://github.com/cloudfoundry-incubator/garden-linux/blob/master/linux_container/limits.go#L74-L75,
memory.limit_in_bytes and memory.memsw.limit_in_bytes are set to the same
limit value, it looks like when memory usage exceeds the limit, the kernel
of diego won't swap out any pages

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.