Skip to content

Commit d0f93ac

Browse files
committed
Merge tag 'docs-6.14' of git://git.lwn.net/linux
Pull Documentation updates from Jonathan Corbet: - Quite a bit of Chinese and Spanish translation work - Clarifying that Git commit IDs >12chars are OK - A new nvme-multipath document - A reorganization of the admin-guide top-level page to make it readable - Clarification of the role of Acked-by and maintainer discretion on their acceptance - Some reorganization of debugging-oriented docs ... and typo fixes, documentation updates, etc as usual * tag 'docs-6.14' of git://git.lwn.net/linux: (50 commits) Documentation: Fix x86_64 UEFI outdated references to elilo Documentation/sysctl: Add timer_migration to kernel.rst docs/mm: Physical memory: Remove zone_t docs: submitting-patches: clarify that signers may use their discretion on tags docs: submitting-patches: clarify difference between Acked-by and Reviewed-by docs: submitting-patches: clarify Acked-by and introduce "# Suffix" Documentation: bug-hunting.rst: remove odd contact information docs/zh_CN: Add sak index Chinese translation doc: module: DEFAULT_SYMBOL_NAMESPACE must be defined before #includes doc: module: Fix documented type of namespace Documentation/kernel-parameters: Fix a reference to vga-softcursor.rst docs/zh_CN: Add landlock index Chinese translation Documentation: Fix typo localmodonfig -> localmodconfig overlayfs.rst: Fix and improve grammar docs/zh_CN: Add siphash index Chinese translation docs/zh_CN: Add security IMA-templates Chinese translation docs/zh_CN: Add security digsig Chinese translation Align git commit ID abbreviation guidelines and checks docs: process: submitting-patches: split canonical patch format section docs/zh_CN: Add security lsm Chinese translation ...
2 parents e361044 + 6912bdb commit d0f93ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2992
-478
lines changed

Documentation/accounting/taskstats-struct.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ should not change the relative position of each field within the struct.
4747
1) Common and basic accounting fields::
4848

4949
/* The version number of this struct. This field is always set to
50-
* TAKSTATS_VERSION, which is defined in <linux/taskstats.h>.
50+
* TASKSTATS_VERSION, which is defined in <linux/taskstats.h>.
5151
* Each time the struct is changed, the value should be incremented.
5252
*/
5353
__u16 version;

Documentation/admin-guide/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,5 +356,5 @@ instructions at 'Documentation/admin-guide/reporting-issues.rst'.
356356

357357
Hints on understanding kernel bug reports are in
358358
'Documentation/admin-guide/bug-hunting.rst'. More on debugging the kernel
359-
with gdb is in 'Documentation/dev-tools/gdb-kernel-debugging.rst' and
360-
'Documentation/dev-tools/kgdb.rst'.
359+
with gdb is in 'Documentation/process/debugging/gdb-kernel-debugging.rst' and
360+
'Documentation/process/debugging/kgdb.rst'.

Documentation/admin-guide/blockdev/zram.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ compression algorithm to use external pre-trained dictionary, pass full
121121
path to the `dict` along with other parameters::
122122

123123
#pass path to pre-trained zstd dictionary
124-
echo "algo=zstd dict=/etc/dictioary" > /sys/block/zram0/algorithm_params
124+
echo "algo=zstd dict=/etc/dictionary" > /sys/block/zram0/algorithm_params
125125

126126
#same, but using algorithm priority
127-
echo "priority=1 dict=/etc/dictioary" > \
127+
echo "priority=1 dict=/etc/dictionary" > \
128128
/sys/block/zram0/algorithm_params
129129

130130
#pass path to pre-trained zstd dictionary and compression level
131-
echo "algo=zstd level=8 dict=/etc/dictioary" > \
131+
echo "algo=zstd level=8 dict=/etc/dictionary" > \
132132
/sys/block/zram0/algorithm_params
133133

134134
Parameters are algorithm specific: not all algorithms support pre-trained

Documentation/admin-guide/braille-console.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ override the baud rate to 115200, etc.
2121
By default, the braille device will just show the last kernel message (console
2222
mode). To review previous messages, press the Insert key to switch to the VT
2323
review mode. In review mode, the arrow keys permit to browse in the VT content,
24-
:kbd:`PAGE-UP`/:kbd:`PAGE-DOWN` keys go at the top/bottom of the screen, and
25-
the :kbd:`HOME` key goes back
24+
`PAGE-UP`/`PAGE-DOWN` keys go at the top/bottom of the screen, and
25+
the `HOME` key goes back
2626
to the cursor, hence providing very basic screen reviewing facility.
2727

2828
Sound feedback can be obtained by adding the ``braille_console.sound=1`` kernel

Documentation/admin-guide/bug-hunting.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,3 @@ processed by ``klogd``::
368368
Aug 29 09:51:01 blizard kernel: Call Trace: [oops:_oops_ioctl+48/80] [_sys_ioctl+254/272] [_system_call+82/128]
369369
Aug 29 09:51:01 blizard kernel: Code: c7 00 05 00 00 00 eb 08 90 90 90 90 90 90 90 90 89 ec 5d c3
370370

