From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 5 Sep 2019 11:55:19 -0500 From: David Teigland Message-ID: <20190905165519.GB30473@redhat.com> References: <20190829143759.GA22659@redhat.com> <9280276f-8601-cfbc-db46-1dcb28f92229@suse.com> <20190903151705.GA30692@redhat.com> <370ba3fa-53df-7213-8876-d37ef1a3b57e@suse.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <370ba3fa-53df-7213-8876-d37ef1a3b57e@suse.com> Subject: Re: [linux-lvm] system boot time regression when using lvm2-2.03.05 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="us-ascii" Content-Transfer-Encoding: 7bit To: Heming Zhao Cc: Martin Wilck , "linux-lvm@redhat.com" On Thu, Sep 05, 2019 at 12:35:53PM +0000, Heming Zhao wrote: > In pvscan_cache_cmd, the code in below area "#if 0 .. #endif take a huge > time. When I used below modified code to boot, the time reduced from > 1min to 1.389s. That stops the command from doing any work. I suspect that in your tests, the "fast" case is not doing any activation, and the "slow" case is. Please check where the LVs are being activated in the fast case.