Skip to contentSkip to conversation

assert failing with latency log

DISCUSSION Ben England 2 participants 3 messages May 24, 2016 – May 25, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

If I run this fio jobfile with absolute latest upstream code:

[global]
directory=/var/tmp

[randreads]
direct=1
rate_iops=1000
size=512m
ioengine=sync
bs=4k
rw=randread
filename=ben.dd
runtime=30
write_lat_log=foo

It fails with

fio: stat.c:1988: get_cur_log: Assertion `iolog->pending->nr_samples < iolog->pending->max_samples' failed.

But if I take out the "write_lat_log=foo" line, it succeeds. The assertion seems to be in the code path for latency logs, right? Anyone else seen this?

#2 lore raw
Quoted 16 lines · Ben England

If I run this fio jobfile with absolute latest upstream code:

[global]
directory=/var/tmp

[randreads]
direct=1
rate_iops=1000
size=512m
ioengine=sync
bs=4k
rw=randread
filename=ben.dd
runtime=30
write_lat_log=foo

Quoted 5 lines

It fails with

fio: stat.c:1988: get_cur_log: Assertion `iolog->pending->nr_samples < iolog->pending->max_samples' failed.

But if I take out the "write_lat_log=foo" line, it succeeds. The assertion seems to be in the code path for latency logs, right? Anyone else seen this?

Gah, that's my bad, I broke sync IO engines with logging. I pushed a fix:

http://git.kernel.dk/cgit/fio/commit/?id=cf2c8d5260c9676964854e79382cba3eb498fd2e

I'll tag a new version as well, this is pretty unfortunate.

Signature · 1 line
Jens Axboe
#3 lore raw

thx, that worked. -ben

----- Original Message -----

Quoted 42 lines

From: "Jens Axboe" <[email protected]>
To: "Ben England" <[email protected]>, [email protected]
Cc: "Tim Wilkinson" <[email protected]>
Sent: Tuesday, May 24, 2016 8:41:42 PM
Subject: Re: assert failing with latency log

Quoted 16 lines · Ben England

If I run this fio jobfile with absolute latest upstream code:

[global]
directory=/var/tmp

[randreads]
direct=1
rate_iops=1000
size=512m
ioengine=sync
bs=4k
rw=randread
filename=ben.dd
runtime=30
write_lat_log=foo

Quoted 8 lines

It fails with

fio: stat.c:1988: get_cur_log: Assertion `iolog->pending->nr_samples < iolog->pending->max_samples' failed.

But if I take out the "write_lat_log=foo" line, it succeeds. The assertion seems to be in the code path for latency logs, right? Anyone else seen this?

Gah, that's my bad, I broke sync IO engines with logging. I pushed a fix:

http://git.kernel.dk/cgit/fio/commit/?id=cf2c8d5260c9676964854e79382cba3eb498fd2e

I'll tag a new version as well, this is pretty unfortunate.

--
Jens Axboe