Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-25 Thread Zdenek Kabelac
Dne 24. 03. 20 v 23:35 Gionatan Danti napsal(a): Il 2020-03-24 16:09 Zdenek Kabelac ha scritto: In past we had problem that when users have been using huge chunk size, and small 'migration_threashold' - the cache was unable to demote chunks from the cache to the origin deviceĀ  (the size of

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-24 Thread Gionatan Danti
Il 2020-03-24 16:09 Zdenek Kabelac ha scritto: In past we had problem that when users have been using huge chunk size, and small 'migration_threashold' - the cache was unable to demote chunks from the cache to the origin device (the size of 'required' data for demotion were bigger then what

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-24 Thread Zdenek Kabelac
Dne 24. 03. 20 v 12:37 Gionatan Danti napsal(a): Il 2020-03-24 10:43 Zdenek Kabelac ha scritto: By default we require migration threshold to be at least 8 chunks big. So with big chunks like 2MiB in size - gives you 16MiBof required I/O threshold. So if you do i.e. read 4K from disk - it may

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-24 Thread Gionatan Danti
Il 2020-03-24 10:43 Zdenek Kabelac ha scritto: By default we require migration threshold to be at least 8 chunks big. So with big chunks like 2MiB in size - gives you 16MiBof required I/O threshold. So if you do i.e. read 4K from disk - it may cause i/o load of 2MiB chunk block promotion into

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-24 Thread Zdenek Kabelac
Dne 23. 03. 20 v 23:02 Scott Mcdermott napsal(a): On Mon, Mar 23, 2020 at 2:57 AM Zdenek Kabelac wrote: Dne 23. 03. 20 v 9:26 Joe Thornber napsal(a): On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a data LV on

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-23 Thread Scott Mcdermott
On Mon, Mar 23, 2020 at 2:57 AM Zdenek Kabelac wrote: > Dne 23. 03. 20 v 9:26 Joe Thornber napsal(a): > > On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: > > > have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a > > > data LV on 1.8 TebiByte raid1 (mdraid) pair of

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-23 Thread Scott Mcdermott
On Mon, Mar 23, 2020 at 1:26 AM Joe Thornber wrote: > On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: > > [system crashed, uses all memory when brought online...] > > parameters were set with: lvconvert --type cache > > --cachemode writeback --cachepolicy smq > > --cachesettings

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-23 Thread John Stoffel
> "Zdenek" == Zdenek Kabelac writes: Zdenek> Dne 23. 03. 20 v 9:26 Joe Thornber napsal(a): >> On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: >>> have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a >>> data LV on 1.8 TebiByte raid1 (mdraid) pair of larger

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-23 Thread Zdenek Kabelac
Dne 23. 03. 20 v 9:26 Joe Thornber napsal(a): On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a data LV on 1.8 TebiByte raid1 (mdraid) pair of larger spinning disk. these disks are hosted by a small 4GB big.little

Re: [linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-23 Thread Joe Thornber
On Sun, Mar 22, 2020 at 10:57:35AM -0700, Scott Mcdermott wrote: > have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a > data LV on 1.8 TebiByte raid1 (mdraid) pair of larger spinning disk. > these disks are hosted by a small 4GB big.little ARM system > running4.4.192-rk3399

[linux-lvm] when bringing dm-cache online, consumes all memory and reboots

2020-03-22 Thread Scott Mcdermott
have a 931.5 GibiByte SSD pair in raid1 (mdraid) as cache LV for a data LV on 1.8 TebiByte raid1 (mdraid) pair of larger spinning disk. these disks are hosted by a small 4GB big.little ARM system running4.4.192-rk3399 (armbian 5.98 bionic). parameters were set with: lvconvert --type cache