Skip to contentSkip to conversation

not all the jobs running at equal speed

DISCUSSION Prabhu Murugesan (pmurugesan) 2 participants 8 messages Feb 1, 2017 – Feb 2, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

1000 50141 1 0 1000 17565 1 0 1000 50780 1 0 1000 16515 1 0
2002 47035 1 0 2002 13791 1 0 2002 46933 1 0 2002 13957 1 0
3003 44732 1 0 3003 12177 1 0 3003 44685 1 0 3003 13064 1 0
4003 49555 1 0 4003 15711 1 0 4003 49373 1 0 4003 14064 1 0
5003 48453 1 0 5003 15086 1 0 5003 48567 1 0 5003 13252 1 0
6003 51174 1 0 6003 14598 1 0 6003 51143 1 0 6003 15082 1 0
7003 48859 1 0 7003 15395 1 0 7003 49030 1 0 7004 14277 1 0
8003 49137 1 0 8004 14067 1 0 8003 48463 1 0 8004 13911 1 0
9003 49469 1 0 9004 15553 1 0 9003 49407 1 0 9004 16889 1 0
10003 48230 1 0 10005 15270 1 0 10003 48190 1 0 10005 14697 1 0

The fio configuration for the above result is shown below.
#################################
[global]
ioengine=libaio
clat_percentiles=1 percentile_list=95.0:99.0:99.5:99.9:99.99:99.999:99.9999 disable_slat=1
disable_lat=1
thread
cpus_allowed=0-7
cpus_allowed_policy=split
direct=1
bs=4k
ba=4k
iodepth=64
size=112524539904
unified_rw_reporting=1
group_reporting=1
log_avg_msec=1000
rw=randwrite
randrepeat=0
norandommap
refill_buffers write_bw_log=4k-4k_randwrite_0_rd_qd256 write_iops_log=4k-4k_randwrite_0_rd_qd256 write_lat_log=4k-4k_randwrite_0_rd_qd256

[4k-4k_randwrite_0_rd_qd256]
offset=0

[4k-4k_randwrite_0_rd_qd256]
offset=112524539904

[4k-4k_randwrite_0_rd_qd256]
offset=225049079808

[4k-4k_randwrite_0_rd_qd256]
offset=337573619712
#################################

On the othe side, if I run using the 'numjobs' parameter, I am seeing kind of equal speed.

1000 37314 1 0 1000 37891 1 0 1000 38008 1 0 1000 37970 1 0
2000 36690 1 0 2000 36694 1 0 2000 36703 1 0 2000 36679 1 0
3006 40208 1 0 3006 40211 1 0 3006 40209 1 0 3006 40207 1 0
4006 40490 1 0 4006 40490 1 0 4006 40480 1 0 4006 40491 1 0
5006 38955 1 0 5006 38952 1 0 5006 38961 1 0 5006 38958 1 0
6007 40845 1 0 6007 40841 1 0 6007 40835 1 0 6007 40844 1 0
7007 39602 1 0 7007 39584 1 0 7007 39624 1 0 7007 39614 1 0
8007 38667 1 0 8008 38729 1 0 8007 38666 1 0 8007 38673 1 0
9007 40633 1 0 9008 40620 1 0 9007 40634 1 0 9007 40638 1 0
10007 39586 1 0 10009 39610 1 0 10007 39578 1 0 10007 39572 1 0

The configuration can be found below.
[global]

# pass in the filename on the command line with --filename switch based on user selection
#filename=\\.\PhysicalDrive1	# test PhysicalDrive1
#ioengine=windowsaio			# Default engine for WindowsIO
ioengine=libaio					# Default engine for CentOS
clat_percentiles=1				# report QOS data, on by default
percentile_list=95.0:99.0:99.5:99.9:99.99:99.999:99.9999	# defines percentile buckets in mS
disable_slat=1					# disables Submission Latency recording
disable_lat=1					# disables Total Latency recording
thread							# fork threads rather than jobs (windows can only fork threads)
cpus_allowed=0-7
cpus_allowed_policy=split
direct=1						# Uses direct IO's, bypass OS buffer
#gtod_cpu=1						# dedicate a core to time-keeping

