From 9c3867e173a1b306f8a23a0737ab8d574fe7490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Sun, 5 Jun 2022 14:43:42 +0000 Subject: [PATCH] libc: increase stat I/O blksize hint to 64 KiB The configured 'st_blksize' influences the sizing of the FILE buffer, see '__swhatbuf()'. Increasing the blksize hint can lead to larger 'fread()' requests and in return to fewer roundtrips. --- repos/libports/src/lib/libc/vfs_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/libports/src/lib/libc/vfs_plugin.cc b/repos/libports/src/lib/libc/vfs_plugin.cc index 7ffc3dacbc..89db7eab71 100644 --- a/repos/libports/src/lib/libc/vfs_plugin.cc +++ b/repos/libports/src/lib/libc/vfs_plugin.cc @@ -101,7 +101,7 @@ static Libc::Plugin_context *vfs_context(Vfs::Vfs_handle *vfs_handle) static void vfs_stat_to_libc_stat_struct(Vfs::Directory_service::Stat const &src, struct stat *dst) { - enum { FS_BLOCK_SIZE = 4096 }; + enum { FS_BLOCK_SIZE = 4096 * 16 }; unsigned const readable_bits = S_IRUSR, writeable_bits = S_IWUSR,