Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Martin Wilck
On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: > On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: > > On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wrote: > > > I have pondered this quite a bit, but I can't say I have a > > > concrete > > > plan. > > > > > > To avoid depending

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Martin Wilck
On Thu, 2021-09-30 at 16:07 +0800, heming.z...@suse.com wrote: > On 9/30/21 3:51 PM, Martin Wilck wrote: > > > Another performance story: > The legacy lvm2 (2.02.xx) with lvmetad daemon, the event-activation > mode > is very likely timeout on a large scale PVs. > When customer met this issue, we

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Martin Wilck
On Wed, 2021-09-29 at 23:39 +0200, Peter Rajnoha wrote: > On Mon 27 Sep 2021 10:38, David Teigland wrote: > > On Mon, Sep 27, 2021 at 12:00:32PM +0200, Peter Rajnoha wrote: > > > > - We could use the new lvm-activate-* services to replace the > > > > activation > > > > generator when lvm.conf event

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Martin Wilck
On Wed, 2021-09-29 at 23:53 +0200, Peter Rajnoha wrote: > On Tue 28 Sep 2021 06:34, Martin Wilck wrote: > > > > You said it should wait for multipathd, which in turn waits for > > udev > > settle. And indeed it makes some sense. After all: the idea was to > > avoid locking issues or general resour

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Benjamin Marzinski
On Thu, Sep 30, 2021 at 07:51:08AM +, Martin Wilck wrote: > On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: > > On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: > > > On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wrote: > > > > I have pondered this quite a bit, but I can't s

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread heming.z...@suse.com
On 9/30/21 7:41 PM, Peter Rajnoha wrote: On 9/30/21 10:07, heming.z...@suse.com wrote: On 9/30/21 3:51 PM, Martin Wilck wrote: On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wro

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread David Teigland
On Thu, Sep 30, 2021 at 01:29:07PM +0200, Peter Rajnoha wrote: > If we see this udev settle as the key point, then I think we should probably > concentrate on enhancing systemd/udev to provide this functionality (and > primarily the udevadm trigger functionality and waiting for related > synthesize

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread David Teigland
On Wed, Sep 29, 2021 at 11:39:52PM +0200, Peter Rajnoha wrote: > Hmm, thinking about this, I've just realized one more important and related > thing here I didn't realize before - the LVM regex filters! These may contain > symlink names as one can find them in /dev. But for those symlinks, we need

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread David Teigland
On Thu, Sep 30, 2021 at 07:22:29AM +, Martin Wilck wrote: > On Wed, 2021-09-29 at 23:39 +0200, Peter Rajnoha wrote: > > For event-based activation, I'd expect it to really behave in event- > > based manner, that is, to respond to events as soon as they come and not > > wait for all the other de

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread heming.z...@suse.com
On 9/30/21 3:51 PM, Martin Wilck wrote: On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wrote: I have pondered this quite a bit, but I can't say I have a concrete plan. To avoid

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Peter Rajnoha
On 9/30/21 10:07, heming.z...@suse.com wrote: On 9/30/21 3:51 PM, Martin Wilck wrote: On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wrote: I have pondered this quite a bit, but

Re: [linux-lvm] Discussion: performance issue on event activation mode

2021-09-30 Thread Peter Rajnoha
On 9/30/21 09:51, Martin Wilck wrote: On Thu, 2021-09-30 at 00:06 +0200, Peter Rajnoha wrote: On Tue 28 Sep 2021 12:42, Benjamin Marzinski wrote: On Tue, Sep 28, 2021 at 03:16:08PM +, Martin Wilck wrote: I have pondered this quite a bit, but I can't say I have a concrete plan. To avoid de