Recent changes (master)
The following changes since commit 59f94d26f98e9c0bc18d4e013f3361c51a2c6b25:
Change ARRAY_SIZE to FIO_ARRAY_SIZE (2021-01-06 11:32:59 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 8f14dc61422df3b1eaee1293a7d10ba791c8084c:
Merge branch 'cpu-engine' of https://github.com/bvanassche/fio (2021-01-07 20:53:00 -0700)
----------------------------------------------------------------
Bart Van Assche (1):
engines/cpu: Fix td_vmsg() call
Erwan Velu (1):
engines/cpu: Adding qsort capabilities
Jens Axboe (3):
Merge branch 'evelu-qsort' of https://github.com/ErwanAliasr1/fio
engines/cpu: style cleanups
Merge branch 'cpu-engine' of https://github.com/bvanassche/fio
HOWTO | 6 +- engines/cpu.c | 233 ++++++++++++++++++++++++++++++++++++++++++++++++++--- examples/cpuio.fio | 14 +++- fio.1 | 21 +++-- 4 files changed, 254 insertions(+), 20 deletions(-)
---
Diff of recent changes:
HOWTO +4 -2
@@ -1912,12 +1912,14 @@ I/O engine **cpuio** Doesn't transfer any data, but burns CPU cycles according to the - :option:`cpuload` and :option:`cpuchunks` options. Setting - :option:`cpuload`\=85 will cause that job to do nothing but burn 85% + :option:`cpuload`, :option:`cpuchunks` and :option:`cpumode` options. + Setting :option:`cpuload`\=85 will cause that job to do nothing but burn 85% of the CPU. In case of SMP machines, use :option:`numjobs`\=<nr_of_cpu> to get desired CPU usage, as the cpuload only loads a single CPU at the desired rate. A job never finishes unless there is at least one non-cpuio job. + Setting :option:`cpumode`\=qsort replace the default noop instructions loop + by a qsort algorithm to consume more energy. **rdma** The RDMA I/O engine supports both RDMA memory semantics
engines/cpu.c +223 -10
293 lines not on this page · raw message
examples/cpuio.fio +12 -2
@@ -1,8 +1,18 @@ [global] ioengine=cpuio time_based -runtime=10 +runtime=15 -[burn50percent] +# The following example load 2 cores at 50% with the noop (default) mode +[burn_2x50_noop] cpuload=50 +numjobs=2 +cpumode=noop +# Once burn_2x50_noop is over, +# fio load 2 cores at 50% with the qsort mode which drains much more power +[burn_2x50%_qsort] +stonewall +cpuload=50 +numjobs=2 +cpumode=qsort
fio.1 +15 -6
@@ -1690,12 +1690,21 @@ This engine defines engine specific options. .TP .B cpuio Doesn't transfer any data, but burns CPU cycles according to the -\fBcpuload\fR and \fBcpuchunks\fR options. Setting -\fBcpuload\fR\=85 will cause that job to do nothing but burn 85% -of the CPU. In case of SMP machines, use `numjobs=<nr_of_cpu>' -to get desired CPU usage, as the cpuload only loads a -single CPU at the desired rate. A job never finishes unless there is -at least one non-cpuio job. +\fBcpuload\fR, \fBcpuchunks\fR and \fBcpumode\fR options. +A job never finishes unless there is at least one non-cpuio job. +.RS +.P +.PD 0 +\fBcpuload\fR\=85 will cause that job to do nothing but burn 85% of the CPU. +In case of SMP machines, use \fBnumjobs=<nr_of_cpu>\fR\ to get desired CPU usage, +as the cpuload only loads a single CPU at the desired rate. + +.P +\fBcpumode\fR\=qsort replace the default noop instructions loop +by a qsort algorithm to consume more energy. + +.P +.RE .TP .B rdma The RDMA I/O engine supports both RDMA memory semantics