From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932822AbaEGOxB (ORCPT ); Wed, 7 May 2014 10:53:01 -0400 Received: from mail-ve0-f169.google.com ([209.85.128.169]:60787 "EHLO mail-ve0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932224AbaEGOw7 (ORCPT ); Wed, 7 May 2014 10:52:59 -0400 MIME-Version: 1.0 In-Reply-To: References: <000001cf6816$d538c370$7faa4a50$%yang@samsung.com> <20140505152014.GA8551@cerebellum.variantweb.net> <1399312844.2570.28.camel@buesod1.americas.hpqcorp.net> <20140505134615.04cb627bb2784cabcb844655@linux-foundation.org> <1399328550.2646.5.camel@buesod1.americas.hpqcorp.net> <000001cf69c9$5776f330$0664d990$%yang@samsung.com> <20140507085743.GA31680@bbox> Date: Wed, 7 May 2014 23:52:59 +0900 Message-ID: Subject: Re: [PATCH] zram: remove global tb_lock by using lock-free CAS From: Joonsoo Kim To: Weijie Yang Cc: Minchan Kim , Weijie Yang , Davidlohr Bueso , Andrew Morton , Seth Jennings , Nitin Gupta , Sergey Senozhatsky , Bob Liu , Dan Streetman , Heesub Shin , linux-kernel , Linux-MM Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Most popular use of zram is the in-memory swap for small embedded system >> so I don't want to increase memory footprint without good reason although >> it makes synthetic benchmark. Alhought it's 1M for 1G, it isn't small if we >> consider compression ratio and real free memory after boot We can use bit spin lock and this would not increase memory footprint for 32 bit platform. Thanks.