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

2014-09-25 Thread Dan Streetman
On Thu, Sep 25, 2014 at 2:20 AM, Joonsoo Kim wrote: > On Wed, Sep 24, 2014 at 12:24:14PM -0400, Dan Streetman wrote: >> On Wed, Sep 24, 2014 at 2:03 AM, Joonsoo Kim wrote: >> > zsmalloc has many size_classes to reduce fragmentation and they are >> > in 16 bytes unit, for example, 16, 32, 48, etc.

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

2014-09-24 Thread Joonsoo Kim
On Wed, Sep 24, 2014 at 12:24:14PM -0400, Dan Streetman wrote: > On Wed, Sep 24, 2014 at 2:03 AM, 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 t

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

2014-09-24 Thread Joonsoo Kim
On Wed, Sep 24, 2014 at 05:12:20PM +0900, Minchan Kim wrote: > Hi Joonsoo, > > On Wed, Sep 24, 2014 at 03:03:46PM +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, zs

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

2014-09-24 Thread Dan Streetman
On Wed, Sep 24, 2014 at 2:03 AM, 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 can s

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

2014-09-24 Thread Minchan Kim
Hi Joonsoo, On Wed, Sep 24, 2014 at 03:03:46PM +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 th

[PATCH v2] 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,