Re: [PATCHv4 2/9] zram: Add recompression algorithm sysfs knob

From: Minchan Kim
Date: Fri Nov 04 2022 - 20:02:48 EST


On Sat, Nov 05, 2022 at 08:44:46AM +0900, Sergey Senozhatsky wrote:
> On (22/11/04 16:40), Minchan Kim wrote:
> > > > > Configure 2 alternative algos, with priority 1 and 2
> > > > >
> > > > > echo "name=lz4 priority=1" > recomp_algo
> > > > > echo "name=lz5 priority=2" > recomp_algo
> > > > >
> > > > > Recompress pages using algo 1 and algo 2
> > > > >
> > > > > echo "type=huge threshold=3000 algo_idx=1" > recompress
> > > > > echo "type=idle threshold=2000 algo_idx=2" > recompress
> > > > >
> > > > > Maybe we can even pass algo name instead of idx.
> > > >
> > > > Let's use name rather than index.
> > >
> > > OK. Any preference on the keyword? "name="? "algo="? "algorithm="?
> > > "compressor="? "comp="?
> > >
> > > I want use the same keyword for recomp_algo. I sort of like "algo=",
> > > but not sure.
> >
> > +1 with algo
>
> Minchan, I'm sorry I'm getting a bit confused (didn't sleep last night).
> I just saw your other email and you suggested there that we don't need
> any idx or name in recompress. Or did I misunderstand it?
>

I should have more clear. Sorry for that.

I meant if you need some reason, I prefer "algo=' to make review
proceed. If you agree we don't need it, then, yeah, we are all good.