# Captures one of the four corners on an empty/FOB drive [4k-4k_randwrite_0_rd_qd256]
stonewall
bs=4k # 4k block transfer size
ba=4k # All IO's 4k aligned
iodepth=64
numjobs=4
rw=randwrite
size=100%
randrepeat=0
norandommap
refill_buffers
log_avg_msec=1000
unified_rw_reporting=1 write_bw_log=4k-4k_randwrite_0_rd_qd32 write_iops_log=4k-4k_randwrite_0_rd_qd32 write_lat_log=4k-4k_randwrite_0_rd_qd32

If someone could tell me what I am missing, it would be great!!

Thanks,
Prabhakaran Murugesan

#1 lore raw

Hi,

Quoted 2 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#2 lore raw

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 17 lines · Sitsofe Wheeler

Hi,

Quoted 2 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

--
Sitsofe | http://sucs.org/~sits/

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#3 lore raw

Actually, I wanted all the four jobs to run in parallel as opposed to running them in sequence. It is similar to the 'numjobs' concept. But, I wanted to limit the amount of data being written and the lba range, so that not more than one lba is being written.

The way you suggested increases runtime from original 30 mins to 45 mins now.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 12:21 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 15 lines · Sitsofe Wheeler

Hi,

Quoted 5 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

Quoted 5 lines

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

--
Sitsofe | http://sucs.org/~sits/

--
Sitsofe | http://sucs.org/~sits/

#4 lore raw

It doesn't surprise me that run time increases but does that "make" all the jobs have equal speed? If so, do you see unequal speeds when you remove the stonewall from the numjobs setup? PS after checking that you might want to investigate the offset_increment option
(http://fio.readthedocs.io/en/sphinx-doc/fio_doc.html#cmdoption-arg-offset_increment
).

Quoted 33 lines · Prabhu Murugesan (pmurugesan)

Actually, I wanted all the four jobs to run in parallel as opposed to running them in sequence. It is similar to the 'numjobs' concept. But, I wanted to limit the amount of data being written and the lba range, so that not more than one lba is being written.

The way you suggested increases runtime from original 30 mins to 45 mins now.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 12:21 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 17 lines · Sitsofe Wheeler

Hi,

Quoted 5 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#5 lore raw

No, with or without stonewall, I am seeing unequal speeds. Even with 'offset_increment', I am seeing the same. It exactly behaves the same way as my very first configuration with offset.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 3:13 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

It doesn't surprise me that run time increases but does that "make"
all the jobs have equal speed? If so, do you see unequal speeds when you remove the stonewall from the numjobs setup? PS after checking that you might want to investigate the offset_increment option (http://fio.readthedocs.io/en/sphinx-doc/fio_doc.html#cmdoption-arg-offset_increment
).

Quoted 11 lines · Prabhu Murugesan (pmurugesan)

Actually, I wanted all the four jobs to run in parallel as opposed to running them in sequence. It is similar to the 'numjobs' concept. But, I wanted to limit the amount of data being written and the lba range, so that not more than one lba is being written.

The way you suggested increases runtime from original 30 mins to 45 mins now.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 12:21 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Quoted 22 lines

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 17 lines · Sitsofe Wheeler

Hi,

Quoted 5 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

--
Sitsofe | http://sucs.org/~sits/

#6 lore raw

Hi,

I strongly recommend you reduce the options in your configuration such that you still see the problem and then update us with the configuration that still shows the problem.

Something else to look at is adjusting your size and offset parameters to be multiples of your blocksize:
bs=4k
ba=4k
[...]
size=112524539904
[...]
offset=112524539904
112524539904 % 4096 doesn't equal 0 so you are potentially forcing fio to do extra work to keep realigning your I/O (you have ba=4k in there which ideally wouldn't be if the I/Os were to naturally align). Note that 0 % 4096 and 225049079808 % 4096 do equal 0 so there's less alignment fixing taking place there...

Quoted 50 lines · Prabhu Murugesan (pmurugesan)

