From 8a7bf04c288ac3a46629b22871d06f5c112e85c9 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Fri, 28 Jan 2022 18:45:29 +0000 Subject: [PATCH] docs: document cpumode option for the cpuio ioengine The cpumode option for the cpuio ioengine never had its own entry in the documentation. Add an entry so that the documentation builds cleanly. Signed-off-by: Vincent Fu --- HOWTO | 10 ++++++++++ fio.1 | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/HOWTO b/HOWTO index 74ba7216..4d8c799e 100644 --- a/HOWTO +++ b/HOWTO @@ -2318,6 +2318,16 @@ with the caveat that when used on the command line, they must come after the Split the load into cycles of the given time. In microseconds. +.. option:: cpumode=str : [cpuio] + + Specify how to stress the CPU. It can take these two values: + + **noop** + This is the default where the CPU executes noop instructions. + **qsort** + Replace the default noop instructions loop with a qsort algorithm to + consume more energy. + .. option:: exit_on_io_done=bool : [cpuio] Detect when I/O threads are done, then exit. diff --git a/fio.1 b/fio.1 index f32d7915..e23d4092 100644 --- a/fio.1 +++ b/fio.1 @@ -2091,6 +2091,19 @@ option when using cpuio I/O engine. .BI (cpuio)cpuchunks \fR=\fPint Split the load into cycles of the given time. In microseconds. .TP +.BI (cpuio)cpumode \fR=\fPstr +Specify how to stress the CPU. It can take these two values: +.RS +.RS +.TP +.B noop +This is the default and directs the CPU to execute noop instructions. +.TP +.B qsort +Replace the default noop instructions with a qsort algorithm to consume more energy. +.RE +.RE +.TP .BI (cpuio)exit_on_io_done \fR=\fPbool Detect when I/O threads are done, then exit. .TP -- 2.25.1