1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

pool: use bigger pool chunk size

Start with bigger pool chunk size, this reduce amount of
pool extensions when handling larger metadata and doesn't
make it noticable bigger for small ones...
This commit is contained in:
Zdenek Kabelac 2024-10-12 20:52:27 +02:00
parent 7082c5a99e
commit dc70f23c98
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ static int _tok_match(const char *str, const char *b, const char *e)
struct dm_config_tree *dm_config_create(void)
{
struct dm_config_tree *cft;
struct dm_pool *mem = dm_pool_create("config", 10 * 1024);
struct dm_pool *mem = dm_pool_create("config", 63 * 1024);
if (!mem) {
log_error("Failed to allocate config pool.");

View File

@ -35,7 +35,7 @@
#define MIN_PE_SIZE (8192L >> SECTOR_SHIFT) /* 8 KB in sectors - format1 only */
#define MAX_PE_SIZE (16L * 1024L * (1024L >> SECTOR_SHIFT) * 1024L) /* format1 only */
#define MIRROR_LOG_OFFSET 2 /* sectors */
#define VG_MEMPOOL_CHUNK 10240 /* in bytes, hint only */
#define VG_MEMPOOL_CHUNK 63000 /* in bytes, hint only */
/*
* Ceiling(n / sz)