From: Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
To: mhiramat@kernel.org
Cc: corbet@lwn.net, linux-doc@vger.kernel.org,
linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Documentation: bootconfig: Document the current config limits
Date: Wed, 25 Nov 2026 08:39:41 +0100 [thread overview]
Message-ID: <8b11df1def359a2b28cd4bb6c42606e25ab9d6d7.1795592381.git.edumucelli@gmail.com> (raw)
Bootconfig has accepted 8192 nodes since the node limit was raised for
DCC support. The admin guide still describes the old 1024-node limit and
derives example entry counts from it.
Describe the current node budget and how keys and values consume nodes.
Document the 32767-byte limit for initrd attachments, including the
terminating NUL byte and excluding alignment padding.
Fixes: 6c40624930c5 ("bootconfig: Increase max nodes of bootconfig from 1024 to 8192 for DCC support")
Signed-off-by: Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
---
Hi Masami,
Thanks again for the reviews. The guide still lists the old 1024-node
limit. I checked the 8192-node limit on my Ubuntu machine and tested a
maximum-size config with all four initrd alignment paddings on top of
your padding fix.
Thanks,
Eduardo
Documentation/admin-guide/bootconfig.rst | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/Documentation/admin-guide/bootconfig.rst b/Documentation/admin-guide/bootconfig.rst
index 3d6412458c8b6..30bf89cf0f67a 100644
--- a/Documentation/admin-guide/bootconfig.rst
+++ b/Documentation/admin-guide/bootconfig.rst
@@ -354,18 +354,13 @@ The final kernel cmdline will be the following::
Config File Limitation
======================
-Currently the maximum config size is 32KB and the total key-words (not
-key-value entries) must be under 1024 nodes.
-Note: this is not the number of entries but nodes, an entry must consume
-more than 2 nodes (a key-word and a value). So theoretically, it will be
-up to 512 key-value pairs. If keys contains 3 words in average, it can
-contain 256 key-value pairs. In most cases, the number of config items
-will be under 100 entries and smaller than 8KB, so it would be enough.
-If the node number exceeds 1024, parser returns an error even if the file
-size is smaller than 32KB. (Note that this maximum size is not including
-the padding null characters.)
-Anyway, since bootconfig command verifies it when appending a boot config
-to initrd image, user can notice it before boot.
+A bootconfig can contain up to 8192 nodes. Each component of a key and
+each value, including each element of an array, consumes one node. Keys
+with a common prefix share the nodes for that prefix.
+
+The data is limited to 32767 bytes, independently of the node count.
+For a bootconfig attached to an initrd, the limit includes the
+terminating NUL byte. Alignment padding is excluded.
Bootconfig APIs
base-commit: 56bb11fe6aacc7666938e8e6765b44aa0cf1fcdd
--
2.53.0
reply other threads:[~2026-11-25 7:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8b11df1def359a2b28cd4bb6c42606e25ab9d6d7.1795592381.git.edumucelli@gmail.com \
--to=edumucelli@gmail.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®