Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Gionatan Danti
Il 19-10-2018 15:08 Zdenek Kabelac ha scritto: Hi It's rather about different workload takes benefit from different caching approaches. If your system is heavy on writes - dm-writecache is what you want, if you mostly reads - dm-cache will win. That's why there is dmstats to also help

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Ilia Zykov
> > dm-writecache could be seen as 'extension' of your page-cache to held > longer list of dirty-pages... > > Zdenek > Does it mean that the dm-writecache is always empty, after reboot? Thanks. smime.p7s Description: S/MIME Cryptographic Signature

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Ilia Zykov
On 19.10.2018 16:08, Zdenek Kabelac wrote: > Dne 19. 10. 18 v 14:45 Gionatan Danti napsal(a): >> On 19/10/2018 12:58, Zdenek Kabelac wrote: >>> Hi >>> >>> Writecache simply doesn't care about caching your reads at all. >>> Your RAM with it's page caching mechanism keeps read data as long as >>>

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Zdenek Kabelac
Dne 19. 10. 18 v 14:45 Gionatan Danti napsal(a): On 19/10/2018 12:58, Zdenek Kabelac wrote: Hi Writecache simply doesn't care about caching your reads at all. Your RAM with it's page caching mechanism keeps read data as long as there is free RAM for this - the less RAM goes to page cache -

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Gionatan Danti
On 19/10/2018 12:58, Zdenek Kabelac wrote: Hi Writecache simply doesn't care about caching your reads at all. Your RAM with it's page caching mechanism keeps read data as long as there is free RAM for this - the less RAM goes to page cache - less read operations remains cached. Hi, does it

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Zdenek Kabelac
Dne 19. 10. 18 v 11:55 Ilia Zykov napsal(a): On 19.10.2018 12:12, Zdenek Kabelac wrote: Dne 19. 10. 18 v 0:56 Ilia Zykov napsal(a): Maybe it will be implemented later? But it seems to me a little strange when there is no way to clear the cache from a garbage. Maybe I do not understand? Can

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Ilia Zykov
On 19.10.2018 12:12, Zdenek Kabelac wrote: > Dne 19. 10. 18 v 0:56 Ilia Zykov napsal(a): >> Maybe it will be implemented later? But it seems to me a little >> strange when there is no way to clear the cache from a garbage. >> Maybe I do not understand? Can you please explain this behavior. >>

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Zdenek Kabelac
Dne 19. 10. 18 v 11:42 Gionatan Danti napsal(a): On 19/10/2018 11:12, Zdenek Kabelac wrote: And final note - there is upcoming support for accelerating writes with new dm-writecache target. Hi, should not it be already possible with current dm-cache and writeback caching? Hi dm-cache

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Gionatan Danti
On 19/10/2018 11:12, Zdenek Kabelac wrote: And final note - there is upcoming support for accelerating writes with new dm-writecache target. Hi, should not it be already possible with current dm-cache and writeback caching? Thanks. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. -

[linux-lvm] The node was fenced in the cluster when cmirrord was enabled on LVM2.2.02.120

2018-10-19 Thread Gang He
Hello List, I got a bug report from the customer, which said the node was fenced in the cluster when they enabled cmirrord. Before the node was fenced, we can see some log printed as below, 2018-09-25T12:55:26.555018+02:00 qu1ci11 cmirrord[6253]: cpg_mcast_joined error: 2

Re: [linux-lvm] Why doesn't the lvmcache support the discard (trim) command?

2018-10-19 Thread Zdenek Kabelac
Dne 19. 10. 18 v 0:56 Ilia Zykov napsal(a): Maybe it will be implemented later? But it seems to me a little strange when there is no way to clear the cache from a garbage. Maybe I do not understand? Can you please explain this behavior. For example: Hi Applying my brain logic here: Cache