Project

General

Profile

Actions

Bug #2986

closed

kernel panic when running fio (modified fio)

Added by tkusumi about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/23/2017
Due date:
% Done:

0%

Estimated time:

Description

After running for 1 min or so, fio threads either get killed due to oom, or vm subsystem panics.
Both can happen and neither is rare on my environment.
I'm using master.
https://leaf.dragonflybsd.org/~tkusumi/diff/fio_bs_panic.PNG

1. git clone git://git.kernel.dk/fio
2. Make following change


  1. git diff
    diff --git a/filesetup.c b/filesetup.c
    index bcf95bd5..4579a181 100644
    --- a/filesetup.c
    +++ b/filesetup.c
    @ -243,6 +243,7 @ static int pre_read_file(struct thread_data *td, struct fio_file *f)
bs = td->o.max_bs[DDIR_READ];
b = malloc(bs);
+ b[0] = 0xff;
memset(b, 0, bs);
if (lseek(f->fd, f->file_offset, SEEK_SET) < 0) {
-----------------

3. Run below. --bsrange= may need to be changed depending on ram/swap size. In this example 100000 MiB is the size of malloc in above diff. # ./configure # gmake -j8 # rm ./xxxxx.* if exists # ./fio --name=xxxxx --ioengine=sync --rw=read --bs=32k --size=10m --numjobs=10 --nrfiles=10 --unlink=1 --bsrange=1k:100000m --pre_read=1

Actions

Also available in: Atom PDF