Re: [PATCH] zsmalloc: merge size_class to reduce fragmentation

2014-09-23 Thread Joonsoo Kim
On Tue, Sep 23, 2014 at 03:25:55PM -0700, Andrew Morton wrote: > On Tue, 23 Sep 2014 17:30:11 +0900 Joonsoo Kim wrote: > > > zsmalloc has many size_classes to reduce fragmentation and they are > > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > > And, zsmalloc has constra

Re: [PATCH] zsmalloc: merge size_class to reduce fragmentation

2014-09-23 Thread Andrew Morton
On Tue, 23 Sep 2014 17:30:11 +0900 Joonsoo Kim wrote: > zsmalloc has many size_classes to reduce fragmentation and they are > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > And, zsmalloc has constraint that each zspage has 4 pages at maximum. > > In this situation, we c

[PATCH] zsmalloc: merge size_class to reduce fragmentation

2014-09-23 Thread Joonsoo Kim
zsmalloc has many size_classes to reduce fragmentation and they are in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. And, zsmalloc has constraint that each zspage has 4 pages at maximum. In this situation, we can see interesting aspect. Let's think about size_class for 1488,