Re: [PATCH v3 3/4] zram: zram memory size limitation

2014-08-21 Thread Minchan Kim
On Thu, Aug 21, 2014 at 03:08:12PM -0400, Dan Streetman wrote: > On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: > > Since zram has no control feature to limit memory usage, > > it makes hard to manage system memrory. > > > > This patch adds new knob "mem_limit" via sysfs to set up the > > a l

Re: [PATCH v3 3/4] zram: zram memory size limitation

2014-08-21 Thread Dan Streetman
On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: > Since zram has no control feature to limit memory usage, > it makes hard to manage system memrory. > > This patch adds new knob "mem_limit" via sysfs to set up the > a limit so that zram could fail allocation once it reaches > the limit. > > Si

[PATCH v3 3/4] zram: zram memory size limitation

2014-08-20 Thread Minchan Kim
Since zram has no control feature to limit memory usage, it makes hard to manage system memrory. This patch adds new knob "mem_limit" via sysfs to set up the a limit so that zram could fail allocation once it reaches the limit. Signed-off-by: Minchan Kim --- Documentation/ABI/testing/sysfs-bloc