From patchwork Wed Nov 13 15:07:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 13873865 Return-Path: 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 6774CD462BF for ; Wed, 13 Nov 2024 15:07:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E704D6B00B1; Wed, 13 Nov 2024 10:07:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E20D26B00B2; Wed, 13 Nov 2024 10:07:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC1166B00B3; Wed, 13 Nov 2024 10:07:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AAF5F6B00B1 for ; Wed, 13 Nov 2024 10:07:37 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3A253A0ABB for ; Wed, 13 Nov 2024 15:07:37 +0000 (UTC) X-FDA: 82781398770.01.0CA256D Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by imf11.hostedemail.com (Postfix) with ESMTP id 821C640002 for ; Wed, 13 Nov 2024 15:06:40 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="C19PD0/v"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.214.169 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731510278; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=FjuR1N0ToMPdzatgrXplUYsQ0QvvQlftOpHhJBSVfTw=; b=uXEhrK9qZVSt1Uy1i/7MQ2tftLEF2tCtbYVpDQOB5g4l4YHKhNspTzHQYoIdJ1yTrO64Mr g53o4WhYqTamzzkdKsZ/JoHAElhaNZt/gFPLWLFIEx/0VV5P3bcOZMK/IVbNkD1Yd3bil+ kb4+4w/Aq4QvwXA/hhPsccYsWTV0J3k= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="C19PD0/v"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of laoar.shao@gmail.com designates 209.85.214.169 as permitted sender) smtp.mailfrom=laoar.shao@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731510278; a=rsa-sha256; cv=none; b=DP+QsmJwJjCNxPyZrOQr2TVOFAcQ9N+AswczjMURqyweLRpmbc9aZDPV6ewUl/mkNh+1N3 lWCow9QwAFVYpOqNzaiNiLl6QnglTDMou9pHH5FSmUFuSkCuoODoFjF5AIJ/QGGhHysm70 0mKW50qHCLykWyVR67sg7TfuFuTWhis= Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-20e576dbc42so74092805ad.0 for ; Wed, 13 Nov 2024 07:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731510453; x=1732115253; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FjuR1N0ToMPdzatgrXplUYsQ0QvvQlftOpHhJBSVfTw=; b=C19PD0/vFHMMskVUq2obImqzshnq42Fek3yf7uMfw5A6XsBZSkqXSzviGzBOAiWvF7 /L/VeF0pIRvpsNS7VIQiEIisis7gIAXFqpgJSOAX5+cbV58qANiXaLs1OCtJ+EIgMWEb Z+oi9BTbxUpOtGJSf1ckHjlRxpEIdKwWPApkPEo2MYyZaAw9T8FCBflb6FqvmEp+dm0A 7b2iM9SePJhhyyqSZ4PD1oBH1JUKm5n5F6XSNcJNUP+LkHfTysyE6qO633oqB3JfhCss Eb39AkFfHsxymFXbZghxf+wDv72fWBERF1MaL33Nys50huNLne39FvQqMvNoanVMB3PX zLiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731510453; x=1732115253; 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=FjuR1N0ToMPdzatgrXplUYsQ0QvvQlftOpHhJBSVfTw=; b=VhS4Sj3jBNecOAVktz/V0TZWMqxsHyYJoQXnInOsOjpEDqYj/HdTi0ohSqmtQRvlj6 DlmyEDPESaf/0+mqLeC0j3GNgNTf0RED/h3b7FuyZjILYFkNd2+R5P7FsdDTfz+FnD2E Elq2Mzq3YdXCDSGA9IdNFCQJthxXS29GJv4KxHfRySvnmkVnEK9J9/5H60sEfGaEOIRJ G6Hf2Rf+JWQktMILUzQDfrh5sNHF6deT4ZLDV7lBQLDq8tHNoaU3tUGDlGcP09AToQL9 JKLfwnvpXcqRgS12VL0ZWY07S9HYFXU0m5kZ1hdqPYRC2ZbavHHeFaSCidmTH0n166+L D8qQ== X-Gm-Message-State: AOJu0YzsPgxBC7E22iwTU1XwC5E4N8OaE7B302IsUxQ5fkp6SP9igZGU LqHGYn1i8wf7/raZ0EQ/YRZqKEweDsnErZS+Lv5UNQJqZc/kNh9m X-Google-Smtp-Source: AGHT+IFlGxWv87hsrPlBdWt2k5HK/uSwGd/Q56eji44X8u9hAKnLtGjl5od5ByNQD8d706DbatgMcQ== X-Received: by 2002:a17:902:c941:b0:20c:dd71:c94f with SMTP id d9443c01a7336-211b6698781mr37163915ad.41.1731510450340; Wed, 13 Nov 2024 07:07:30 -0800 (PST) Received: from localhost.localdomain ([183.193.178.50]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21177e413d0sm110924935ad.164.2024.11.13.07.07.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Nov 2024 07:07:29 -0800 (PST) From: Yafang Shao To: akpm@linux-foundation.org, david@redhat.com, willy@infradead.org Cc: linux-mm@kvack.org, Yafang Shao Subject: [PATCH] mm, doc: Update read_ahead_kb for MADV_HUGEPAGE Date: Wed, 13 Nov 2024 23:07:11 +0800 Message-Id: <20241113150711.1685-1-laoar.shao@gmail.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 821C640002 X-Stat-Signature: 8b4wjkpok5dmpxft9c1teuzymhxdzhha X-Rspam-User: X-HE-Tag: 1731510400-987030 X-HE-Meta: U2FsdGVkX19Gco3REnn7XM2qABFwfWXPTWXzI+6q5QRHiofBET+SqobgF5LafwN1+2xq/Ksyf6UmJ9deHkTeCM6hZzrY4v7WkeSzlOkbJrS8M35Usj0ZfHCgSN0owYq+MHFFtfS2CQ8cyEPp9W7Da8dTVVnwmzRCKUtIm0S6hyQPkVXnnU2dX/4HNSK9RDZFD3nKLYFuw/8ijXUu2V49OgqlXVyCSjN0KntbxiGB8bRcDooVPMQeFF6xNu+A1qUOnLHf9susrdHf2jLrpspo9RwzDX3Qcum7dxpziye0dIXHElm7wwWg+pgHlMW055IF9GUGkCw1RVzGLzxdzsd1fTrzJRoWxbzJr8kc2TFoSc9utZ1/YiLNIh4BDyXHT/wrNl9PncGS4OgSEKGTs+dYMk81t7JEGokHIZ6KIapqPVzAkiXSz+c3gy7nB3iVTc74RVhpLfKMDSnlI28wP8lSBCxxetq7qp40b/bm1c1wj3vbz3n40MkRlncOgGJFK8A8c+dUJZ2uITM5FKv0yCMpLWn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: Ham, tests=bogofilter, spamicity=0.000663, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: MADV_HUGEPAGE is a new addition to readahead with behavior distinct from normal pages. To prevent confusion, we should update the documentation accordingly. Signed-off-by: Yafang Shao Cc: David Hildenbrand Cc: Matthew Wilcox --- Documentation/ABI/stable/sysfs-block | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block index cea8856f798d..7a820a7d53aa 100644 --- a/Documentation/ABI/stable/sysfs-block +++ b/Documentation/ABI/stable/sysfs-block @@ -594,6 +594,9 @@ Description: [RW] Maximum number of kilobytes to read-ahead for filesystems on this block device. + For MADV_HUGEPAGE, the readahead size may exceed this setting + since its granularity is based on the hugepage size. + What: /sys/block//queue/rotational Date: January 2009