Re: [lxc-devel] [PATCH v2] Fix Busted Swap Accounting

2016-01-19 Thread Serge Hallyn
Quoting Nehal J Wani (nehaljw.k...@gmail.com): > When no limit is specified using lxc.cgroup.memory.memsw.limit_in_bytes, > overflow occurs while calculating Swap{Total,Free}. Commit a2de34b tried > to fix this, but introduced another bug, wherein if > memory.memsw.limit_in_bytes >= memory.limit_in

[lxc-devel] [PATCH v2] Fix Busted Swap Accounting

2016-01-19 Thread Nehal J Wani
When no limit is specified using lxc.cgroup.memory.memsw.limit_in_bytes, overflow occurs while calculating Swap{Total,Free}. Commit a2de34b tried to fix this, but introduced another bug, wherein if memory.memsw.limit_in_bytes >= memory.limit_in_bytes, then Swap{Total,Free} are not shown as expected