Skip to content

Commit d546978

Browse files
bulwahnJonathan Corbet
authored andcommitted
docs: admin-guide: remove obsolete advice related to SLAB allocator
Commit 1db9d06 ("mm/slab: remove CONFIG_SLAB from all Kconfig and Makefile") removes the config SLAB and makes the SLUB allocator the only default allocator in the kernel. Hence, the advice on reducing OS jitter due to kworker kernel threads to build with CONFIG_SLUB instead of CONFIG_SLAB is obsolete. Remove the obsolete advice to build with SLUB instead of SLAB. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231130095515.21586-1-lukas.bulwahn@gmail.com
1 parent ea7dcd8 commit d546978

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Documentation/admin-guide/kernel-per-CPU-kthreads.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,9 @@ To reduce its OS jitter, do any of the following:
243243
3. Do any of the following needed to avoid jitter that your
244244
application cannot tolerate:
245245

246-
a. Build your kernel with CONFIG_SLUB=y rather than
247-
CONFIG_SLAB=y, thus avoiding the slab allocator's periodic
248-
use of each CPU's workqueues to run its cache_reap()
249-
function.
250-
b. Avoid using oprofile, thus avoiding OS jitter from
246+
a. Avoid using oprofile, thus avoiding OS jitter from
251247
wq_sync_buffer().
252-
c. Limit your CPU frequency so that a CPU-frequency
248+
b. Limit your CPU frequency so that a CPU-frequency
253249
governor is not required, possibly enlisting the aid of
254250
special heatsinks or other cooling technologies. If done
255251
correctly, and if you CPU architecture permits, you should
@@ -259,7 +255,7 @@ To reduce its OS jitter, do any of the following:
259255

260256
WARNING: Please check your CPU specifications to
261257
make sure that this is safe on your particular system.
262-
d. As of v3.18, Christoph Lameter's on-demand vmstat workers
258+
c. As of v3.18, Christoph Lameter's on-demand vmstat workers
263259
commit prevents OS jitter due to vmstat_update() on
264260
CONFIG_SMP=y systems. Before v3.18, is not possible
265261
to entirely get rid of the OS jitter, but you can
@@ -274,20 +270,20 @@ To reduce its OS jitter, do any of the following:
274270
(based on an earlier one from Gilad Ben-Yossef) that
275271
reduces or even eliminates vmstat overhead for some
276272
workloads at https://lore.kernel.org/r/00000140e9dfd6bd-40db3d4f-c1be-434f-8132-7820f81bb586-000000@email.amazonses.com.
277-
e. If running on high-end powerpc servers, build with
273+
d. If running on high-end powerpc servers, build with
278274
CONFIG_PPC_RTAS_DAEMON=n. This prevents the RTAS
279275
daemon from running on each CPU every second or so.
280276
(This will require editing Kconfig files and will defeat
281277
this platform's RAS functionality.) This avoids jitter
282278
due to the rtas_event_scan() function.
283279
WARNING: Please check your CPU specifications to
284280
make sure that this is safe on your particular system.
285-
f. If running on Cell Processor, build your kernel with
281+
e. If running on Cell Processor, build your kernel with
286282
CBE_CPUFREQ_SPU_GOVERNOR=n to avoid OS jitter from
287283
spu_gov_work().
288284
WARNING: Please check your CPU specifications to
289285
make sure that this is safe on your particular system.
290-
g. If running on PowerMAC, build your kernel with
286+
f. If running on PowerMAC, build your kernel with
291287
CONFIG_PMAC_RACKMETER=n to disable the CPU-meter,
292288
avoiding OS jitter from rackmeter_do_timer().
293289

0 commit comments

Comments
 (0)