f3write (128GB stick): assertion !fdatasync(fd) failes at different files
I got
f3write.c:236 measure Assertion '!fdatasync(fd)' failed
Then, the stick appears to be not mounted any more under /run/media/stick, but the device is still listed in lsblk.
Please advice, what I can change in the code (if applicable.)
one
One occurence was on the 12th file:
- Creating file 12.h2w - 10.05% 35.12Mb/s - 47:56
two
After remounting the stick (via click onto the device in Dolphin Filemanager) and restarting f3, an occurence was on the 31th file:
- Creating file 31.h2w - 26.29% 33.82 Mb/s - 42:26
USB Stick
- USB SanDisk UltraFit USB 3.0 128GB http://www.amazon.de/gp/product/B00YFI1EBC
System
- f3 git version (f3write) https://github.com/AltraMayor/f3/commit/cbe8d6167a214ceec516b9ff7f0b5e1bdeb06079
- http://www.intel.eu/content/www/eu/en/nuc/nuc-kit-nuc5i7ryh.html with latest BIOS version 0354 1/28/2016 ( Intel i7-5557U CPU 3.1 GHz with Turbo Boost)
- OpenSuse LEAP 42.1
[updated post]
The problem was also reproducible using f3read. After a while, the device was dismounted, so that reading reported error.
The error was not reproducible on the other three USB sockets, and not reproducible on my other system, a NUC i5.
So i suppose, it is a specific hardware problem on that single port on the NUC.
Closing the issue, because it is apparently not related to f3 software.
(reopened the issue)
I tested with a second device (stick). Now the error is apparent on the two different computers. I tend to think, that it is a certain problem with the f3 software.
Please advice.
A temperature problem because accessing too fast ???
Hi @Wikinaut,
The reason why f3write/f3read haven't handled that assert() in a graceful way is because it is a rare event. I receive none or one report on this issue a year. So it's not clear how to properly deal with it. In all previous cases, the drives were fake, and they didn't last much under use/test, that is, even when I could test one of them, the drive died too soon to arrive at a final conclusion. Although I haven't seen a good drive to trigger this issue, I think it is possible.
If you're willing to donate your drives to allow me to work on them, please send me a private e-mail.
@AltraMayor I suppose, it's a kind of thermal/timing problem with these sticks, which heat up after abt. 20..30 GB of testing. Tonight, I will test the two sticks I have (one shows about double the errors and on more ports than the other stick) after having cooled-down to -18°C in my deep-freezer. If I then see an apparent change in the results, I will come back here.
Problems came also up with "chilled" devices - these are very small, and are heating up soon. I am now testing with the older 32GB devices (for which no problems were found formerly, but I tested only one device some time ago.)
Do you think, that f3 is accessing "too fast", can this be the reason?
Let's assume that the fact that F3 is accessing too fast is the problem. Doesn't it already mean that the drive is useless? Otherwise, how do you intend to slow down all applications that access the drive?
I also see this symptom, with a 16 GB SD card.
$ f3write /media/a/b/
Free space: 117.74 MB
Creating file 1.h2w ... 13.59% -- 16.00 MB/sf3write: f3write.c:241: measure: Assertion `!fdatasync(fd)' failed.
Aborted (core dumped)
Subsequent runs are similar:
Removing old file 1.h2w ...
Free space: 117.74 MB
Creating file 1.h2w ... f3write: f3write.c:241: measure: Assertion `!fdatasync(fd)' failed.
Aborted (core dumped)
Reading fails:
$ f3read /media/a/b/
SECTORS ok/corrupted/changed/overwritten
Validating file 1.h2w ... 0/ 0/ 0/ 0 - NOT fully read due to "Input/output error"
Data OK: 0.00 Byte (0 sectors)
Data LOST: 0.00 Byte (0 sectors)
Corrupted: 0.00 Byte (0 sectors)
Slightly changed: 0.00 Byte (0 sectors)
Overwritten: 0.00 Byte (0 sectors)
WARNING: Not all data was read due to I/O error(s)
Average reading speed: 0.00 Byte/s
The drive remains mounted and accessible, and creating files on it (for instance, with cat) works, and the contents are readable.
Hi @kbara,
If you're willing to donate your card, I can work on improving how f3write/f3read handles this case. E-mail me at michel AT digirati DOT com DOT br, so I can reply you with an address to mail the card.
I got the same error, but dmesg showed errors like
[337673.105935] blk_update_request: I/O error, dev mmcblk0, sector 466904
Had this same "measure assertion" on a drive. Opened up the drive and saw that the memory chip had RMRMRMRM etched into it. This likely stands for "return material" which indicates that the drive or memory IC was marked defective by some flash drive manufacturer.
I haven't received any donation of drives with this issue to improve f3write.
I think the issue is that the write is cached by the OS, and only once a write is forced by way of sync, the write error occurs and is reported. strace showed a return value of EIO.
I had this issue and f3probe is reporting my SD card as "damaged". I may try to donate my card if you want...
I am having the same problem.
sudo ./f3write /media/ayan Free space: 118.87 GB Creating file 1.h2w ... f3write: f3write.c:241: measure: Assertion `!fdatasync(fd)' failed. Aborted (core dumped)
And
sudo ./f3read /media/ayan SECTORS ok/corrupted/changed/overwritten
Data OK: 0.00 Byte (0 sectors) Data LOST: 0.00 Byte (0 sectors) Corrupted: 0.00 Byte (0 sectors) Slightly changed: 0.00 Byte (0 sectors) Overwritten: 0.00 Byte (0 sectors) Average reading speed: 0.00 Byte/s
@2ayan what is the FS used on your partition, FAT32, EXT4?
For me formatting my SD Card in FAT32 has made f3w & f3r good again (even if f3probe says that my SD Card is damaged whatever the FS format used) but switching back EXT4 make it fail again...
Thanks for your quick reply @juadde . The file format is FAT32.
Do you mean f3w=f3write and f3r=f3read?
Yes @2ayan this is what I wanted to mean. I mailed my malfunctionning card to @AltraMayor maybe it will help him to understand what the problem is...
Hello,
I have a fake card that had this behavior in my first f3write and f3read run, but not in the 2nd one... Would you want me to ship it to you?
HI @John-Gee,
That card isn't going to help to improve f3write. Thank you for your offer.