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

From: Sergey Senozhatsky
Date: Fri Nov 04 2022 - 19:44:57 EST


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?