Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
device-mapper.14215
bug-1164718_12-io-increase-the-default-io-memor...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1164718_12-io-increase-the-default-io-memory-from-4-to-8-MiB.patch of Package device-mapper.14215
From 590a1ebcf78b8aae2a1e5ebaba1ac24a54435690 Mon Sep 17 00:00:00 2001 From: David Teigland <teigland@redhat.com> Date: Mon, 4 Mar 2019 11:18:34 -0600 Subject: [PATCH] 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. --- lib/config/defaults.h | 2 +- lib/label/label.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/defaults.h b/lib/config/defaults.h index 3b4438a0c..9e398d759 100644 --- a/lib/config/defaults.h +++ b/lib/config/defaults.h @@ -269,6 +269,6 @@ #define DEFAULT_SCAN_LVS 0 -#define DEFAULT_IO_MEMORY_SIZE_KB 4096 +#define DEFAULT_IO_MEMORY_SIZE_KB 8192 #endif /* _LVM_DEFAULTS_H */ diff --git a/lib/label/label.c b/lib/label/label.c index e96a7fe36..4f8e1354f 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -791,7 +791,7 @@ out: * 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 static int _setup_bcache(int num_devs) -- 2.24.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor