mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
config: change nfs.iosize default value
Summary: Running the benchmarks/random_writes.cpp benchmark on all power of 2 from 4KiB to 1MiB shows that 16KiB has the best tradeoff between fast random writes and fast streaming writes. Reviewed By: chadaustin Differential Revision: D44320693 fbshipit-source-id: 2d1839caca3c30acdb6ffc675710a68359d03a76
This commit is contained in:
parent
2ea5659fdc
commit
dfb6efba3c
@ -490,9 +490,13 @@ class EdenConfig : private ConfigSettingManager {
|
||||
this};
|
||||
|
||||
/**
|
||||
* Buffer size for read and writes requests. Default to 1 MiB.
|
||||
* Buffer size for read and writes requests. Default to 16 KiB.
|
||||
*
|
||||
* 16KiB was determined to offer the best tradeoff of random write speed to
|
||||
* streaming writes on macOS, use the benchmarks/random_writes.cpp before
|
||||
* changing this default value.
|
||||
*/
|
||||
ConfigSetting<uint32_t> nfsIoSize{"nfs:iosize", 1024 * 1024, this};
|
||||
ConfigSetting<uint32_t> nfsIoSize{"nfs:iosize", 16 * 1024, this};
|
||||
|
||||
/**
|
||||
* Whether EdenFS NFS sockets should bind themself to unix sockets instead of
|
||||
|
Loading…
Reference in New Issue
Block a user