title: How to determine optimal fault tolerant memory for filex?
body: <p>in <a href="https://github.com/azure-rtos/filex/blob/master/samples/demo_filex.c" rel="nofollow noreferrer">filex example file</a>, given to <em>fx_fault_tolerant_enable</em> function RAM buffer in size of <em>FX_FAULT_TOLERANT_MAXIMUM_LOG_FILE_SIZE</em> which is 3K.</p>
  <p>I would want to reduce this define and the RAM buffer as much as I can.</p>
  <p>What are the parameters I need to decide what is the needed size for <em>FX_FAULT_TOLERANT_MAXIMUM_LOG_FILE_SIZE</em>? can I reduce the RAM buffer more?</p>
  <p>I suppose it should be some function of how many open files I have in parallel and how much I am writing to them but I don't know how to really calculate it.</p>
  <h2>EDIT</h2>
  <p>In the <a href="https://github.com/azure-rtos/filex/blob/master/common/src/fx_fault_tolerant_read_log_file.c" rel="nofollow noreferrer">read fault tolerance</a> function it looks like it is expected that the cache size is at least the size of the log in the file system, for example if <em>FX_FAULT_TOLERANT_MAXIMUM_LOG_FILE_SIZE</em> is 3K so the cache is also at least 3K. Am I right??</p>