Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2592375rwi; Fri, 28 Oct 2022 08:50:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7tkpjHkyfPVXN+gJYFOKSWF6IVpCI1ysJupydg87q+3/48lQdjFOkDiQsSmw/+ih5pMUX0 X-Received: by 2002:a17:907:160e:b0:791:8ae7:4fb8 with SMTP id hb14-20020a170907160e00b007918ae74fb8mr49413449ejc.271.1666972223401; Fri, 28 Oct 2022 08:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666972223; cv=none; d=google.com; s=arc-20160816; b=kElXVawiYokPq7cbnNZdn0P2di6EIFXUtOaFtO0yuGuBtjmSQE6F86CFmxRRrrRoP+ xbWaQ1aEjD4EczVcODlLbvVbNsjxO6D816HnBStnwxbLAcm5G71YKWsTSGrhPLJQ3bOt xFvFH1u/ohfx1ocNvLONlm9/8U3Szo0L+b/SaWD/+quvXfu0mTnkeTpr+vM1NF6gE3Jw Tql+ZHhP9fuC5nyzOEerapB8ofxGvDEUSIYBqn+2GFVEyM892hPHkrbLPCShwKkjjsI/ /IrMcOF8p5qkwvs+nGJn7g3jtVVaYJ/k0CKfBRkX6JL3szntF9ZDldV0sU4ZXKICP9dZ TPkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CGpWpYk9FObgq3Y62dYBOf425/zqj5oaH/xiIhX/NB0=; b=OJmCE9Wv5jihhEBOkhFKi0UAmN9LA4j1xBF/HiiUKq5CWF77mWgR+d/BP810Gb7Xt7 5RL9YeH1GoHMFmCfK/KfTXQDZlxT9bKHoxOfkBgvh9qbAEkyICApgAprbLirlUP9mbsb v05ElPBXISjJMi3AixeCYaBQJRUz0O3MBcY2RTBR60cFOhL8glWWWaxXbpXeXKQghm7S hHjfOP05wzpeXdbmhd1wSEh6ZjjtHw71NZaJLYxX1SJy3FRNg8jbaPx2T/h4U9O5NGZO EpdJ3X+6PeUgdrqk0xjgBpy4FXbjLV34EF5F9ao/cvoh9xqZX07WTytg9gDh00vm8DiU WXXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=55nZPiMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a05640227d000b00457fc1bcf12si2834481ede.183.2022.10.28.08.49.58; Fri, 28 Oct 2022 08:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=55nZPiMl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbiJ1PTw (ORCPT + 99 others); Fri, 28 Oct 2022 11:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbiJ1PTr (ORCPT ); Fri, 28 Oct 2022 11:19:47 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55532DF11 for ; Fri, 28 Oct 2022 08:19:43 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id i12so4274236qvs.2 for ; Fri, 28 Oct 2022 08:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CGpWpYk9FObgq3Y62dYBOf425/zqj5oaH/xiIhX/NB0=; b=55nZPiMlGB9uq9VZeUxYDbFpBpFyDYpUXHMjc5jWIv5lCKjUYAdXN9WWieQF4qj3y5 nSqEvglG6RNbTt/ZiBGeC/HfP49lE/bojqAXJlAHcuVRBmsEBZYm0HyIYG1RaFwYvicX brzk0yOd3wsqFHiOi8jdNteliOSONgcj4WjUGVfDjs2OETp9mvxeVJrdZ+52WEKbVq0m Eo1uXP5JxaOS9Ctl4XTt7xmbIGWI8bA3ywwnd4z86SFSUQGrE2jiw+Q91TX0YNd1Vrj1 XnKqsmUjeqXWSqa1bTFPwVGW2bLbEiBy1Ug5TJG855XdHhxRp1geEprHclmPu8dH9Xpt S09g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CGpWpYk9FObgq3Y62dYBOf425/zqj5oaH/xiIhX/NB0=; b=g5GSuDQ5DrI7pD5VD/D6h5KbyFXarTAlsgm004OlSRKcHJyFdEkCItdc+7h06eLvsl DtCnPEooEs2ZWXIieQ+Y04MTwcdNaZxnmdbvPLKX6O3uKaJPu9hO9sCWAuI7gWwuurrO 84yH7pvSmsoEBFg5GAbcs6MWKiobgAVKnzu2UkzYdotXz8LV1jOF9onCA7NGgSP8zFOI /pdDoLILXTX0XYmgBmyiJtaV4nT948O9mHIRthQ7qWKvi5OOxcplW45TZqK3kBVK7HYN AIt+mMLDOj7HQrpxeDFWWfyf2w/gNTM1YhlKYYfjwqqwgDoPa4mlS3Pce87VtuOjqzVC vs0Q== X-Gm-Message-State: ACrzQf1nwvH17jc88Pr5g5EaQ64P3Ef8XTxOsMo9BvWhs1ZrEa4Bs716 whh/bfNyFTxSX9jFd6xvjtNBuMjsyPNn4A== X-Received: by 2002:a0c:e2d4:0:b0:4bb:5902:922c with SMTP id t20-20020a0ce2d4000000b004bb5902922cmr33636qvl.57.1666970382477; Fri, 28 Oct 2022 08:19:42 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::25f1]) by smtp.gmail.com with ESMTPSA id bn1-20020a05620a2ac100b006b5c061844fsm3068979qkb.49.2022.10.28.08.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 08:19:42 -0700 (PDT) Date: Fri, 28 Oct 2022 11:19:43 -0400 From: Johannes Weiner To: Nhat Pham Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, minchan@kernel.org, ngupta@vflare.org, senozhatsky@chromium.org, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com Subject: Re: [PATCH v2 5/5] zsmalloc: Implement writeback mechanism for zsmalloc Message-ID: References: <202210272158.7swYwd23-lkp@intel.com> <20221027182736.513530-1-nphamcs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221027182736.513530-1-nphamcs@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022 at 11:27:36AM -0700, Nhat Pham wrote: > This commit adds the writeback mechanism for zsmalloc, analogous to the > zbud allocator. Zsmalloc will attempt to determine the coldest zspage > (i.e least recently used) in the pool, and attempt to write back all the > stored compressed objects via the pool's evict handler. > > Signed-off-by: Nhat Pham Acked-by: Johannes Weiner