How Much to Buffer?
Let's do some maths to determine what should be the buffer size to ensure the best performance.
We'll cover the following...
Now arises the following question: how many updates should LFS buffer before writing to disk? The answer, of course, depends on the disk itself, specifically how high the positioning overhead is in comparison to the transfer rate; see the FFS chapter for a similar analysis.
For example, assume that positioning (i.e., rotation and seek overheads) before each write takes roughly seconds. Assume further that the disk transfer rate is ...
Access this course and 1400+ top-rated courses and projects.