371-
---------------------------------------------------------------------------
372-
373-
::
374-
375-
Dr. G.W. Wettstein Oncology Research Div. Computing Facility
376-
Roger Maris Cancer Center INTERNET: [email protected]
377-
820 4th St. N.
378-
Fargo, ND 58122
379-
Phone: 701-234-7556

Documentation/admin-guide/index.rst

Lines changed: 108 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ added to the kernel over time. There is, as yet, little overall order or
77
organization here — this material was not written to be a single, coherent
88
document! With luck things will improve quickly over time.
99

10+
General guides to kernel administration
11+
---------------------------------------
12+
1013
This initial section contains overall information, including the README
1114
file describing the kernel as a whole, documentation on kernel parameters,
1215
etc.
@@ -15,19 +18,44 @@ etc.
1518
:maxdepth: 1
1619

1720
README
18-
kernel-parameters
1921
devices
20-
sysctl/index
2122

22-
abi
2323
features
2424

25-
This section describes CPU vulnerabilities and their mitigations.
25+
A big part of the kernel's administrative interface is the /proc and sysfs
26+
virtual filesystems; these documents describe how to interact with tem
27+
28+
.. toctree::
29+
:maxdepth: 1
30+
31+
sysfs-rules
32+
sysctl/index
33+
cputopology
34+
abi
35+
36+
Security-related documentation:
2637

2738
.. toctree::
2839
:maxdepth: 1
2940

3041
hw-vuln/index
42+
LSM/index
43+
perf-security
44+
45+
Booting the kernel
46+
------------------
47+
48+
.. toctree::
49+
:maxdepth: 1
50+
51+
bootconfig
52+
kernel-parameters
53+
efi-stub
54+
initrd
55+
56+
57+
Tracking down and identifying problems
58+
--------------------------------------
3159

3260
Here is a set of documents aimed at users who are trying to track down
3361
problems and bugs in particular.
@@ -48,94 +76,120 @@ problems and bugs in particular.
4876
kdump/index
4977
perf/index
5078
pstore-blk
79+
clearing-warn-once
80+
kernel-per-CPU-kthreads
81+
lockup-watchdogs
82+
RAS/index
83+
sysrq
5184

52-
This is the beginning of a section with information of interest to
53-
application developers. Documents covering various aspects of the kernel
54-
ABI will be found here.
85+
86+
Core-kernel subsystems
87+
----------------------
88+
89+
These documents describe core-kernel administration interfaces that are
90+
likely to be of interest on almost any system.
5591

5692
.. toctree::
5793
:maxdepth: 1
5894

59-
sysfs-rules
95+
cgroup-v2
96+
cgroup-v1/index
97+
cpu-load
98+
mm/index
99+
module-signing
100+
namespaces/index
101+
numastat
102+
pm/index
103+
syscall-user-dispatch
60104

61-
This is the beginning of a section with information of interest to
62-
application developers and system integrators doing analysis of the
63-
Linux kernel for safety critical applications. Documents supporting
64-
analysis of kernel interactions with applications, and key kernel
65-
subsystems expectations will be found here.
105+
Support for non-native binary formats. Note that some of these
106+
documents are ... old ...
66107

67108
.. toctree::
68109
:maxdepth: 1
69110

70-
workload-tracing
111+
binfmt-misc
112+
java
113+
mono
114+
71115

72-
The rest of this manual consists of various unordered guides on how to
73-
configure specific aspects of kernel behavior to your liking.
116+
Block-layer and filesystem administration
117+
-----------------------------------------
74118

75119
.. toctree::
76120
:maxdepth: 1
77121

78-
acpi/index
79-
aoe/index
80-
auxdisplay/index
81122
bcache
82123
binderfs
83-
binfmt-misc
84124
blockdev/index
85-
bootconfig
86-
braille-console
87-
btmrvl
88-
cgroup-v1/index
89-
cgroup-v2
90125
cifs/index
91-
clearing-warn-once
92-
cpu-load
93-
cputopology
94-
dell_rbu
95126
device-mapper/index
96-
edid
97-
efi-stub
98127
ext4
99128
filesystem-monitoring
100129
nfs/index
101-
gpio/index
102-
highuid
103-
hw_random
104-
initrd
105130
iostats
106-
java
107131
jfs
108-
kernel-per-CPU-kthreads
132+
md
133+
ufs
134+
xfs
135+
136+
Device-specific guides
137+
----------------------
138+
139+
How to configure your hardware within your Linux system.
140+
141+
.. toctree::
142+
:maxdepth: 1
143+
144+
acpi/index
145+
aoe/index
146+
auxdisplay/index
147+
braille-console
148+
btmrvl
149+
dell_rbu
150+
edid
151+
gpio/index
152+
hw_random
109153
laptops/index
110154
lcd-panel-cgram
111-
ldm
112-
lockup-watchdogs
113-
LSM/index
114-
md
115155
media/index
116-
mm/index
117-
module-signing
118-
mono
119-
namespaces/index
120-
numastat
156+
nvme-multipath
121157
parport
122-
perf-security
123-
pm/index
124158
pnp
125159
rapidio
126-
RAS/index
127160
rtc
128161
serial-console
129162
svga
130-
syscall-user-dispatch
131-
sysrq
132163
thermal/index
133164
thunderbolt
134-
ufs
135-
unicode
136165
vga-softcursor
137166
video-output
138-
xfs
167+
168+
Workload analysis
169+
-----------------
170+
171+
This is the beginning of a section with information of interest to
172+
application developers and system integrators doing analysis of the
173+
Linux kernel for safety critical applications. Documents supporting
174+
analysis of kernel interactions with applications, and key kernel
175+
subsystems expectations will be found here.
176+
177+
.. toctree::
178+
:maxdepth: 1
179+
180+
workload-tracing
181+
182+
Everything else
183+
---------------
184+
185+
A few hard-to-categorize and generally obsolete documents.
186+
187+
.. toctree::
188+
:maxdepth: 1
189+
190+
highuid
191+
ldm
192+
unicode
139193

