Message ID | 20240219-b4-szmalloc-migrate-v1-0-34cd49c6545b@bytedance.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 688A6C48BF8 for <linux-mm@archiver.kernel.org>; Mon, 19 Feb 2024 13:34:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83C8B6B0078; Mon, 19 Feb 2024 08:34:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E9EE6B007B; Mon, 19 Feb 2024 08:34:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D90F8D0001; Mon, 19 Feb 2024 08:34:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 610FB6B0078 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 08:34:26 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 39776A0347 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 13:34:26 +0000 (UTC) X-FDA: 81808647732.20.DF93779 Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) by imf27.hostedemail.com (Postfix) with ESMTP id 1049A40026 for <linux-mm@kvack.org>; Mon, 19 Feb 2024 13:34:23 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=bytedance.com (policy=quarantine); spf=pass (imf27.hostedemail.com: domain of chengming.zhou@linux.dev designates 91.218.175.176 as permitted sender) smtp.mailfrom=chengming.zhou@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708349664; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=2ISyte5UWh5EskvoQ3uPi3nhmjhPWlYlvh4+MvPDVr8=; b=iswCE9/Ia8Okui9hNLBOUHU56KPnRKvYIg50vosyQwhHp3aThkEO7F9jBgiYP52KsJO/0H LOC4uXhbjoW7FnhHi/KM3aO1r/Cvv+iT7rXaMh0hqOr4Uue7JoXF9HstCTtCdMECYU8AAZ JRzaLQw8fgpG6cyyqGubUE7/YQ47fYs= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=bytedance.com (policy=quarantine); spf=pass (imf27.hostedemail.com: domain of chengming.zhou@linux.dev designates 91.218.175.176 as permitted sender) smtp.mailfrom=chengming.zhou@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708349664; a=rsa-sha256; cv=none; b=cdcQFqK+97FvgqFfOxsddGz6Pa+OgFIPNYZzi8Pix/SQp82vSv28LQxPlEYBbe2QlP9mNF +mJKRO4ytV/K8k9EcrHi0pZ6e78aVQa6bmr1aJJhn92pioNm/RBajnex+2/T8fx6LT0oww Wr8nmsIdKvYFYT2GlKRkhLznD85iIpU= Subject: [PATCH 0/3] mm/zsmalloc: fix and optimize objects/page migration MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-b4-tracking: H4sIAL5Y02UC/w3LwQqDMAwA0F+RnBdogjC6v0m6oIFaodEdJv67Pb7DuyCsuwV8pgu6/Tx8bwP0mq Cs0hZD/w4DJ54TU0adMf6b1LoX3Hzpchhmzm9iJtVEMKZKGGqXVtZx21nrfT9qY+S9agAAAA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou <zhouchengming@bytedance.com> Date: Mon, 19 Feb 2024 13:33:50 +0000 Message-Id: <20240219-b4-szmalloc-migrate-v1-0-34cd49c6545b@bytedance.com> To: nphamcs@gmail.com, yosryahmed@google.com, Sergey Senozhatsky <senozhatsky@chromium.org>, Minchan Kim <minchan@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, hannes@cmpxchg.org Cc: linux-mm@kvack.org, Chengming Zhou <zhouchengming@bytedance.com>, linux-kernel@vger.kernel.org X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 1049A40026 X-Stat-Signature: n7189inw3sud6j5fu9jrffpdbjbcy341 X-Rspamd-Pre-Result: action=add header; module=dmarc; Action set by DMARC X-Rspam-User: X-Rspam: Yes X-HE-Tag: 1708349663-206246 X-HE-Meta: U2FsdGVkX1/Fl5p9GAmPUJU7/FKNqFKzD5Glq7DiFEvxugxbUnKe8IPuzANq3CKafF3Y9tYMdd9skQw7BRmCAgRNiiLghOqfOH18HcoMhw0so3xRguudx4ST1m0LKuvqh1psW8JjT+hFy9FUelhO6vI3rYCuFqoDBtH2P98+fW5Uvq2Xi6sC5uK4UfgDK1kF91QbQ1Seq1t78ouNuTbIaOJsEe/fWfEdaGugRZ5zmEU2Ld9MY5kpxBQ4wdiPeaYUlw2rT4MQqrxxy24lceDNpeQhR9oPJ0Obi60TJzfr+iRiLJDa2DwyVpp9X5KSojLswMwv1H3uI2hKNGbHTCzX8iPUYY1lLEKeiQ0UcA3eQ7oFXRnE80hnaTrHEA+3aYV1rKybK6u4EMmf33yZWLdHvN1oFJizMasta8HNq+5rrXkSUy1ODIp+m6M6+2XbnyQDYIJ4nMSFEDouTd3Zxlb5JGdGWFB6t2XeLRCW/QaKGLYVEbWP38S7vnm91rgDR3Weycpye5m8IvJyGWCu38xJrDoel/ZXG/fH0Ss9YnKbJD9Dev7zVRLo9ZLzKJvYqrFtACdlnvyRsbCBSN7/xgLkufqM20j/JpHAI1BJWgP0RnUkYoSDTruedIzUcrPzmFf5t9wmOWnhpnBfz+WiAnNbWXEh/7uEmKXRVsdntDc2KWky2pysrJzm2TkG55ULldyyFWcJLK2+wubJEvvdvILujGZnoxIA8RLd0auZfNqUQemorkxPicqr/E8hnDE2XbBoWnf3LwMt+8d4c7oqVddJU1lNKs0idiNA/yfP0/yfVynyrjfpPJtSUqgeGo7o63ca/eOwj8SKoFMFh2A3pYs6lvSQyqErzyfUotCHQfnQQQEM4yyJb5zMWbyIcHFM+69i9SO6jBkrF4neUfkSnZASD45bKtvor6rPqiF6DCZ6Vk3W88voTUvhHbnjoJraO80r0eW3DM6ZBVa4JJD984/ kpTet+fR IBHNdJ5nq2lg5cXurYVWbFUmqopu6KuHHqcIXIo2RhCQaxgYKOd4HYVOLVlVnZZvumOkgvRITPztx5l1WVHDVyn+vIdfSC0suLK/j4SqjjCqkP1r5wU2uSyv6ffoP2Py+uoWYcmfvCv0ISK8rvbeOkIEAVoNmD0mSNqU7oS5qwNEUCS1LFOGa8odeL3EZ/7uPMtuMrOwsEIJYu3DaK8VBeMfHDOBc3+mfbuMcRA0OFxu/VhOqS55C2dttZ4IjRtBUlas+KIMCSh4oXwmgqdQXYAQPJAP4mlOw7uy80vfaKpFK57/l1PKR75L7DS3IndXY/aCDUCoPtOS1iCs= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/zsmalloc: fix and optimize objects/page migration
|
expand
|
Hello, This series is to fix and optimize the zsmalloc objects/page migration. patch 01 fix the empty migrate_write_lock() when !CONFIG_COMPACTION. patch 02 remove the migrate_write_lock_nested() in objects migration. patch 03 remove the unused zspage->isolated counter in page migration. Thanks for review and comments! Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> --- Chengming Zhou (3): mm/zsmalloc: fix migrate_write_lock() when !CONFIG_COMPACTION mm/zsmalloc: remove migrate_write_lock_nested() mm/zsmalloc: remove unused zspage->isolated mm/zsmalloc.c | 63 ++++++++--------------------------------------------------- 1 file changed, 8 insertions(+), 55 deletions(-) --- base-commit: 9951769060d8f5eb001acaca67c1439d2cfe1c6b change-id: 20240219-b4-szmalloc-migrate-92971221bb01 Best regards,