Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-08 Thread Minchan Kim
On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: > On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > >> wrote:

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-08 Thread Minchan Kim
On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: > On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > >> wrote: > >> > Hello, > >> > > >> > On (08/22/16 16:25), Hui

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-05 Thread Hui Zhu
On Mon, Sep 5, 2016 at 1:51 PM, Minchan Kim wrote: > On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: >> On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: >> > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: >> >> On Thu, Aug 25, 2016 at

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-05 Thread Hui Zhu
On Mon, Sep 5, 2016 at 1:51 PM, Minchan Kim wrote: > On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: >> On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: >> > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: >> >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky >> >>

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: > On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > >> wrote:

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
On Mon, Sep 05, 2016 at 01:12:05PM +0800, Hui Zhu wrote: > On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > >> wrote: > >> > Hello, > >> > > >> > On (08/22/16 16:25), Hui

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Hui Zhu
On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky >> wrote: >> > Hello, >> > >> > On (08/22/16 16:25), Hui Zhu wrote: >> >>

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Hui Zhu
On Mon, Sep 5, 2016 at 10:18 AM, Minchan Kim wrote: > On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: >> On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky >> wrote: >> > Hello, >> > >> > On (08/22/16 16:25), Hui Zhu wrote: >> >> >> >> Current ZRAM just can store all pages even if the

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Sergey Senozhatsky
Hello, On (09/05/16 11:18), Minchan Kim wrote: [..] > If I understand Sergey's point right, he means there is no gain > to save memory between before and after. > > With your approach, you can prevent unnecessary pageout(i.e., > uncompressible page swap out) but it doesn't mean you save the >

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Sergey Senozhatsky
Hello, On (09/05/16 11:18), Minchan Kim wrote: [..] > If I understand Sergey's point right, he means there is no gain > to save memory between before and after. > > With your approach, you can prevent unnecessary pageout(i.e., > uncompressible page swap out) but it doesn't mean you save the >

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > wrote: > > Hello, > > > > On (08/22/16 16:25), Hui Zhu wrote: > >> > >> Current ZRAM just can store all pages even if the compression rate > >> of a

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
On Thu, Aug 25, 2016 at 04:25:30PM +0800, Hui Zhu wrote: > On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky > wrote: > > Hello, > > > > On (08/22/16 16:25), Hui Zhu wrote: > >> > >> Current ZRAM just can store all pages even if the compression rate > >> of a page is really low. So the

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
Hello Hui, On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-09-04 Thread Minchan Kim
Hello Hui, On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Hui Zhu
On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky wrote: > Hello, > > On (08/22/16 16:25), Hui Zhu wrote: >> >> Current ZRAM just can store all pages even if the compression rate >> of a page is really low. So the compression rate of ZRAM is out of >> control

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Hui Zhu
On Thu, Aug 25, 2016 at 2:09 PM, Sergey Senozhatsky wrote: > Hello, > > On (08/22/16 16:25), Hui Zhu wrote: >> >> Current ZRAM just can store all pages even if the compression rate >> of a page is really low. So the compression rate of ZRAM is out of >> control when it is running. >> In my part,

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Sergey Senozhatsky
Hello, On (08/22/16 16:25), Hui Zhu wrote: > > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The compression rate > is

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-25 Thread Sergey Senozhatsky
Hello, On (08/22/16 16:25), Hui Zhu wrote: > > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The compression rate > is

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Hui Zhu
Hi Minchan, On Wed, Aug 24, 2016 at 9:04 AM, Minchan Kim wrote: > Hi Hui, > > On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: >> Current ZRAM just can store all pages even if the compression rate >> of a page is really low. So the compression rate of ZRAM is out of

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Hui Zhu
Hi Minchan, On Wed, Aug 24, 2016 at 9:04 AM, Minchan Kim wrote: > Hi Hui, > > On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: >> Current ZRAM just can store all pages even if the compression rate >> of a page is really low. So the compression rate of ZRAM is out of >> control when it

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Minchan Kim
Hi Hui, On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The

Re: [RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-23 Thread Minchan Kim
Hi Hui, On Mon, Aug 22, 2016 at 04:25:05PM +0800, Hui Zhu wrote: > Current ZRAM just can store all pages even if the compression rate > of a page is really low. So the compression rate of ZRAM is out of > control when it is running. > In my part, I did some test and record with ZRAM. The

[RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-22 Thread Hui Zhu
Current ZRAM just can store all pages even if the compression rate of a page is really low. So the compression rate of ZRAM is out of control when it is running. In my part, I did some test and record with ZRAM. The compression rate is about 40%. This series of patches make ZRAM can just store

[RFC 0/4] ZRAM: make it just store the high compression rate page

2016-08-22 Thread Hui Zhu
Current ZRAM just can store all pages even if the compression rate of a page is really low. So the compression rate of ZRAM is out of control when it is running. In my part, I did some test and record with ZRAM. The compression rate is about 40%. This series of patches make ZRAM can just store