On Thu, 24 Feb 2011 11:18:44 -0500 Vivek Goyal <vgoyal@xxxxxxxxxx> wrote: > > I think swap I/O should be controlled by memcg's dirty_ratio. > > But, IIRC, NEC guy had a requirement for this... > > > > I think some enterprise cusotmer may want to throttle the whole > > speed of swapout I/O (not swapin)...so, they may be glad if they > > can limit throttle the I/O against a disk partition or all I/O > > tagged as 'swapio' rather than some cgroup name. > > If swap is on a separate disk, then one can control put write > throttling rules on systemwide swapout. Though I still don't > understand how that can help. I have experimented a lot with cgroups to control bad situations like swap of death, memleaks, etc. I found that a system will not swap of death if I ensure that free mem + cache don't drop below 10% of system memory. Currently i cap the rss of a memory hogging process with cgroups which works quite well. The overall system performance is still not good as the swapping process heavily affects the io of the system. As currently swap io is not accounted through the blkio cgroup, other processes suffer greatly. I personally I don't care about throttling bandwidth, the weight factor seems much more sensible for swap. Through blkio.weight the effect of processes could be controlled more effectively. kind regards Daniel _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers