From patchwork Fri Sep 22 19:36:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vishal Moola X-Patchwork-Id: 14403 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5825198vqi; Fri, 22 Sep 2023 12:42:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ4le4A4BFKw2H/Xlw44AGSH8jFNuskdSUmnz4rv1KME9OItvI5iJIkVWf9MbZD/GQfIje X-Received: by 2002:a17:902:788f:b0:1c4:44a0:5c03 with SMTP id q15-20020a170902788f00b001c444a05c03mr404051pll.9.1695411735411; Fri, 22 Sep 2023 12:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695411735; cv=none; d=google.com; s=arc-20160816; b=GEeVtjeFo3O9w9oqlZtEZMC4nvL0mnpTbi5ZIUgUoxqlrSh9DotYf3C+072XlCIGmS XAsVsdWI1g1fZg9WHGJCbdsqTUZ3E/60ymCNzowJxavytTKN8Cx5hPRvSE+KiP6flAR/ ISepqpN1aePQaDpjE8oWNmJ+WO4xLDUV+Tn8C0xbjM3Pevx8Mk+CWT8+mTyH5AxNRdHm t3fxpbxL3vgknzow3v3MNTsnu5w0CwIlk+WLdheiADgRBRvTnDkv5r/khkrlF/l/9AnW bFEyXraxhz5WY9lOgwXZ9lo9kFBedthMMTIBILWSVJxuYj6EhxmjXIhb8svVKt0PLjWb 08ng== 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=da37cK7f0DLWm75F0VD76b8MmO4wjEBlXspBzXAT+eA=; fh=4qFuugfqw5PAR7+hGyaRe9WHUJGirFG+O59K7JUPnfM=; b=IfMcgBABO6tfhwe6GT2svcSJB8Nt8Pw6tFz/uI/jnykwjC7qOFixNuJ42z0xM3ltq4 04UGcZ/FnE4rRCd4Z3EspRdlake3QMwW1NXOZ0cq/5x5B0/Q5OKSQLhxXMVPgN+vmNbZ pxxUwCV0VJK4Cq226xI4eP0D/cr26o34MT/UfL0ErGUVHkCnHxynYb0mMcFXwZf1Nm0i homZ1uTAci0rHPzRoEEmqxQQLwgJGWODb5TaM9oVYPSe/PCqKjELEn2dnw2ytuxz9JN5 0dhodbj/4Pr5i/MpxRFkp1wcjPNrMERGi8iD7EU/R9cb2MnPVuxtrXGmVberek/lMQcM O09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hSLmnZkI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o18-20020a170902d4d200b001bbd70bdffbsi4672718plg.440.2023.09.22.12.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 12:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hSLmnZkI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1C7D48183251; Fri, 22 Sep 2023 12:37:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231547AbjIVTg4 (ORCPT + 28 others); Fri, 22 Sep 2023 15:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjIVTgz (ORCPT ); Fri, 22 Sep 2023 15:36:55 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD7D9B9 for ; Fri, 22 Sep 2023 12:36:49 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-68bed2c786eso2461746b3a.0 for ; Fri, 22 Sep 2023 12:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695411409; x=1696016209; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=da37cK7f0DLWm75F0VD76b8MmO4wjEBlXspBzXAT+eA=; b=hSLmnZkIS82o96fDvUHDbnt9NZWo2JjNhU/M54R8WxbG33pMWOo8rKpa2aKJ31VNFT NCb0RgCQr84fz1jOYdW+lJcyKdfIF5zFpLiruc5zOD9nxVghnOCaGogsycyIjQvkmiDo ZE/KKdUJoDLYh9n0/Qp/n2NjgabJi8iLOqeKX4zzcYGh/ICRjRCCqI3SN2lQnFX427pd Jz8GiZc5H+D+XX7V9XCgmjNQjVK+ETdqE/tL4bOyRokHrsfr6o/GDJ5jVeEVGkUE/8nf mFuBqoElWD9RgnQvd59VomiVCdTAGWS5OAtQ43c2+uDJi0a6H6eldZlOFV+AyoWm4eFa ak0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695411409; x=1696016209; 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=da37cK7f0DLWm75F0VD76b8MmO4wjEBlXspBzXAT+eA=; b=NbKHUKMAQQTNbmcKvSFbFdhzX1wpFNUxCaZoKbodSaqauVFwqeLJPOwYG8F5tIzJ5R NU7/jAHO75H+NmpP+4NDW1h3CyL4UCMCUKZzP7b4RN8Eg5rMOZH9VzB2fsmX9Hq9VQ5x WFbsT04u5r9vSljRTNxB0akiMsUAh8nszA2YWcdHXjMBE/Ur1QpZQAoPI03XfAQmCpT0 1rkNY22gW40lQnGzWUts1y0zb5T732wXPMaz9N3m+FUOUcWr5Ka5QNZ1RmZ9YUfBsz/Q Wm9FBFoIio2TUpVzKYcdYIz81z/h4CHf5DpWUMrxLW06J/z+guTY6uDxTZy8lK54TE/6 T1PA== X-Gm-Message-State: AOJu0YwSW1Gk+ddJ89XdmXOKPYHE+cqygqQ6HN8gIsPgzAABWAv3rU8G 7+eg1DYqi25v+ZGBn5pVgFyRpIBlzC8= X-Received: by 2002:a05:6a21:9805:b0:157:877a:5f5e with SMTP id ue5-20020a056a21980500b00157877a5f5emr338411pzb.61.1695411409240; Fri, 22 Sep 2023 12:36:49 -0700 (PDT) Received: from fedora.. (c-73-170-51-167.hsd1.ca.comcast.net. [73.170.51.167]) by smtp.googlemail.com with ESMTPSA id q16-20020a170902dad000b001c0cb2aa2easm3841833plx.121.2023.09.22.12.36.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 12:36:48 -0700 (PDT) From: "Vishal Moola (Oracle)" To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, "Vishal Moola (Oracle)" Subject: [RFC PATCH 0/2] Remove compound_pagelist from khugepaged Date: Fri, 22 Sep 2023 12:36:37 -0700 Message-Id: <20230922193639.10158-1-vishal.moola@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 12:37:02 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777768055979783588 X-GMAIL-MSGID: 1777768055979783588 Currently, khugepaged builds and uses a list to properly account for compound pages. Now we can use folios to account for these compound pages as singular large folio units instead. Removing compound_pagelist streamlines the scanning/freeing code in khugepaged, as well as reduces the overall size of the kernel. Vishal Moola (Oracle) (2): mm/khugepaged: Convert __collapse_huge_page_isolate() to use folios mm/khugepaged: Remove compound_pagelist mm/khugepaged.c | 116 ++++++++++++++++-------------------------------- 1 file changed, 38 insertions(+), 78 deletions(-) Reviewed-by: Matthew Wilcox (Oracle)