Re: [PATCH] zram: export the number of available comp streams

2016-03-23 Thread Sergey Senozhatsky
( was "[PATCH] zram: export the number of available comp streams" forked from http://marc.info/?l=linux-kernel&m=145860707516861 ) Hello Minchan, forked into a separate tread. On (03/22/16 09:39), Minchan Kim wrote: > > zram_bvec_write() > > { > &g

Re: [PATCH] zram: export the number of available comp streams

2016-03-21 Thread Minchan Kim
Hello Sergey, On Mon, Mar 21, 2016 at 04:51:28PM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (03/18/16 10:25), Minchan Kim wrote: > [..] > > > aha, ok. > > > > > > > (ie, simple code, removing > > > > max_comp_streams knob, no need to this your stat, guarantee parallel > > > > level

Re: [PATCH] zram: export the number of available comp streams

2016-03-21 Thread Sergey Senozhatsky
Hello Minchan, On (03/18/16 10:25), Minchan Kim wrote: [..] > > aha, ok. > > > > > (ie, simple code, removing > > > max_comp_streams knob, no need to this your stat, guarantee parallel > > > level, guarantee consumed memory space). > > > > I'll take a look and prepare some numbers (most likely n

Re: [PATCH] zram: export the number of available comp streams

2016-03-19 Thread Minchan Kim
Hi Sergey, I forgot this patch until now. Sorry about that. On Mon, Feb 01, 2016 at 10:02:48AM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (01/29/16 16:28), Minchan Kim wrote: > > Hello Sergey, > > > > Sorry to late response. Thesedays, I'm really busy with personal > > stuff. > >

Re: [PATCH] zram: export the number of available comp streams

2016-03-19 Thread Sergey Senozhatsky
Hello Minchan, On (03/18/16 09:32), Minchan Kim wrote: [..] > > do I need 21? may be no. do I nede 18? if 18 streams are needed only 10% > > of the time (I can figure it out by doing repetitive cat zramX/mm_stat), > > then I can set max_comp_streams to make 90% of applications happy, e.g. > > max_

Re: [PATCH] zram: export the number of available comp streams

2016-03-19 Thread Minchan Kim
On Fri, Mar 18, 2016 at 10:09:37AM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (03/18/16 09:32), Minchan Kim wrote: > [..] > > > do I need 21? may be no. do I nede 18? if 18 streams are needed only 10% > > > of the time (I can figure it out by doing repetitive cat zramX/mm_stat), > >

Re: [PATCH] zram: export the number of available comp streams

2016-01-31 Thread Sergey Senozhatsky
Hello Minchan, On (01/29/16 16:28), Minchan Kim wrote: > Hello Sergey, > > Sorry to late response. Thesedays, I'm really busy with personal > stuff. sure, no worries :) > On Tue, Jan 26, 2016 at 09:03:59PM +0900, Sergey Senozhatsky wrote: > > I've been asked several very simple questions: > > a

Re: [PATCH] zram: export the number of available comp streams

2016-01-28 Thread Minchan Kim
Hello Sergey, Sorry to late response. Thesedays, I'm really busy with personal stuff. Today, I have thought about this patch and have several questions. Let's start with simple questions. On Tue, Jan 26, 2016 at 09:03:59PM +0900, Sergey Senozhatsky wrote: > I've been asked several very simple qu

Re: [PATCH] zram: export the number of available comp streams

2016-01-26 Thread Sergey Senozhatsky
On (01/26/16 13:13), Andrew Morton wrote: [..] > > +`avail_streams' column shows the current number of available compression > > +streams, which is not necessarily equal to the number of max compression > > +streams. The number of max compression streams can be set too high and be > > +unreachable

Re: [PATCH] zram: export the number of available comp streams

2016-01-26 Thread Andrew Morton
On Tue, 26 Jan 2016 21:03:59 +0900 Sergey Senozhatsky wrote: > I've been asked several very simple questions: > a) How can I ensure that zram uses (or used) several compression >streams? > b) What is the current number of comp streams (how much memory >does zram *actually* use for compre

[PATCH] zram: export the number of available comp streams

2016-01-26 Thread Sergey Senozhatsky
I've been asked several very simple questions: a) How can I ensure that zram uses (or used) several compression streams? b) What is the current number of comp streams (how much memory does zram *actually* use for compression streams, if there are more than one stream)? zram, indeed, does