Wed Sep 29, 2021 10:31 am
This could be the problem
Is there a way to write the file directly without keeping it in RAM for an indefinite time?
Note: For multicore devices with a NAND flash memory (e.g. CCR series routers, RB4011iGS), RouterOS uses a write-back which will cache file changes into RAM memory instead of writing them straight away into flash media. The file changes will be stored on the flash when it is absolutely necessary, the writing can be delayed by up to 40 seconds. This helps to reduce CPU cycles which results in better performance. However, this can cause empty or zero-length files when a device experience a sudden power loss, because files were not fully saved on a flash.