From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B59CC433E6 for ; Thu, 14 Jan 2021 17:15:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3DE1823B1A for ; Thu, 14 Jan 2021 17:15:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3DE1823B1A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 64B2B8D00F2; Thu, 14 Jan 2021 12:15:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F9E98D00F0; Thu, 14 Jan 2021 12:15:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5103B8D00F2; Thu, 14 Jan 2021 12:15:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id 3B7C78D00F0 for ; Thu, 14 Jan 2021 12:15:22 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id EF22E181AEF39 for ; Thu, 14 Jan 2021 17:15:21 +0000 (UTC) X-FDA: 77705031642.08.van72_5d028a427528 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin08.hostedemail.com (Postfix) with ESMTP id CCAC51819E76C for ; Thu, 14 Jan 2021 17:15:21 +0000 (UTC) X-HE-Tag: van72_5d028a427528 X-Filterd-Recvd-Size: 4856 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Thu, 14 Jan 2021 17:15:20 +0000 (UTC) Received: by mail-lf1-f47.google.com with SMTP id s26so9068749lfc.8 for ; Thu, 14 Jan 2021 09:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jRpbugOzzcD4vWdxqQSiB7WPu9j6z6Mr66iAcSSwJZc=; b=YFsUaEXzE7PwG8/PiSPYv+xFcwhW6um3lZ+PQtUVk7nx4B1GE1smOkJPyTLcP8iUKL 24F+TGLfPFfcEFUEZruZ28RvSZp3DbPwD2BG5twLXzcZp2xHP/pDyV9ItDSp5eY4gSP0 0G4TsA7FGmmSnnoUN80m74Agih4U2RgekH4+g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jRpbugOzzcD4vWdxqQSiB7WPu9j6z6Mr66iAcSSwJZc=; b=AAPogTU+7cJTL04XYEEGSMb8ewtEzNHY/yrWs0u1j/N8iEh4wXwYnHb99qi206GS+x v4SwDkL3xjH99ldatwyLzY0iPHfIl6aN3hpcAgvEoMmI+vgb3IlD2fsG+rHs9sf0rt4p ppfL5qL+6ThOoLuHVYu/HWhDi7fccQkjtSeWg36QM5OKJZprtcdxC6FsLG9BI6qfxy+y ikXpY5vc3u4pXxP+2Ud6MMraCI7jj2+keWGzGdNMfHQeWJ6N/VPfMQawfo0QqEYH+2nL +FyJWAV+CEwQuNnRkhjOQ4sJe+x3miLYXQgkDC0MLea+FS0PVpz8RWSfzW9sU3fRgizl zFrg== X-Gm-Message-State: AOAM533zNKwAbeHLdZTfGqHE8XX/2SCsBU1MCg34zZWLheGfiFzf3u+j VYjSl+Hg9inignWz87zcWvMNX6ai3Qzqs4DRav9yVA== X-Google-Smtp-Source: ABdhPJw98wVFP/xXJJyWVqxebD2K8/3IKxc6BaafZzZCj+GPq53hclI4p29ibHEaPZZ65JbG9eLIXGPKMIczkIj5qA0= X-Received: by 2002:a05:6512:2009:: with SMTP id a9mr3491536lfb.575.1610644519634; Thu, 14 Jan 2021 09:15:19 -0800 (PST) MIME-Version: 1.0 References: <4490cb6a7e2243fba374e40652979e46@hisilicon.com> <08cbef1e43634c4099709be8e99e5d27@hisilicon.com> <1d0d4a3576e74d128d7849342a7e9faf@hisilicon.com> <4e686c73-b453-e714-021a-1fcd0a565984@huawei.com> <20210114161850.zjcfhsgtmojjjqba@linutronix.de> <20210114165645.czqpsk3lacmiyiik@linutronix.de> In-Reply-To: <20210114165645.czqpsk3lacmiyiik@linutronix.de> From: Vitaly Wool Date: Thu, 14 Jan 2021 18:15:08 +0100 Message-ID: Subject: Re: [PATCH] zsmalloc: do not use bit_spin_lock To: Sebastian Andrzej Siewior Cc: "tiantao (H)" , "Song Bao Hua (Barry Song)" , Shakeel Butt , Minchan Kim , Mike Galbraith , LKML , linux-mm , NitinGupta , Sergey Senozhatsky , Andrew Morton , "tiantao (H)" Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jan 14, 2021 at 5:56 PM Sebastian Andrzej Siewior wrote: > > On 2021-01-14 17:29:37 [+0100], Vitaly Wool wrote: > > On Thu, 14 Jan 2021, 17:18 Sebastian Andrzej Siewior, > > wrote: > > > > > > On 2020-12-23 19:25:02 [+0100], Vitaly Wool wrote: > > > > > write the following patch according to your idea, what do you think ? > > > > > > > > Yep, that is basically what I was thinking of. Some nitpicks below: > > > > > > Did this go somewhere? The thread just ends here on my end. > > > Mike, is this patch fixing / helping your case in anyway? > > > > Please see > > * https://marc.info/?l=linux-mm&m=160889419514019&w=2 > > * https://marc.info/?l=linux-mm&m=160889418114011&w=2 > > * https://marc.info/?l=linux-mm&m=160889448814057&w=2 > > Thank you, that would be > 1608894171-54174-1-git-send-email-tiantao6@hisilicon.com > > for b4 compatibility :) > > > Haven't had time to test these yet but seem to be alright. > > So zs_map_object() still disables preemption but the mutex part is > avoided by the patch? Basically, yes. Minchan was very clear that he didn't want to remove that inter-function locking, so be it. I wouldn't really advise to use zsmalloc with zswap because zsmalloc has no support for reclaim, nevertheless I wouldn't like this configuration to stop working for those who are already using it. Would you or Mike be up for testing Tian Taos's patchset? Best regards, Vitaly