Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2968120rdb; Fri, 22 Sep 2023 13:41:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0dJUKbwze+I69dLFRgLb1GXgIVcC1nlAeGuCIYMuGY8QcNPFkdR+ygWTWb7ZcTswPvWdo X-Received: by 2002:aca:1c14:0:b0:3ae:2b43:dd4a with SMTP id c20-20020aca1c14000000b003ae2b43dd4amr764458oic.45.1695415269994; Fri, 22 Sep 2023 13:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695415269; cv=none; d=google.com; s=arc-20160816; b=E1ajp/mSgEEOh41RzWorm7NdqIjLJpG45Vc7KACkg9G56W0kM+dr+HwLCpyUNRi/Q3 WraWNeDeogEpdIgkJGKAyoZ7BtHNc+eZz//EhTwzMDYO0uB6QsH0sSBEgl1eCIu8e2wK Anz/NP21bjQ9//4a1MbSHLkdyy0SwNtJyuGgZAYvkm9H6so5gmdj265crIQlABGP29FR fd/iZc/F/ylzMXuP/QM05Kcer/lGdag9zSqvnKAAD/dFAaMne4mA6pw0Qe/vr1rMQWr1 95RysM3tYZtHhIjvX0fq1YAZbG69qxvFnL5IB17sWTQ1sS5bA21+MbsCjJRWxfxu2w5X WiIw== 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:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x24-20020a056a000bd800b00690d42e3347si4094396pfu.157.2023.09.22.13.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 13:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; 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:3 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 lipwig.vger.email (Postfix) with ESMTP id 41CE48315858; Fri, 22 Sep 2023 12:36:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbjIVTg4 (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 12:36:56 -0700 (PDT) X-Spam-Level: ** 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(-) -- 2.40.1