From: Dave Rodgman Date: Wed, 5 Dec 2018 00:14:25 +0000 (+1100) Subject: zram: default to lzo-rle instead of lzo X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=478a37cc4077fce3fb5790b503ef46cc4cf59d5b;p=users%2Fwilly%2Flinux.git zram: default to lzo-rle instead of lzo lzo-rle gives higher performance and similar compression ratios to lzo. Testing with 80 browser tabs showed a 27% reduction in total time spent (de)compressing data during swapping. Link: http://lkml.kernel.org/r/20181130142600.13782-9-dave.rodgman@arm.com Signed-off-by: Dave Rodgman Cc: David S. Miller Cc: Greg Kroah-Hartman Cc: Herbert Xu Cc: Markus F.X.J. Oberhumer Cc: Matt Sealey Cc: Minchan Kim Cc: Nitin Gupta Cc: Richard Purdie Cc: Sergey Senozhatsky Cc: Sonny Rao Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 33c5cc879f24..9f6ddb99e06d 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -41,7 +41,7 @@ static DEFINE_IDR(zram_index_idr); static DEFINE_MUTEX(zram_index_mutex); static int zram_major; -static const char *default_compressor = "lzo"; +static const char *default_compressor = "lzo-rle"; /* Module params (documentation at end) */ static unsigned int num_devices = 1;