Linux FAT file system read-ahead defect, patch improves performance by 7 times

The Linux kernel has now added support for exFAT . At the same time, it has not given up maintaining the original FAT file system driver. Even from the mailing list, FAT performance may be greatly improved.

OGAWA Hirofumi, who is famous for developing the Tux3 file system, mentioned in the mailing list that the current pre-reading process of the Linux FAT file system is flawed: "The current pre-reading of FAT entries is very simple, but has some defects, so it works in certain environments Poor. This patch can more or less improve readability. "

The key points of patch improvement are:

  • Adjust the read-ahead size through bdi-> a_pages
  • Follow bdi-> io_pages to avoid small I / O requests
  • Update the read-ahead window before it is completely exhausted

OGAWA Hirofumi test results show that with this patch, on a 2TB hard drive connected to a slow USB, the transmission test that previously required 383 seconds to complete can now be completed in 51 seconds.

The specific patch code can be viewed: [PATCH resend] fat: Improve the readahead for FAT entries

Guess you like

Origin www.oschina.net/news/114827/linux-fat-readahead-improve