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.
This commit is contained in:
Josef Söntgen 2022-06-05 14:43:42 +00:00 committed by Christian Helmuth
parent 75f7fd546c
commit 9c3867e173

View File

@ -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,