Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5061843rdb; Tue, 12 Dec 2023 18:58:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7B4nmKoRVCrrTM9/OLD91VH3yimOxmskbvqPpmlFNNMMfvHTV16qVZRx/noXS1Pim/ni/ X-Received: by 2002:a05:6870:6111:b0:203:1a0b:fbcc with SMTP id s17-20020a056870611100b002031a0bfbccmr907250oae.42.1702436304376; Tue, 12 Dec 2023 18:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702436304; cv=none; d=google.com; s=arc-20160816; b=dJejjaf7QMAP8T7VOOxQobEHd3njY4EIGwUBrM45S7s6VYPWY987XmpEZZkpP2nuwm GS4/ZMszUb00mRWWIEjYvweCVgUPR5RjmiI4xg5SyGql13eeuyO4UaHQ4fa2nf31ivJa r6qMTkZBUlRCSfjlc2KXwog7MyP0bfc+o4a/8KRZ73UncPr0wUJkCcjUmRVY+KfbT2pO yZsjfbKwKju4/JsvXnD5qRvibO4RsuOZJbly6tG1juRd0yVFH9j46W73tHStdyybDwVi zL4bYXYj5XtIUiGImIhLHTFJqjdRuYYI8+UOJS64taqRwXL0sSW1yEljbuxblWLJsG4W MWgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vLWQ3Y/puZnM0632pjGmh7GqZF/HieDMjCcRFXmLY5k=; fh=NmM5MS/1W1+YKzdONhAaMUxTtUcc3YAXxLR4dPlHZUU=; b=WhfKct+9yTVVnUf4TZszKZnZib3sEOi6rqP4sDzx3S33mbjL6HcJXcV61+JqMveWgx E/gOgaN93DLY7E3p+vr2ETj38D9H9b0Cc1Z2e5iOBp8ZqT42xtWiyXa78LvNPkhG0vUL gRrgd9vvHVZOGTFfHZ7JsujSb3Sb1A5QlD2Mdbsbbdhq8O+7zhQuRAHKm08tT9RKQopd KJP9uf423zgHj/Y2Dl4nC3x65M+1Dj18ypBU+a3tgRF7lDxexdFdIsABdsyycmmSgTFy Xfhqjo4s0Ovo0O2pYlMpanRqtmyDgSBR7y/vwFAgnpQ3krdTRxEMQLs87m/hXsuS3K96 ftGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=HofIe5qK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o10-20020a63e34a000000b005b9293fcf78si8738837pgj.10.2023.12.12.18.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 18:58:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=HofIe5qK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CEF9E80A9E3B; Tue, 12 Dec 2023 18:58:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378327AbjLMC5v (ORCPT + 99 others); Tue, 12 Dec 2023 21:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235204AbjLMC5u (ORCPT ); Tue, 12 Dec 2023 21:57:50 -0500 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96EA2AB for ; Tue, 12 Dec 2023 18:57:33 -0800 (PST) Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3b88f2a37deso5056952b6e.0 for ; Tue, 12 Dec 2023 18:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1702436253; x=1703041053; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vLWQ3Y/puZnM0632pjGmh7GqZF/HieDMjCcRFXmLY5k=; b=HofIe5qKl4v98zQHESb1qxpclD0jMWx6XEL7RjPQveBnpRuN0BDYvS7AkKfi209id4 EJYLvdI6+034P4GCuzZcSsy7sw36xAN4/lQrwLwBKjpGTaBZNByi/eLpIUr6iz1lDfHh FyGVd94Y4DxmIPoFXAwLV2/lq+nZjEgyoQoQYF5U1AUpwWHJIAGlwg0A66Hrn5UGhsS8 i/gynsyE5nE1xEkhgXXT5wXgq/NjgXXIiiYAZTU/B+UsdaNa8ssUiMLCj18b/CqbHuke 4gtUjzq96NelBVLpizPWe3OK/vYwuYf/sbtPtzBq1plcAuNX449cQMmn2gzaEyAG2iy6 nV8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702436253; x=1703041053; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vLWQ3Y/puZnM0632pjGmh7GqZF/HieDMjCcRFXmLY5k=; b=BJ/xQ5IM2BKczl3rLSwLwhH5UGo8f1WxTwXMrzgrosdpoFPAjkItvo0cpy+MLvd81a igUtPY58dkyig/hLI1/vMKU+JnhRW/eQLeu3dWHK0IVEscwDTNCzAb7X6xVdz0bY68ER cyVBcyZ2QH7i+xQbW/OIKgdIG/JEmaW1txebRhnCloqn5560jR+zQSvXA42CJjkpLaCn JpMOwc7U3K0HInDZSNOUY5ez6iBuq4Tb7ony4AU0iBDz6aryVitHwqo/tpF8p0x+U2Ha ZJXCQrpv6CBKbqEA2O3AeBWnbPU1UEnN9RfdUKeuDclBKNqSAyZxHjESXPPYvNXUURHW nJ+A== X-Gm-Message-State: AOJu0YyAY2236UfYYSPZiktZI2CNbOU2y7qIptJ2Vp7L0krSeW1qRtOa R0tVOz03FPGUgg5+bM5SpSRePA== X-Received: by 2002:a05:6808:140d:b0:3b8:4125:c1e with SMTP id w13-20020a056808140d00b003b841250c1emr8582165oiv.31.1702436252893; Tue, 12 Dec 2023 18:57:32 -0800 (PST) Received: from [10.254.248.243] ([139.177.225.230]) by smtp.gmail.com with ESMTPSA id x20-20020aa793b4000000b006ce4c7ba448sm8851643pff.25.2023.12.12.18.57.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Dec 2023 18:57:32 -0800 (PST) Message-ID: <74bb08ba-25c8-4aca-af04-18a45208bdad@bytedance.com> Date: Wed, 13 Dec 2023 10:57:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] mm/zswap: optimize the scalability of zswap rb-tree Content-Language: en-US To: Nhat Pham , Yosry Ahmed Cc: Chris Li , Vitaly Wool , Johannes Weiner , Michal Hocko , Seth Jennings , Dan Streetman , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Matthew Wilcox References: <20231206-zswap-lock-optimize-v1-0-e25b059f9c3a@bytedance.com> <77d628dc-ab8c-4d8c-bc63-7e4518ea92d7@bytedance.com> From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 18:58:22 -0800 (PST) On 2023/12/13 07:33, Nhat Pham wrote: > On Tue, Dec 12, 2023 at 3:27 PM Yosry Ahmed wrote: >> >> Let's split the rbtree breakdown into a separate series. This series >> has irrelevant (and very nice) cleanups and optimizations, let's get >> them separately and defer the rbtree breakdown part until we get data Ok, will split and just send the cleanups/optimizations with dstmem reuse. >> about the xarray implementation. Perhaps the tree breakdown is not >> needed as much with an xarray, or at the very least the implementation >> would look different on top of an xarray. Yeah, will retest on the xarray version of Chris, the implementation is easy anyway. > > Actually, kinda agree - I quite like the cleanup/optimization done > w.r.t dstmem reuse :) Thanks!