查看问题详情

编号项目分类查看权限最后更新
0000104多媒体[所有项目] 所有分类公开2019-09-05 20:32
报告员guotongbin分派给lixuefeng 
优先级严重性小错误出现频率总是
状态 已分配处理状况未处理 
平台龙芯操作系统loongnix操作系统版本20190330
摘要0000104: 在安全中心测试fio,不支持异步模式
描述系统:
[loongson@TonyPC fio-2.1.10]$ lsb_release -a
Distributor ID: Loongnix
Description: Loongnix release 1.0 (20190331)
Release: 1.0
Codename: 20190331

内核
[loongson@TonyPC fio-2.1.10]$ uname -a
Linux TonyPC.localdomain 3.10.84-22.fc21.loongson.7.mips64el 0000001 SMP PREEMPT Tue Jul 23 18:13:17 CST 2019 mips64 mips64 mips64 GNU/Linux

fio版本
[loongson@TonyPC fio-2.1.10]$ fio -v
fio-2.1.10

fio执行命令格式,及输出信息:

[loongson@TonyPC fio-2.1.10]$ sudo fio -filename=/dev/sdb1 -direct=1 -iodepth=1 -thread -rw=write -ioengine=libaio -bs=4k -size=1G -numjobs=4 -runtime=120 -group_reporting -name=mytest
mytest: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=1
...
fio-2.1.10
Starting 4 threads
fio: pid=5242, err=22/file:ioengines.c:398, func=io commit, error=Invalid argument
fio: pid=5240, err=22/file:ioengines.c:398, func=io commit, error=Invalid argument
fio: pid=5241, err=22/file:ioengines.c:398, func=io commit, error=Invalid argument
fio: pid=5243, err=22/file:ioengines.c:398, func=io commit, error=Invalid argument

mytest: (groupid=0, jobs=4): err=22 (file:ioengines.c:398, func=io commit, error=Invalid argument): pid=5240: Thu Sep 5 17:22:59 2019
  cpu : usr=0.00%, sys=0.00%, ctx=6, majf=0, minf=6
  IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit : 0=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete : 0=100.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued : total=r=0/w=4/d=0, short=r=0/w=0/d=0
     latency : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):

Disk stats (read/write):
  sdb: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%
标签没加标签.

活动

guotongbin

2019-09-05 17:36

开发人员   ~0000336

同步测试, 注意其中参数,异步模式用 -ioengine=libaio, 同步模式用的参数是 -ioengine=psync

[loongson@TonyPC fio]$ sudo fio -filename=/dev/sdb1 -direct=1 -iodepth=1 -thread -rw=write -ioengine=psync -bs=4k -size=1G -numjobs=4 -runtime=120 -group_reporting -name=mytest
mytest: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
...
fio-2.1.10
Starting 4 threads
Jobs: 1 (f=1): [EEEW] [4.5% done] [0KB/1684KB/0KB /s] [0/421/0 iops] [eta 43m:16s]
mytest: (groupid=0, jobs=4): err= 0: pid=4021: Thu Sep 5 17:12:54 2019
  write: io=187252KB, bw=1560.4KB/s, iops=390, runt=120006msec
    clat (usec): min=334, max=2391.7K, avg=10248.40, stdev=36384.85
     lat (usec): min=335, max=2391.7K, avg=10249.45, stdev=36384.85
    clat percentiles (msec):
     | 1.00th=[ 6], 5.00th=[ 7], 10.00th=[ 8], 20.00th=[ 9],
     | 30.00th=[ 9], 40.00th=[ 9], 50.00th=[ 10], 60.00th=[ 10],
     | 70.00th=[ 10], 80.00th=[ 10], 90.00th=[ 11], 95.00th=[ 12],
     | 99.00th=[ 29], 99.50th=[ 40], 99.90th=[ 104], 99.95th=[ 742],
     | 99.99th=[ 2376]
    bw (KB /s): min= 15, max= 1211, per=26.34%, avg=410.85, stdev=90.88
    lat (usec) : 500=0.24%
    lat (msec) : 4=0.37%, 10=87.86%, 20=10.21%, 50=0.95%, 100=0.26%
    lat (msec) : 250=0.02%, 500=0.03%, 750=0.02%, 1000=0.01%, 2000=0.01%
    lat (msec) : >=2000=0.02%
  cpu : usr=0.06%, sys=0.20%, ctx=46973, majf=0, minf=2
  IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued : total=r=0/w=46813/d=0, short=r=0/w=0/d=0
     latency : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
  WRITE: io=187252KB, aggrb=1560KB/s, minb=1560KB/s, maxb=1560KB/s, mint=120006msec, maxt=120006msec

Disk stats (read/write):
  sdb: ios=39/35994, merge=0/10588, ticks=58/368468, in_queue=368496, util=100.00%

jiangxinshang

2019-09-05 20:24

报告者   ~0000337

最后编辑: 2019-09-05 20:30

查看2的修订

您好,该问题现已同步至Bugzilia,编号:392 - loongnix-20190630-RC12- 在安全中心测试fio,不支持异步模式,同步正常

问题历史

日期 用户名 字段 更改
2019-09-05 17:34 guotongbin 新建问题
2019-09-05 17:36 guotongbin 注释已添加: 0000336
2019-09-05 17:55 administrator 分派给 => liuzhongying
2019-09-05 17:55 administrator 状态 新建 => 已分配
2019-09-05 20:24 jiangxinshang 注释已添加: 0000337
2019-09-05 20:30 liuzhongying 注释已编辑: 0000337 查看修订历史
2019-09-05 20:32 liuzhongying 分派给 liuzhongying => lixuefeng