Submitted:
23 October 2025
Posted:
24 October 2025
Read the latest preprint version here
Abstract
Keywords:
1. Introduction


1.1. Systems Without an Operating System
1.2. Adoption of Embedded Linux
1.3. File System in This Use Case
|
Commercial Solutions | |
|---|---|
|
Adopting commercially available file- system products can be a rational choice from an economic standpoint. These solutions often provide proven stability and power-loss resilience. |
However, most commercial solutions require high evaluation and licensing costs, and their deployment involves significant time overhead due to contractual and legal processes. |
|
Porting ext4 (Open Source) | |
|
Porting an open-source, general-purpose file system such as ext4 to a low-resource environment. ext4 offers journaling and metadata protection mechanisms that improve resilience to unexpected power loss. |
In resource-constrained environments, the overhead of journaling and caching mechanisms typically leads to resource exhaustion. Implementation and validation costs are unpredictable, making this approach impractical. |
|
Porting LOGFS (Open Source) | |
|
Porting an open-source log-structured file system (LOGFS) designed for flash storage. LOGFS inherently supports append-only writes and offers better power-loss protection than ext4. |
While suitable for flash memory, LOGFS suffers from excessive mount-time costs proportional to the flash size. Implementation and evaluation overhead remain uncertain. |
|
Designing a Custom Log-Structured File System | |
|
Designing a proprietary log-structured file system fully optimized for the specific constraints and requirements of the target IoT device. |
Based on pre-implementation and cost analysis, this approach provides the most economically and technically feasible solution under the given resource constraints. |
2. Functional Requirements
2.1. Control of Multiple Sensors
2.2. Resilience to Unexpected Power Loss
2.3. Focus of This Study
| File System |
Unexpec- ted Power Loss |
Mount/ Boot |
Wear Leveling |
Resource Size/ Footprint |
|---|---|---|---|---|
| ext4 | ◯ | ◯ | — | ◯ |
|
FAT (12,16,32,v) |
◯ | ◯/— | — | ◯ |
| LogFS | ◯/— | ◯ | ◯ | — |
|
This Architecture MXFS |
◯ | —/◯ | ◯+ | ◯+ |
2.3.1. Notes
- "◯" indicates that the item is well supported or fully implemented.
- "—" indicates that the feature is not explicitly supported or not prioritized.
- "◯+" indicates that the feature is enhanced or specially optimized, providing superior performance compared to standard implementations.
- "◯/—" indicates conditional or partial support — for example, LogFS offers power-loss resilience under certain conditions but not universally.
| Tuxera Rliance Edge | |
|---|---|
|
Log-structured + transactional, combining journal and log-structured approaches |
https://www.ubiquitous-ai.com/ products/reliance_edge/ |
| Renesas FAT file system | |
|
Implements power-failure support within the scope of the FAT specification |
https://www.renesas.com/jp/ja/ software-tool/fat-file-system |
|
OSS no-OS FatFS (SD / SPI / RPi Pico) | |
|
Power-failure support implemented within the scope of the FAT specification |
https://github.com/carlk3/ no-OS-FatFS-SD-SPI-RPi-Pico |
| HITACHI UltraFile | |
|
Power-failure support implemented within the scope of the FAT specification |
https://www.hitachi-solutions-tech.co.jp /embedded/service/middleware/ ultra_file/index.html |
3. Requirements and Characteristics
- High data access performance: The system must achieve fast read and write access to data for real-time or near–real-time processing of sensor information.
- Strong resilience to unexpected power loss: Data integrity must be maintained even in the event of sudden power interruptions.
- Small footprint and low power consumption: Both hardware and software components should be optimized for compactness and minimal energy usage.
- Multi-sensor control capability: The system must be able to manage and synchronize multiple sensor inputs efficiently.
- Wireless communication support: Integrated wireless connectivity is required for data transmission and remote monitoring.
- Over-the-Air (OTA) updates: Secure OTA firmware updates are supported, though this topic is beyond the scope of this paper.
- Use of SPI/NAND flash memory: SPI/NAND flash is advantageous due to its stable supply chain, ease of integration, large capacity, and broad interchangeability and availability.
- Temporal data locality: The system should provide access to sensor data stored in non-volatile memory for the past few days, ensuring locality of reference over time.
- Graceful degradation on power loss: Loss of unsynchronized sensor data during unexpected power failure is considered acceptable.
- Low-power operation under poor connectivity: The system must continue data storage and deferred transmission even in environments with unstable or limited wireless connectivity.
4. Log-Structured File System
4.1. Proposed Technique





