From patchwork Tue Dec 5 05:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yang X-Patchwork-Id: 173718 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3232271vqy; Mon, 4 Dec 2023 21:54:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFb/4M808h+/IwUO7ZOw1FzPAhusVcNSofiNdAn0HScUFSjMjGBqlkXG5hgTeQZ+wU3oaUc X-Received: by 2002:a17:903:24e:b0:1d0:6ffd:ae07 with SMTP id j14-20020a170903024e00b001d06ffdae07mr2457816plh.110.1701755643003; Mon, 04 Dec 2023 21:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701755642; cv=none; d=google.com; s=arc-20160816; b=vQDEtHNIqD++VvUg3I7ZnOhuD7OPamHM/wm4OthOrx0/oWuSdD2cnfIMg1zKKi2Fs9 /hjfJqRVGaqXTf3iBVA+ufzIdE2CE117SxxxRuTFH9teWbxLN/qCf7XMSg5IJ1JJJuJz EeXLpRx+PrwcigDP1X3ba8xdFy7LdnbVHRKEoxDPxCUT9Iyl7YEWUi/FCKTkx7UHek45 H/2MFsb8zGp3JY5ILLHbumncnzQlnZa9hTfyZuhGf1OkugCDQALRGQbDvgRxenWaHZZy zVr8uVuoxLMPJXRaGyxfJyqijWc2hgtQi3/fh5O8TCHXPbdK+kERIY1l0T8X4UZ62Wzn rcaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=oF043GMfoAltsrUpHDFKGFfsvUoQTCpJe59pJtwv9OY=; fh=yYHQyGY6whZ+E94j5o0tZUbTkNTHwmPRNMDgFQujwOI=; b=tpSlEFynMuNseIuftZ3fnpycZkiSQ3ci/KMQpoE6hd29+4dD8DX4OC/hnXA5xqYy/v f+3110q9w1hyZxVC5Wl+zsd/UEMWzZNg8L7JWDHJsZqIdWllXIayYsGawaZXmvcCVSQR YcU4MgTjJsozCs4uFNdhWjXaCYntrDWBxBaZDFZVuh2sIPXWthtUpLUBKWDaejUGJQpT zqymCyt+j/O5IAWtklOgM7kR5/W9hHceYkB18Hfw2zN7231UjULv4z+RzOl1OJwxUPcS icRO+11p74ESUbKSEJQO+S44GhcRtwWmOGoNBHVNIV1rHZnygL8jTgTDPe+lpFtLGLRw JWkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n9-20020a1709026a8900b001cfa17ec30dsi8732257plk.508.2023.12.04.21.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 21:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B1A8E802170C; Mon, 4 Dec 2023 21:54:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344316AbjLEFxk (ORCPT + 99 others); Tue, 5 Dec 2023 00:53:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344284AbjLEFxg (ORCPT ); Tue, 5 Dec 2023 00:53:36 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [58.251.27.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D76116 for ; Mon, 4 Dec 2023 21:53:42 -0800 (PST) Received: from mxde.zte.com.cn (unknown [10.35.20.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4SkqTX6GY7zQ66 for ; Tue, 5 Dec 2023 13:53:36 +0800 (CST) Received: from mxhk.zte.com.cn (unknown [192.168.250.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxde.zte.com.cn (FangMail) with ESMTPS id 4SkqTX2RBRzB5NLQ for ; Tue, 5 Dec 2023 13:53:36 +0800 (CST) Received: from mxct.zte.com.cn (unknown [192.168.251.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4SkqTS6nF9z5B14c for ; Tue, 5 Dec 2023 13:53:32 +0800 (CST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4SkqTG0zc9z4xKRy; Tue, 5 Dec 2023 13:53:22 +0800 (CST) Received: from szxlzmapp01.zte.com.cn ([10.5.231.85]) by mse-fl2.zte.com.cn with SMTP id 3B55rH00034082; Tue, 5 Dec 2023 13:53:17 +0800 (+08) (envelope-from yang.yang29@zte.com.cn) Received: from mapi (szxlzmapp05[null]) by mapi (Zmail) with MAPI id mid14; Tue, 5 Dec 2023 13:53:19 +0800 (CST) Date: Tue, 5 Dec 2023 13:53:19 +0800 (CST) X-Zmail-TransId: 2b07656ebacfffffffffd6f-81e38 X-Mailer: Zmail v1.0 Message-ID: <202312051353196253358@zte.com.cn> Mime-Version: 1.0 From: To: , Cc: , , , , Subject: =?utf-8?q?=5BPATCH=5D_docs=3A_ABI=3A_update_permission_descriptions?= =?utf-8?q?_for_slab_page_order?= X-MAIL: mse-fl2.zte.com.cn 3B55rH00034082 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 656EBADF.000/4SkqTX6GY7zQ66 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 21:54:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784420125288028142 X-GMAIL-MSGID: 1784420125288028142 From: Fan Yu The page allocation order is now read-only, and cannot be changed by /sys/kernel/slab//order file at run time, see the following commit: 32a6f409b693 ("mm, slub: remove runtime allocation order changes") But the ABI documetation have not been modified along with the code, so they need to be updated, which will help readers better understand the code. Signed-off-by: Fan Yu --- Documentation/ABI/testing/sysfs-kernel-slab | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-kernel-slab b/Documentation/ABI/testing/sysfs-kernel-slab index cd5fb8fa3ddf..8f0fc1cb3dc0 100644 --- a/Documentation/ABI/testing/sysfs-kernel-slab +++ b/Documentation/ABI/testing/sysfs-kernel-slab @@ -342,15 +342,14 @@ Contact: Pekka Enberg , Christoph Lameter Description: The order file specifies the page order at which new slabs are - allocated. It is writable and can be changed to increase the - number of objects per slab. If a slab cannot be allocated - because of fragmentation, SLUB will retry with the minimum order - possible depending on its characteristics. + allocated. It is read-only and cannot be changed at run time. + If a slab cannot be allocated because of fragmentation, SLUB + will retry with the minimum order possible depending on + its characteristics. When debug_guardpage_minorder=N (N > 0) parameter is specified (see Documentation/admin-guide/kernel-parameters.rst), the minimum possible - order is used and this sysfs entry can not be used to change - the order at run time. + order is used. What: /sys/kernel/slab//order_fallback Date: April 2008