title: Read file without disk caching in Java
body: <p>I'm training a Neural Network using an extremely large dataset of examples that cannot be fully loaded into RAM all at one time. To train, I read each example from the list of serialized files that comprises the dataset. Windows Disk Caching loads each example into RAM the first time I read it. Normally this would speed up subsequent reads of the same file because RAM is faster than disk, but because my dataset is so large, the file is removed from RAM by the time I loop back around to it so there is no added benefit.</p>
  
  <p>I would like to prevent RAM buildup as much as possible as it slows down all other processes on the machine. Currently the best solution I can think of is disabling disk caching for the files I read. Is this possible in Windows and Java? I am also open to alternative solutions; whatever allows me to iterate over dataset examples without RAM buildup.</p>
  
  <p>UPDATE: The problem I was trying to solve was not caused by RAM buildup from Disk Caching. Instead my slow read speeds were as a result of poor file structuring on my part. Read the last comment in the OP for more details.</p>