From: Daniel Stodden <daniel.stodden@citrix.com>
To: Linux LVM <linux-lvm@redhat.com>
Subject: Re: [PATCH] [linux-lvm] vgchange -a memory consumption
Date: Wed, 16 Jul 2008 11:08:28 -0700 [thread overview]
Message-ID: <1216231708.16876.31.camel@desktop> (raw)
In-Reply-To: <1216231344.16876.25.camel@desktop>
On Wed, 2008-07-16 at 11:02 -0700, Daniel Stodden wrote:
> On Wed, 2008-07-16 at 18:42 +0100, Alasdair G Kergon wrote:
> > Quick way for starters, is allocate a pointless object in the pool
> > then free eveything back to that point each time round the loop.
>
> Thought so. Thanks for suggesting it.
>
> > But proper thing is to track down into the library and find
> > which routines are the ones where the pool can be freed at
> > the end and isn't being.
>
> Let's take lv_deactivate() in activate.c as an example.
>
> We'd have
> lv = lv_from_lvid()
>
> and then would do a:
> dm_pool_free(lv->vg)
>
> or something similar, because we know the VG is constructed before th LV
> can be found. That's what I meant with 'non-obvious'.
>
> That example wasn't even a very good fix, because it appears to still
> leave a tip hanging around. Didn't figure exactly what it was.
Did you ever consider to have the part behind lock_vol() allocate it's
own pool (let's call it tmp) for temporary storage? So e.g.
lv_from_lvid() would read the VG into tmp and the lv it actally returns
into cmd->mem?
That would be a much larger change, but probably the cleaner way to do
it.
... not like I'm looking for extra work or something :]
Best,
Daniel
next prev parent reply other threads:[~2008-07-16 18:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-12 5:57 [linux-lvm] vgchange -a memory consumption Daniel Stodden
2008-07-12 16:51 ` Alasdair G Kergon
2008-07-15 6:19 ` Daniel Stodden
2008-07-16 16:48 ` [PATCH] " Daniel Stodden
[not found] ` <20080716165243.GM7155@agk.fab.redhat.com>
[not found] ` <1216228176.1130.13.camel@desktop>
[not found] ` <20080716174240.GN7155@agk.fab.redhat.com>
[not found] ` <1216231344.16876.25.camel@desktop>
2008-07-16 18:08 ` Daniel Stodden [this message]
2008-07-16 20:39 ` [PATCH2] " Daniel Stodden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1216231708.16876.31.camel@desktop \
--to=daniel.stodden@citrix.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.