CourionAI
EN
Newsletter
← Glossary Term

DirectIO

A way of reading a file straight from the drive without letting the operating system cache a copy along the way.

When a program opens a large file, the operating system normally keeps a copy of what it read in spare memory, on the theory that you will want it again soon. That is usually helpful. It is much less helpful when the file is a several gigabyte AI model that you read exactly once and then hold in memory anyway, because the cached copy is memory you no longer have for anything else.

DirectIO is the option that skips that middle step and reads straight from the drive. In local AI tools it usually shows up as a switch you can turn on at load time, and on machines with a fast drive and limited memory it can mean a quicker start and more room left over for the model itself. On other machines it makes little difference, so it is worth trying rather than assuming.