1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/usr/bin/env bash
# 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,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
SKIP_WITH_LVMPOLLD=1
. lib/inittest
#
# 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
#vgcreate $SHARED $vg $(< DEVICES)
# 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
# vgcreate $SHARED ${vg}$i "$DM_DEV_DIR/mapper/${PREFIX}pv$i"
#done
|