* [PATCH] Documentation: bootconfig: Document the current config limits
@ 2026-11-25 7:39 Eduardo Mucelli Rezende Oliveira
0 siblings, 0 replies; only message in thread
From: Eduardo Mucelli Rezende Oliveira @ 2026-11-25 7:39 UTC (permalink / raw)
To: mhiramat; +Cc: corbet, linux-doc, linux-trace-kernel, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 7:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 7:39 [PATCH] Documentation: bootconfig: Document the current config limits Eduardo Mucelli Rezende Oliveira
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®