Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11923780rwd; Thu, 22 Jun 2023 22:00:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kAcvWDeGVDkOa/m5ISC9GkKGgmOZYdC5AQC7Z0vVF+LTIZGhffNJevqLxus4+y8qQrIi3 X-Received: by 2002:a05:6870:c787:b0:1ac:fe08:fc79 with SMTP id dy7-20020a056870c78700b001acfe08fc79mr7416273oab.34.1687496400634; Thu, 22 Jun 2023 22:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687496400; cv=none; d=google.com; s=arc-20160816; b=nrJ1TzlrOrALrCadR796r1AoUMyTsXGkPICfv4zGRAsYJ3K0m8k7TFTtFS/Mx/8+oe dGneB6yqfQP8fvviFKg6hixMmggkzTd2a2o5t6ZRZ8Wk7DnEpNDjMjC9wE55zC07MkSa LxBFYhm4rLZ20TILAY6EgjemA1HXVc61XcrYop4W8EJntHzRYiDeg/IxmUrdt4mORvJ1 b2W1fDjgxhFpUQ9SxsoOUIEnmccPG38OprM4oUMl0FkGd+B2DkOIYt3FyayEE5JWycqd pBR2AIBgxlBobMP17Lr3bOCqFB27c2WUdxP4MrpV7BtA5hDjcuQ87EFfKFUlNWpz0CTG cLWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=62yt5qVWyoZQmnreF3LrrB9sgJCoX3gsQ54vlPJGid0=; b=UI1s9DliL23m2hMtoU3BWikR8TIpkspgLyPyr55DhAmnCnQg2qA7xrHL9cVtz6Ldqm nLEDIX4JMh7YQaiQaJGlw1BInAPQL/EodEOabH+m6bwcLBe9Zo04RqaJ58gXfaEGGm5A 7fKk6CIijnHc/n8ZOCIkx//IxJ3q79fG1m7uwuQlwTsCa1BglurAEav9yL75u78w0WMO lXzZ6EmCReZ9RAfX9/1ggxcujm/wf3rpw7F257uhFoswYfLEaEOtGtlVVauKXrMVFEAd zzBfRMR9CkgiO6mX2oW8TnAmq6QdyZd8moZQl79Bc3CdJO4EONRiRIBsm6mQ8i45CPI8 21XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iB6lBo9Y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a637d55000000b00548e140a1a6si7892052pgn.66.2023.06.22.21.59.47; Thu, 22 Jun 2023 22:00:00 -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=@chromium.org header.s=google header.b=iB6lBo9Y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjFWEke (ORCPT + 99 others); Fri, 23 Jun 2023 00:40:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjFWEkc (ORCPT ); Fri, 23 Jun 2023 00:40:32 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2115A2128 for ; Thu, 22 Jun 2023 21:40:31 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6687466137bso56936b3a.0 for ; Thu, 22 Jun 2023 21:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687495230; x=1690087230; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=62yt5qVWyoZQmnreF3LrrB9sgJCoX3gsQ54vlPJGid0=; b=iB6lBo9YwW5MgxYwZFgqhOkY2MxLda2QRoe6bpJZpeme26dHBnK6VhAXCfJUBu+xGm 3qvoaIz/7mOcBKwqVYbH8g81LomgB5PwVv1TfUl5a7Tga0XN0c7Rcl/hRAkTai1BM3i3 v/SmCCfyPDaATunRcie8miSfjxwrzo/Md1mtc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687495230; x=1690087230; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=62yt5qVWyoZQmnreF3LrrB9sgJCoX3gsQ54vlPJGid0=; b=BVAPfemy5c1AYKpPygcHWlvV4+dqvZ11Hz9F4SSoc1kS302eCRBP7zBgfgKbirGLdX mB2wBInZrIe1VnXVgaPJie3l5Csrq8O57Ydz3s+dVsfxtN3WOeE+Kl537MSn2vQMNibs UYEYaHPDBvBt3C8y5GgIR5tbaESSI9kz75Y9meKt1UdJSslOFFftCDHOFvimZivh9q+r tEHsM31uuXexdo3/Kc+LgQtkijqHCOYXiJYR878ZpmEDuDoSLGd/E4QUwueBHBEggboR HMYWeCvBMkU10hMoXJDXuW1xm8J9VE4KfBW1QqWQ/QzzrHT5im3YAjIosTR4IerlfxLC BPxA== X-Gm-Message-State: AC+VfDxJMRdTLJQvt6ZAZbZYd778FRHlouGveEGQ7ZDPVittim66/aks Pt3u+m+8CCLCQQxlm7bhE/q3cPEdw36gOd86PLc= X-Received: by 2002:a05:6a00:24d5:b0:66a:5e6f:8b21 with SMTP id d21-20020a056a0024d500b0066a5e6f8b21mr3276075pfv.2.1687495230542; Thu, 22 Jun 2023 21:40:30 -0700 (PDT) Received: from tigerii.tok.corp.google.com ([2401:fa00:8f:203:3383:b451:fa2:1538]) by smtp.gmail.com with ESMTPSA id q25-20020a62ae19000000b00666e17004a4sm4237350pff.58.2023.06.22.21.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 21:40:29 -0700 (PDT) From: Sergey Senozhatsky To: Minchan Kim , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCH 0/2] zsmalloc: small compaction improvements Date: Fri, 23 Jun 2023 13:40:00 +0900 Message-ID: <20230623044016.366793-1-senozhatsky@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi, A tiny series that can reduce the number of find_alloced_obj() invocations (which perform a linear scan of sub-page) during compaction. Inspired by Alexey Romanov's findings. Sergey Senozhatsky (2): zsmalloc: do not scan for allocated objects in empty zspage zsmalloc: move migration destination zspage inuse check mm/zsmalloc.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) -- 2.41.0.162.gfafddb0af9-goog