References: <9fdc2f47-a4db-f472-e1eb-424f6a6b28d9@suse.com> From: Zdenek Kabelac Message-ID: <47ab183b-3a61-24f1-77e8-1d3aa2cf3c29@redhat.com> Date: Mon, 9 Dec 2019 12:36:49 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [linux-lvm] It looks wrong for the timeout when lvm test running Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="utf-8"; format="flowed" To: Heming Zhao , LVM general discussion and development Dne 09. 12. 19 v 11:58 Heming Zhao napsal(a): > Hello Zdenek, > > Please check the compressed file in attachment. > >> > On 12/9/19 5:40 PM, Zdenek Kabelac wrote: >> Dne 09. 12. 19 v 10:20 Heming Zhao napsal(a): >>> Hello List, >>> >>> The lvm test default timeout (--timeout) default value is 180. >>> But I met below condition when running testcase (in virtual machine): >>> ``` >>> make check_local T=shell/snapshot-merge.sh >>> ���� ... ... >>> ###������ passed: [ndev-vanilla] shell/snapshot-merge.sh 665 >>> ���� ... ... >>> ``` Hi So your test seems to be very slow in 'mkfs.ext4': [ 0:03] Creating journal (4096 blocks): done [ 1:30] Writing superblocks and filesystem accounting information: done .... [ 1:34] Creating journal (4096 blocks): done [ 3:03] Writing superblocks and filesystem accounting information: done .... [ 3:07] Creating journal (4096 blocks): done [ 4:37] Writing superblocks and filesystem accounting information: done .... [ 4:40] Creating journal (4096 blocks): done [ 6:08] Writing superblocks and filesystem accounting information: done .... This looks certainly seriously like a very slow (possibly doing TRIM) ?? Any idea why ? The test seems to be using loop device created in backend file in your /tmp (i.e.: losetup /dev/loop0 /tmp/LVMTEST11574.cJtNfnlPrj/test.img) So any idea why your virtual machine is that slow with handling this case ? One idea - aren't you using a storage with very slow discard processing (i.e. ATM VDO) ? You can setup different backend device or different location of test dir (see 'make help' in test subdir) Regards Zdenek