140194
.. only:: subproject and html
141195

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7777,7 +7777,7 @@
77777777
vt.cur_default= [VT] Default cursor shape.
77787778
Format: 0xCCBBAA, where AA, BB, and CC are the same as
77797779
the parameters of the <Esc>[?A;B;Cc escape sequence;
7780-
see VGA-softcursor.txt. Default: 2 = underline.
7780+
see vga-softcursor.rst. Default: 2 = underline.
77817781

77827782
vt.default_blu= [VT]
77837783
Format: <blue0>,<blue1>,<blue2>,...,<blue15>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
====================
4+
Linux NVMe multipath
5+
====================
6+
7+
This document describes NVMe multipath and its path selection policies supported
8+
by the Linux NVMe host driver.
9+
10+
11+
Introduction
12+
============
13+
14+
The NVMe multipath feature in Linux integrates namespaces with the same
15+
identifier into a single block device. Using multipath enhances the reliability
16+
and stability of I/O access while improving bandwidth performance. When a user
17+
sends I/O to this merged block device, the multipath mechanism selects one of
18+
the underlying block devices (paths) according to the configured policy.
19+
Different policies result in different path selections.
20+
21+
22+
Policies
23+
========
24+
25+
All policies follow the ANA (Asymmetric Namespace Access) mechanism, meaning
26+
that when an optimized path is available, it will be chosen over a non-optimized
27+
one. Current the NVMe multipath policies include numa(default), round-robin and
28+
queue-depth.
29+
30+
To set the desired policy (e.g., round-robin), use one of the following methods:
31+
1. echo -n "round-robin" > /sys/module/nvme_core/parameters/iopolicy
32+
2. or add the "nvme_core.iopolicy=round-robin" to cmdline.
33+
34+
35+
NUMA
36+
----
37+
38+
The NUMA policy selects the path closest to the NUMA node of the current CPU for
39+
I/O distribution. This policy maintains the nearest paths to each NUMA node
40+
based on network interface connections.
41+
42+
When to use the NUMA policy:
43+
1. Multi-core Systems: Optimizes memory access in multi-core and
44+
multi-processor systems, especially under NUMA architecture.
45+
2. High Affinity Workloads: Binds I/O processing to the CPU to reduce
46+
communication and data transfer delays across nodes.
47+
48+
49+
Round-Robin
50+
-----------
51+
52+
The round-robin policy distributes I/O requests evenly across all paths to
53+
enhance throughput and resource utilization. Each I/O operation is sent to the
54+
next path in sequence.
55+
56+
When to use the round-robin policy:
57+
1. Balanced Workloads: Effective for balanced and predictable workloads with
58+
similar I/O size and type.
59+
2. Homogeneous Path Performance: Utilizes all paths efficiently when
60+
performance characteristics (e.g., latency, bandwidth) are similar.
61+
62+
63+
Queue-Depth
64+
-----------
65+
66+
The queue-depth policy manages I/O requests based on the current queue depth
67+
of each path, selecting the path with the least number of in-flight I/Os.
68+
69+
When to use the queue-depth policy:
70+
1. High load with small I/Os: Effectively balances load across paths when
71+
the load is high, and I/O operations consist of small, relatively
72+
fixed-sized requests.

Documentation/admin-guide/quickly-build-trimmed-linux.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ can easily happen that your self-built kernel will lack modules for tasks you
733733
did not perform before utilizing this make target. That's because those tasks
734734
require kernel modules that are normally autoloaded when you perform that task
735735
for the first time; if you didn't perform that task at least once before using
736-
localmodonfig, the latter will thus assume these modules are superfluous and
736+
localmodconfig, the latter will thus assume these modules are superfluous and
737737
disable them.
738738

739739
You can try to avoid this by performing typical tasks that often will autoload

Documentation/admin-guide/sysctl/fs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pre-allocation or re-sizing of any kernel data structures.
4141
dentry-negative
4242
----------------------------
4343

44-
Policy for negative dentries. Set to 1 to to always delete the dentry when a
44+
Policy for negative dentries. Set to 1 to always delete the dentry when a
4545
file is removed, and 0 to disable it. By default, this behavior is disabled.
4646

4747
dentry-state

0 commit comments

Comments
 (0)