<div dir="ltr"><div><div><div><div><div>Hi all,<br></div>I was looking at the internal working of a benchmark and the way it disables cache for direct IO operations, needed to benchmark storage device drivers. I have a small query regarding how cache is organized in RTEMS:<br><br></div>Usually data transfer model is something like:<br></div>Application address space --> Page cache --> Write-back cache --> storage device<br></div>is this model valid for RTEMS too?<br><br></div>Moreover, in FreeBSD/Linux, O_DIRECT flag is used with the file descriptor to bypass write-back cache. do we have something like that in RTEMS? AFAIK, In RTEMS, libblock is used to transfer data to the storage device. So, configuring it like:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> #define CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS 0<br></blockquote><div>should disable the cache? or is there any other setting that should be tweaked?<br><br></div><div>Regards,<br></div><div>Udit<br></div><div><br></div></div>