2017-07-02 22:38:32 +03:00
#!/usr/bin/env bash
2015-03-06 16:29:26 +03:00
# Copyright (C) 2015 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 13:49:46 +03:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2015-03-06 16:29:26 +03:00
2018-05-24 17:49:48 +03:00
2015-10-27 17:10:06 +03:00
SKIP_WITH_LVMPOLLD = 1
2015-03-06 16:29:26 +03:00
2015-10-27 17:10:06 +03:00
. lib/inittest
2015-05-09 02:59:18 +03:00
2015-03-06 16:29:26 +03:00
#
# Test to exercise larger number of PVs in a VG
# Related to https://bugzilla.redhat.com/show_bug.cgi?id=736027
#
# Original measured times of the whole test case before
# and with the acceleration patch from my bare metal hw
# (Lenovo T61, 2.2GHz, 4G RAM, rawhide 2015-03-06 with ndebug kernel):
#
# export LVM_TEST_PVS=300
#
# make check_local ~52sec (U:29s, S:13s)
#
# With patch from 2015-03-06:
#
# make check_local ~30sec (U:10s, S:12s)
#
# TODO: extend test suite to monitor performance and report regressions...
# Use just 100 to get 'decent' speed on slow boxes
LVM_TEST_PVS = ${ LVM_TEST_PVS :- 100 }
#aux prepare_devs $LVM_TEST_PVS 8
2018-05-24 17:49:48 +03:00
#vgcreate $SHARED $vg $(< DEVICES)
2015-03-06 16:29:26 +03:00
# prepare_vg is now directly using steps above
aux prepare_vg $LVM_TEST_PVS
# Check we have decent speed with typical commands
vgs
lvs
pvs
lvcreate -l1 -n $lv1 $vg
lvremove -f $vg /$lv1
vgremove -ff $vg
#
# TODO Turn this into another test case:
#
#for i in $(seq 1 $LVM_TEST_PVS); do
2018-05-24 17:49:48 +03:00
# vgcreate $SHARED ${vg}$i "$DM_DEV_DIR/mapper/${PREFIX}pv$i"
2015-03-06 16:29:26 +03:00
#done