Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
On Wed, Aug 20, 2014 at 11:03:06PM -0400, David Horner wrote: > On Wed, Aug 20, 2014 at 10:41 PM, Minchan Kim wrote: > > On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: > >> On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: > >> > Normally, zram user could get maximum memory

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread David Horner
On Wed, Aug 20, 2014 at 10:41 PM, Minchan Kim wrote: > On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: >> On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: >> > Normally, zram user could get maximum memory usage zram consumed >> > via polling mem_used_total with sysfs in

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: > On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: > > Normally, zram user could get maximum memory usage zram consumed > > via polling mem_used_total with sysfs in userspace. > > > > But it has a critical problem because user can

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread David Horner
On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim wrote: > Normally, zram user could get maximum memory usage zram consumed > via polling mem_used_total with sysfs in userspace. > > But it has a critical problem because user can miss peak memory > usage during update inverval of polling. For avoiding

[PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
Normally, zram user could get maximum memory usage zram consumed via polling mem_used_total with sysfs in userspace. But it has a critical problem because user can miss peak memory usage during update inverval of polling. For avoiding that, user should poll it with shorter interval(ie,

[PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
Normally, zram user could get maximum memory usage zram consumed via polling mem_used_total with sysfs in userspace. But it has a critical problem because user can miss peak memory usage during update inverval of polling. For avoiding that, user should poll it with shorter interval(ie,

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread David Horner
On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim minc...@kernel.org wrote: Normally, zram user could get maximum memory usage zram consumed via polling mem_used_total with sysfs in userspace. But it has a critical problem because user can miss peak memory usage during update inverval of polling.

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim minc...@kernel.org wrote: Normally, zram user could get maximum memory usage zram consumed via polling mem_used_total with sysfs in userspace. But it has a critical problem because

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread David Horner
On Wed, Aug 20, 2014 at 10:41 PM, Minchan Kim minc...@kernel.org wrote: On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim minc...@kernel.org wrote: Normally, zram user could get maximum memory usage zram consumed via polling

Re: [PATCH v3 4/4] zram: report maximum used memory

2014-08-20 Thread Minchan Kim
On Wed, Aug 20, 2014 at 11:03:06PM -0400, David Horner wrote: On Wed, Aug 20, 2014 at 10:41 PM, Minchan Kim minc...@kernel.org wrote: On Wed, Aug 20, 2014 at 10:20:07PM -0400, David Horner wrote: On Wed, Aug 20, 2014 at 8:27 PM, Minchan Kim minc...@kernel.org wrote: Normally, zram user