From 2fee1e673b65dc4570f817f7e1168931f194a46b Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Fri, 27 Jul 2018 17:55:54 -0700 Subject: [PATCH] Set default --io_block_size to 64K --io_block_size determines the buffer size for each read/write in ThreadedIO. A big io_block_size does not help much as long as --io_cache_size is big enough. Instead, it may cause problems. For example, Linux pipes block until reading io_block_size number of bytes, which causes a large delay when reading audio streams. Change-Id: I5bdd3d61388579c7e8647cdab3152135a40a752b --- packager/file/file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/file/file.cc b/packager/file/file.cc index 6c4933f6db..c0b4586e2d 100644 --- a/packager/file/file.cc +++ b/packager/file/file.cc @@ -27,7 +27,7 @@ DEFINE_uint64(io_cache_size, "Size of the threaded I/O cache, in bytes. Specify 0 to disable " "threaded I/O."); DEFINE_uint64(io_block_size, - 2ULL << 20, + 1ULL << 16, "Size of the block size used for threaded I/O, in bytes."); // Needed for Windows weirdness which somewhere defines CopyFile as CopyFileW.