Skip to contentSkip to conversation

tests on (and howto increase) lifetime?

f2fs-dev Hayati Ayguen 2 participants 2 messages Jul 14, 2021 – Jul 17, 2021

lore
Share & tools
lore
#0 lore raw

Hi,

[ probably i'm wrong in this mailing list .. but this is best, i could find. also i tried to search archive .. but couldn't find the right topic. ]

i have a logging application on raspberry pi (3/4) writing to an usb-stick or sd-card through an usb-adapter - not the internal/boot sd-card with the operating system. see https://groups.io/g/fmlist-scanner
some are used mobile: in a car or backpack.

it's writing approximately 100 - 200 kB data (few new files: some csv and a zip) every 3 to 5 minutes. write speed/performance is no issue in my application. the raspberry pi's tends to freeze or reboot from time to time .. thus the data should be safely stored .. it's sync'ed after every write (of the few files).
daily data is summarized, compressed, uploaded and moved into another directory.

vfat formatted usb-sticks usually get broken regularly in some weeks to several months.
that is why i meanwhile recommend f2fs: looks it behaves better - so far.

are there any tests (scripts or programs) to tests the life duration/cycles of usb-memory-sticks or sd-cards independent of filesystem? i would be interested to compare vfat or some other filesystem vs. f2fs.

is there a safe way to detect write errors - independent of file system
- deactivating the system's cache buffers when test-reading?

are there additional strategies to increase the life of sd-cards?

kind regards,
Hayati

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#1 lore raw

Hello Hayati,

Quoted 1 line · Hayati Ayguen

are there additional strategies to increase the life of sd-cards?

Maybe you can have a try with LFS mode of f2fs which will force filesystem triggering sequential write IO only, you can enable this mode by specifying "mode=lfs" mount option.

Thanks,

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel