[linux-mm-cc] CurrentMem in /proc/compcache

Nitin Gupta nitingupta910 at gmail.com
Wed Apr 2 02:51:52 EDT 2008


On Wed, Apr 2, 2008 at 2:43 AM, Baghdadi Riyadh <baghdadi13 at gmail.com> wrote:
>
> I assume that
> stat_set(&stats.curr_mem, stats.curr_mem + clen);
> means that each time there is a "write" operation to the CompCache the
> stats.curr_mem  will grow up,
>  but in "compcache.h"   curr_mem   is described as "current total size of
> compressed pages"
>


I forgot to decrement stats.curr_mem when I free memory during write.
I will correct this.

Thanks,
Nitin


More information about the linux-mm-cc mailing list