Re: [RFC][PATCHv3 3/7] zsmalloc: always keep per-class stats

2015-06-29 Thread Sergey Senozhatsky
On (06/29/15 15:40), Minchan Kim wrote: > On Thu, Jun 18, 2015 at 08:46:40PM +0900, Sergey Senozhatsky wrote: > > Always account per-class `zs_size_stat' stats. This data will > > help us make better decisions during compaction. We are especially > > interested in OBJ_ALLOCATED and OBJ_USED, which

Re: [RFC][PATCHv3 3/7] zsmalloc: always keep per-class stats

2015-06-28 Thread Minchan Kim
On Thu, Jun 18, 2015 at 08:46:40PM +0900, Sergey Senozhatsky wrote: > Always account per-class `zs_size_stat' stats. This data will > help us make better decisions during compaction. We are especially > interested in OBJ_ALLOCATED and OBJ_USED, which can tell us if > class compaction will result in

[RFC][PATCHv3 3/7] zsmalloc: always keep per-class stats

2015-06-18 Thread Sergey Senozhatsky
Always account per-class `zs_size_stat' stats. This data will help us make better decisions during compaction. We are especially interested in OBJ_ALLOCATED and OBJ_USED, which can tell us if class compaction will result in any memory gain. For instance, we know the number of allocated objects in