[PATCH 1/3] Add the snappy-c compressor to lib

Matthieu CASTET matthieu.castet at parrot.com
Tue Nov 22 12:23:44 EST 2011


Mark Brown a écrit :
> On Thu, Nov 17, 2011 at 11:36:17PM +0200, Artem Bityutskiy wrote:
> 
>> Yeah, of course it would be interesting to see. If snappy is a win-win
>> on ARM, we should merge it.
> 
> It might be interesting to use it for the compressed cache type in regmap
> as well.
> 
For info we did some bench mark on omap3 (cortexa-8) for decompressing
hibernation image.
And snappy was a lose-lose against lzf (bigger compressed result, slower to
decompress) :

algo : compressed size , time to decompress
snappy (16 and 32 bits unaligned access done by hardware) : 45Mo, 3.5 s
snappy (unaligned access done by software) : 45Mo, 2.50 s
lzf (unalign access done by softare) : 40Mo, 2.35 s


Of course this is against one pattern (hibernation image) and benchmark should
be done on other patterns.

Matthieu



More information about the linux-mtd mailing list