Message ID | 20240908140554.20378-1-richard.weiyang@gmail.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 B29E1E6FE49 for <linux-mm@archiver.kernel.org>; Sun, 8 Sep 2024 14:06:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2FA836B00A4; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2AB816B00A5; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 172736B00CD; Sun, 8 Sep 2024 10:06:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id EE2256B00A4 for <linux-mm@kvack.org>; Sun, 8 Sep 2024 10:06:14 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9A0AE161D35 for <linux-mm@kvack.org>; Sun, 8 Sep 2024 14:06:14 +0000 (UTC) X-FDA: 82541745468.21.4234746 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by imf18.hostedemail.com (Postfix) with ESMTP id D64121C001D for <linux-mm@kvack.org>; Sun, 8 Sep 2024 14:06:12 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mR8OGoED; spf=pass (imf18.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.42 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725804346; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=RDw7ML5GW+9pmsXJorZMHfS9WGTwdY2h+AzGB8X2MM4=; b=sSo2yIs/5FsGm0JBEM6SyLENsTrSANup1Xt5D/s50IVUsJwG6BwSvow0dlTrU+ddnAW8B3 UMVTMzloIembzX5YvVnxwN9hWkZFxuHHa8fh1yWEMSBpQIpK5Uos988lxPOxysatoif54/ xyFWJ04ADBx/FMcuajMrBBMXNyqcpCk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mR8OGoED; spf=pass (imf18.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.42 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725804346; a=rsa-sha256; cv=none; b=hYNrX5rrmW5xO4kwYCOwKygmDSvVOwDqP0ayvcubJ4xFg6e3rkyEpw88C7SQad+Sd7Ac91 FzbV6eiMFcojPeNLxy6swAtk8pA19rIo7BYgLCltXc3aInrcADuzu1kcx0XsIeufFRL6ey 27fJ9Z6d22C8PV+XtYcnI9RPy3+Uqyg= Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a8d4093722bso119588266b.0 for <linux-mm@kvack.org>; Sun, 08 Sep 2024 07:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725804371; x=1726409171; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RDw7ML5GW+9pmsXJorZMHfS9WGTwdY2h+AzGB8X2MM4=; b=mR8OGoED98Ys53+pHRP+yV/jJHTO9vcP4lbPEAykGhK37fx+RHtY9VDRFV4Yu1isP4 GKRARBl/X/vCqZnhR9Jo2MnUe0QQVp8ws5qxDrDK/2Bq0L7eSvFhkslcRiiHVghVUEl3 c7wueNVyhEt/quOWQTAcjJJVkKck8qkl6vBV/BHKXFVMfPgVvJrTANhvfldik5lYg7ee QpVwrA4zpibJf5Rnx9W8KPF5TZYbJwrhSNyvIqCsqIicjjc5uBQOz2C+C3ZCVxtTCeRl FUldNVZ1EO0ehm6tNJ0seIpijJH4vPmTLUi5c1mXS5B95OYsshLs2AtwNdNSZnxOwMFW /81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725804371; x=1726409171; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RDw7ML5GW+9pmsXJorZMHfS9WGTwdY2h+AzGB8X2MM4=; b=YEc2bQvuCufFS1Ya9c8uacqae5OVTeA4fuxk+FrI6GfXLud1l1oLeHh/40ZGko2mZ+ K0vHx3noSnDzkTpx3lbYGWCXnjSKlcMEJSif2Wa3ddtDG2sCHbaaeAbp/fFB3D55ncF4 3dkKlvog+QQZiUZoD7RfasieR2mJM+gZ0U/+YT+ElYjBoJUibQKUa089X4LHaihCQzR6 3zn0JKW6H8Ybs6KVGBcNdzDiH1xn6djiPbP1GUDcIRtVsmM3vUl+kijhCLN1NTnHOrQw TXnI3nvKwLuzI8ryNab/DuA5dDuoSxiz+0QVjWhnWWnjFpSvHgdGRUE7pkiVfz9/Akvy wuQQ== X-Forwarded-Encrypted: i=1; AJvYcCVIupTWJimiAOwuMCq6Ev9Yg0Lbk/dFbSUr44e1qNHPZ2R+JRYsUFOuFrNHLpAnqHT2MLp0xd0X0g==@kvack.org X-Gm-Message-State: AOJu0YwY7nbvO5H37Gpqp8X5Y2get8wumHk/yoxj5QSJ03cMQ7rrokWM h8/yOQ/FKPWtrWo+m6gaf3S/ofIWlg5NEOHz4NEroO9kBVzFX6Xb X-Google-Smtp-Source: AGHT+IE8A8THsFNK4nrZXrP3T1gJYOnuzaaz8LpolLKeSooyQNxhgOidUEMSHjUfZdU69zMge5r+yw== X-Received: by 2002:a17:906:c155:b0:a86:c825:7678 with SMTP id a640c23a62f3a-a8d1cd6a601mr683406766b.64.1725804370783; Sun, 08 Sep 2024 07:06:10 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25d547e5sm207606966b.201.2024.09.08.07.06.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Sep 2024 07:06:10 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com> Subject: [PATCH v2 0/2] Reduce the space to be cleared for maple_big_node Date: Sun, 8 Sep 2024 14:05:52 +0000 Message-Id: <20240908140554.20378-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspam-User: X-Stat-Signature: ixbh83hq878md4cwetg7mkbrxobi1f7i X-Rspamd-Queue-Id: D64121C001D X-Rspamd-Server: rspam11 X-HE-Tag: 1725804372-381187 X-HE-Meta: U2FsdGVkX1+uO/IZuhYgfo0GZl65RmOJ69qaGdif3zJa1HrQw+3ViH/sqhpaLz6E4nTBu8n8KXCtrs1oVwLin0OX6uzRXVkgX4is4LQfnwmIKsuzluqiefydkEPRvw+W5f35nmW5sgh9PLqMyXU6gk10jECk8+oF/MOrItedLVHNSMWSD7HpVaRtBYKKgibUCY9GJYY7VGwtCG1NIKhILGQN0aHaZy5PEuPRePrKOBuzRKnh8YTxRzGvpIMOdfk+We0jGWkY5UTJ1aw2ZJhUGfZpHfGKDc1vco4NFVRyq+0wLQ/laxygZxoUB5yjc5g10zant0pOX7q+l2ukzsevU54f26dQMnu5zy6XDg8B5jUEHNLMZiUa58QlvvNq9tfoamLMNIV2K2HUD7lARUE5Eh7W6ai6exN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amicity=0.399248, 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 |
Reduce the space to be cleared for maple_big_node
|
expand
|
Hi, Andrew, I don't see the notification on picking this in unstable/stable. May I ask would it be picked up? On Sun, Sep 08, 2024 at 02:05:52PM +0000, Wei Yang wrote: >Found current code may clear maple_big_node redundantly. > >First we define a filed parent, which is never used. After removing this, we >reduce the size of memory to be clear on memset. > >Then mast_fill_bnode clear part of the structure twice, since slot and gap >shares some space. By clearing the whole structure, we can avoid it. > >Wei Yang (2): > maple_tree: remove maple_big_node.parent > maple_tree: memset maple_big_node as a whole > > lib/maple_tree.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > >-- >2.34.1