mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
io: increase the default io memory from 4 to 8 MiB
This is the default bcache size that is created at the start of the command. It needs to be large enough to hold a single copy of metadata for a given VG, or the VG cannot be read or written (since the entire VG would not fit into available memory.) Increasing the default reduces the chances of anyone needing to increase the default to use their VG. The size can be set in lvm.conf global/io_memory_size; the lower limit is 4 MiB and the upper limit is 128 MiB.
This commit is contained in:
parent
3584e0c0d5
commit
7edbf8a441
@ -314,6 +314,6 @@
|
|||||||
|
|
||||||
#define DEFAULT_HINTS "all"
|
#define DEFAULT_HINTS "all"
|
||||||
|
|
||||||
#define DEFAULT_IO_MEMORY_SIZE_KB 4096
|
#define DEFAULT_IO_MEMORY_SIZE_KB 8192
|
||||||
|
|
||||||
#endif /* _LVM_DEFAULTS_H */
|
#endif /* _LVM_DEFAULTS_H */
|
||||||
|
@ -794,7 +794,7 @@ out:
|
|||||||
* the metadata size.)
|
* the metadata size.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define MIN_BCACHE_BLOCKS 32 /* 4MB, currently matches DEFAULT_IO_MEMORY_SIZE_KB */
|
#define MIN_BCACHE_BLOCKS 32 /* 4MB */
|
||||||
#define MAX_BCACHE_BLOCKS 1024
|
#define MAX_BCACHE_BLOCKS 1024
|
||||||
|
|
||||||
static int _setup_bcache(int num_devs)
|
static int _setup_bcache(int num_devs)
|
||||||
|
Loading…
Reference in New Issue
Block a user