]> sourceware.org Git - lvm2.git/commit
Fix all segments memory is allocated from vg private mempool.
authorMilan Broz <mbroz@redhat.com>
Wed, 31 Mar 2010 17:23:18 +0000 (17:23 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 31 Mar 2010 17:23:18 +0000 (17:23 +0000)
commit0802006ea76949234f7a7d0e3572e771cc0244f0
tree242aff64f2705113f8e22161cd21e518836a3bd8
parent29a21d162778dbdb8fa0d279e006b823f61e373a
Fix all segments memory is allocated from vg private mempool.

Physical segments were still allocated from global
command context mempool.

This leads to very high memory usage when
activating large VG (vgchange).
(Memory usage was about 2G when >3000LVs).

Fix it by properly using vg->vgmem private pool,
so all the memory is released early.

New memory pool parameter is needed here for pv_split_segment
function.

Also fix the same problem in some minor allocations
(vg description, lv segment split).
WHATS_NEW
lib/format_text/import.c
lib/metadata/lv_manip.c
lib/metadata/merge.c
lib/metadata/pv_alloc.h
lib/metadata/pv_manip.c
This page took 0.037568 seconds and 5 git commands to generate.