Re: [PATCH REPOST] mm: memcg: allow lowering memory.swap.max below the current usage

2018-05-24 Thread Johannes Weiner
On Wed, May 23, 2018 at 11:50:41AM -0700, Tejun Heo wrote: > Currently an attempt to set swap.max into a value lower than the > actual swap usage fails, which causes configuration problems as > there's no way of lowering the configuration below the current usage > short of turning off swap

Re: [PATCH REPOST] mm: memcg: allow lowering memory.swap.max below the current usage

2018-05-24 Thread Johannes Weiner
On Wed, May 23, 2018 at 11:50:41AM -0700, Tejun Heo wrote: > Currently an attempt to set swap.max into a value lower than the > actual swap usage fails, which causes configuration problems as > there's no way of lowering the configuration below the current usage > short of turning off swap

[PATCH REPOST] mm: memcg: allow lowering memory.swap.max below the current usage

2018-05-23 Thread Tejun Heo
Currently an attempt to set swap.max into a value lower than the actual swap usage fails, which causes configuration problems as there's no way of lowering the configuration below the current usage short of turning off swap entirely. This makes swap.max difficult to use and allows delegatees to

[PATCH REPOST] mm: memcg: allow lowering memory.swap.max below the current usage

2018-05-23 Thread Tejun Heo
Currently an attempt to set swap.max into a value lower than the actual swap usage fails, which causes configuration problems as there's no way of lowering the configuration below the current usage short of turning off swap entirely. This makes swap.max difficult to use and allows delegatees to