No, with or without stonewall, I am seeing unequal speeds. Even with 'offset_increment', I am seeing the same. It exactly behaves the same way as my very first configuration with offset.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 3:13 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

It doesn't surprise me that run time increases but does that "make"
all the jobs have equal speed? If so, do you see unequal speeds when you remove the stonewall from the numjobs setup? PS after checking that you might want to investigate the offset_increment option (http://fio.readthedocs.io/en/sphinx-doc/fio_doc.html#cmdoption-arg-offset_increment
).

Quoted 11 lines · Prabhu Murugesan (pmurugesan)

Actually, I wanted all the four jobs to run in parallel as opposed to running them in sequence. It is similar to the 'numjobs' concept. But, I wanted to limit the amount of data being written and the lba range, so that not more than one lba is being written.

The way you suggested increases runtime from original 30 mins to 45 mins now.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 12:21 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Quoted 22 lines

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 17 lines · Sitsofe Wheeler

Hi,

Quoted 5 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

--
Sitsofe | http://sucs.org/~sits/

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
#7 lore raw

That's a very good catch. After I changed the size to a number multiple of 4096, it worked. All the jobs are running at almost equal speed now.

Thanks a lot for your help :) Your patience and support is amazing!!

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Thursday, February 02, 2017 12:13 AM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Hi,

I strongly recommend you reduce the options in your configuration such that you still see the problem and then update us with the configuration that still shows the problem.

Something else to look at is adjusting your size and offset parameters to be multiples of your blocksize:
bs=4k
ba=4k
[...]
size=112524539904
[...]
offset=112524539904
112524539904 % 4096 doesn't equal 0 so you are potentially forcing fio to do extra work to keep realigning your I/O (you have ba=4k in there which ideally wouldn't be if the I/Os were to naturally align). Note that 0 % 4096 and 225049079808 % 4096 do equal 0 so there's less alignment fixing taking place there...

Quoted 49 lines · Prabhu Murugesan (pmurugesan)

No, with or without stonewall, I am seeing unequal speeds. Even with 'offset_increment', I am seeing the same. It exactly behaves the same way as my very first configuration with offset.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 3:13 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

It doesn't surprise me that run time increases but does that "make" all the jobs have equal speed? If so, do you see unequal speeds when you remove the stonewall from the numjobs setup? PS after checking that you might want to investigate the offset_increment option
(http://fio.readthedocs.io/en/sphinx-doc/fio_doc.html#cmdoption-arg-of
fset_increment
).

Quoted 31 lines · Prabhu Murugesan (pmurugesan)

Actually, I wanted all the four jobs to run in parallel as opposed to running them in sequence. It is similar to the 'numjobs' concept. But, I wanted to limit the amount of data being written and the lba range, so that not more than one lba is being written.

The way you suggested increases runtime from original 30 mins to 45 mins now.

-----Original Message-----
From: Sitsofe Wheeler [mailto:[email protected]]
Sent: Wednesday, February 01, 2017 12:21 PM
To: Prabhu Murugesan (pmurugesan) <[email protected]>
Cc: [email protected]
Subject: Re: not all the jobs running at equal speed

Looking a bit closer:

The jobs in the first run have no stonewall so all 4 jobs will run simultaneously. The jobs in the second run have stonewall so at any given time only one of the jobs will be running. Does adding stonewall to the the global of the first run give similar results to the second run?

Quoted 15 lines · Sitsofe Wheeler

Hi,

Quoted 5 lines · Prabhu Murugesan (pmurugesan)

I am trying to run 4 jobs in parallel in order to fill a drive once randomly. The dut that I am using is a 450GB NVMe drive. The problem is, not all the jobs are running at equal speed. You can find iops log file data for all the jobs below

The numjobs run is going to make all four jobs scribble over the "same" range compared to your carefully crafted first run. What happens if you set the offset to be 0 for all your jobs in your first run and let the size be 100%?

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

PS: it helps if you reduce the the number of parameters to the bare minimum that still show the problem as it's less to look through.

--
Sitsofe | http://sucs.org/~sits/

--
Sitsofe | http://sucs.org/~sits/