5. Copy-on-Write (COW)
6. Fast Mount

7. Wear Leveling

8. Extending Life of NAND/Flash Memory

9. Unexpected Power Loss

10. Interfaces
| Interface | Description |
|---|---|
| open | Generate or open a file. |
| close | Close a file. |
| read | Read data from a file descriptor into a buffer. |
| write | Write data from a buffer to a file descriptor. |
| create/release | Initialize or release the file system, including mount, unmount, and boot processes. |
| Interface | Description |
|---|---|
| append | append data to specific layer(flush is automatic). |
| create/release instance |
Initialize/Release File system, mount/unmount, included boot. |
11. DMA Performance
| AVG | Cmd Bytes |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2195 | write 32 |
2162 |
2162 |
2228 |
2228 |
2226 |
2162 |
2166 |
2183 |
2210 |
2229 |
| 2101 | read 32 |
2067 |
2055 |
2192 |
2104 |
2116 |
2086 |
2092 |
2045 |
2133 |
2129 |
| 5632 | write 1984 |
5926 |
5553 |
5556 |
5904 |
5559 |
5554 |
5557 |
5579 |
5558 |
5578 |
| 5526 | read 1984 |
5781 |
5407 |
5431 |
5852 |
5482 |
5464 |
5511 |
5459 |
5424 |
5451 |
12. Related Works
12.1. Log-Structured File Systems Basic
12.2. Generic FTL
- Unifying FTL and FS responsibilities into a single log-structured control plane under severe resource constraints (less than 10 KB RAM).
- Introducing a hardware-cooperative FSM mechanism for safe multi-MCU NAND access.
- Delegating crash recovery and GC to a power-stable domain, rather than an always-on firmware process.
- Achieving high endurance and energy efficiency in IoT-class devices without external controllers or firmware-managed FTL layers.
12.3. A Survey of Data Recovery on Flash Memory
- Child boards (low-resource, low-frequency domain) perform high-speed sensor logging and sequential append() operations only when they temporarily own the SPI/NAND bus, ensuring minimal latency during active sensor sampling.
- Mother boards (high-resource, stable-power domain) assume SPI/NAND ownership asynchronously to execute computationally intensive tasks such as garbage collection (GC), wear-leveling, and power-loss recovery (PLR).
- FTL mapping and PLR recovery are preserved as functional principles,
- but their execution timing and resource domains are decoupled and re-scheduled according to hardware-level temporal locality and power stability.
13. Conclusion

13.1. Operation Under Resource-Constrained Conditions
13.2. Deep Sleep Behavior
13.3. Summary
13.4. Final Thoughts
Author Contributions
Funding
Conflicts of Interest
Use of Artificial Intelligence
References
- M. Rosenblum and J. K. Ousterhout, The Design and Implementation of a Log-Structured File System, ACM Transactions on Computer Systems, Vol. 10, No. 1, February 1992, pp. 26–52.
- Alahmadi, A., and Chung, T. S. 2023. Crash Recovery Techniques for Flash Storage Devices Leveraging Flash Translation Layer, A Review. Electronics, 12(6), 1422. [CrossRef]
- V. D. Tran and D. J. Park, A Survey of Data Recovery on Flash Memory, International Journal of Electrical and Computer Engineering (IJECE), vol. 10, no. 1, pp. 360–376, Feb. 2020. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).