Verification failures with mixed read/write case
(Please CC me in the reply, I'm not subscribed)
Hi,
I've been observing verification failures with the following configuration file:
-----------
[global]
ioengine=libaio
iodepth=30
rw=randrw
bs=512-128k
direct=1
rwmixcycle=40
verify=sha256
verify_async=8
[/dev/sda2]
--------------------
This happens on both RHEL5.4 and Ubuntu 9.10.
I was observing that with fio-1.36, but I just tried cloning fio from the git repo and I'm experiencing the same problem.
Any ideas of what might be wrong?
I found this email of a few months ago:
http://www.spinics.net/lists/fio/msg00205.html
And I just verified that this patch is in my just-cloned git tree.
Also, an unrelated issue is that fio complains about 'rwmixcycle' being deprecated but the man page doesn't specify what parameter I should be using instead.
Thanks in advance,
Ricardo
Ok, this appears to be a bug in the SHA256 function after all:
sha256: verify failed at 0/1310720K/23461K /s] [0/179 iops] [eta
00m:46s] 4234ee764aba733fd973ca3f52ab654e9b2611287eecd75043b45806e725ea6d3817f1342a03bb6835129936feb6d4738e7ca76195c3106055d45d233867777957496c386cbdfd4bcbaab173d391f168df5d3e04f4821f67af2dc17da4a5ff1f56b2e85abdac00677b61470775117408c0b34116b505e46992f21f29d0302132 4234ee764aba733fd973ca3f52ab654e9b2611287eecd75043b45806e725ea6d3817f1342a03bb6835129936feb6d4738e7ca76195c3106055d45d2338677779e41d69b71069690d300255b680aa84b786c769b7ed9380b7000000000000000000000000f0fd7db7020055b6000285b7c59380b7b4f77db7f4df85b780c968b7
sha256: verify failed at 131072/131072 23d88d7345fae206536dc33adfb9be1a4040c654ee68e86121a3380a08884175e1be76634d8fdf02b7680f30f39183707a0e6a589c9fd928ec06c176b2ee29485722d229075c0c1965ae097e00b05a39a4de530104a8621fada832696571b4711f139a3f80cb95431ee6e7590a500927cd701e116c85843219f7a32e79bbaa7e 23d88d7345fae206536dc33adfb9be1a4040c654ee68e86121a3380a08884175e1be76634d8fdf02b7680f30f39183707a0e6a589c9fd928ec06c176b2ee294800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
It works fine with SHA512.
Cheers,
Ricardo
Quoted 40 lines · Ricardo M. Correia
(Please CC me in the reply, I'm not subscribed)
Hi,
I've been observing verification failures with the following configuration file:
-----------
[global]
ioengine=libaio
iodepth=30
rw=randrw
bs=512-128k
direct=1
rwmixcycle=40
verify=sha256
verify_async=8[
/dev/sda2]
--------------------This happens on both RHEL5.4 and Ubuntu 9.10.
I was observing that with fio-1.36, but I just tried cloning fio from the git repo and I'm experiencing the same problem.
Any ideas of what might be wrong?
I found this email of a few months ago:
http://www.spinics.net/lists/fio/msg00205.htmlAnd I just verified that this patch is in my just-cloned git tree.
Also, an unrelated issue is that fio complains about 'rwmixcycle' being deprecated but the man page doesn't specify what parameter I should be using instead.
Thanks in advance,
Ricardo
Quoted 26 lines · Ricardo M. Correia
(Please CC me in the reply, I'm not subscribed)
Hi,
I've been observing verification failures with the following configuration file:
-----------
[global]
ioengine=libaio
iodepth=30
rw=randrw
bs=512-128k
direct=1
rwmixcycle=40
verify=sha256
verify_async=8[
/dev/sda2]
--------------------This happens on both RHEL5.4 and Ubuntu 9.10.
I was observing that with fio-1.36, but I just tried cloning fio from the git repo and I'm experiencing the same problem.
Quoted 6 lines
Any ideas of what might be wrong?
I found this email of a few months ago:
http://www.spinics.net/lists/fio/msg00205.htmlAnd I just verified that this patch is in my just-cloned git tree.
Mixed read-write workloads generally don't work well with verify. The reason being that if you do verify && read, then fio will assume that you want to verify previously written data. That should not happen for a generated read as part of a mixed workload, I'll check what happens here.
Quoted 3 lines
Also, an unrelated issue is that fio complains about 'rwmixcycle' being deprecated but the man page doesn't specify what parameter I should be using instead.
The time based approach didn't work well for buffered writes, so it was switched to an issue based count instead only. So you use rwmixread/rwmixwrite to set the percentages.
Signature · 1 line
Jens Axboe
Quoted 32 lines · Jens Axboe
Quoted 31 lines · Ricardo M. Correia
(Please CC me in the reply, I'm not subscribed)
Hi,
I've been observing verification failures with the following configuration file:
-----------
[global]
ioengine=libaio
iodepth=30
rw=randrw
bs=512-128k
direct=1
rwmixcycle=40
verify=sha256
verify_async=8[
/dev/sda2]
--------------------This happens on both RHEL5.4 and Ubuntu 9.10.
I was observing that with fio-1.36, but I just tried cloning fio from the git repo and I'm experiencing the same problem.
Any ideas of what might be wrong?
I found this email of a few months ago:
http://www.spinics.net/lists/fio/msg00205.html
Quoted 7 lines
Quoted 1 line
And I just verified that this patch is in my just-cloned git tree.
Mixed read-write workloads generally don't work well with verify. The reason being that if you do verify && read, then fio will assume that you want to verify previously written data. That should not happen for a generated read as part of a mixed workload, I'll check what happens here.
OK, so this seems to be just a bug in sha256, it's working as expected here. Can you try the below patch?
verify.c +1 -1
@@ -212,7 +212,7 @@ static int verify_io_u_sha256(struct verify_header *hdr, struct io_u *io_u, {void *p =io_u_verify_off (hdr, io_u, header_num);struct vhdr_sha256 *vh =hdr_priv (hdr); -uint8_t sha256[128 ]; +uint8_t sha256[64 ];struct sha256_ctx sha256_ctx = { .buf = sha256, };
verify.h +1 -1
@@ -37,7 +37,7 @@ struct vhdr_sha512 {uint8_t sha512[128 ]; };struct vhdr_sha256 { -uint8_t sha256[128 ]; +uint8_t sha256[64 ]; };struct vhdr_sha1 {uint32_t sha1[5 ];
Signature · 1 line
Jens Axboe
Yup, that seems to have worked.
Thanks :)
Quoted 30 lines · Jens Axboe
OK, so this seems to be just a bug in sha256, it's working as expected here. Can you try the below patch?
verify.c +1
-1@@ -212,7 +212,7 @@ static int verify_io_u_sha256(struct verify_header *hdr, struct io_u *io_u, {void *p =io_u_verify_off (hdr, io_u, header_num);struct vhdr_sha256 *vh =hdr_priv (hdr); -uint8_t sha256[128 ]; +uint8_t sha256[64 ];struct sha256_ctx sha256_ctx = { .buf = sha256, };verify.h +1
-1@@ -37,7 +37,7 @@ struct vhdr_sha512 {uint8_t sha512[128 ]; };struct vhdr_sha256 { -uint8_t sha256[128 ]; +uint8_t sha256[64 ]; };struct vhdr_sha1 {uint32_t sha1[5 ];
Quoted 3 lines · Ricardo M. Correia
Yup, that seems to have worked.
Thanks :)
No problem, apparently sha256 verifies aren't that widely used :-)
Quoted 34 lines · Jens Axboe
Quoted 30 lines
OK, so this seems to be just a bug in sha256, it's working as expected here. Can you try the below patch?
verify.c +1
-1@@ -212,7 +212,7 @@ static int verify_io_u_sha256(struct verify_header *hdr, struct io_u *io_u, {void *p =io_u_verify_off (hdr, io_u, header_num);struct vhdr_sha256 *vh =hdr_priv (hdr); -uint8_t sha256[128 ]; +uint8_t sha256[64 ];struct sha256_ctx sha256_ctx = { .buf = sha256, };verify.h +1
-1@@ -37,7 +37,7 @@ struct vhdr_sha512 {uint8_t sha512[128 ]; };struct vhdr_sha256 { -uint8_t sha256[128 ]; +uint8_t sha256[64 ]; };struct vhdr_sha1 {uint32_t sha1[5 ];
Signature · 1 line
Jens Axboe