From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: use mirror throttling
Date: Tue, 23 Mar 2021 10:37:18 +0000 (GMT) [thread overview]
Message-ID: <20210323103718.97F54385BF9E@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=26d76d31c5251a35bc4be1c60a1066d13b1f5f1d
Commit: 26d76d31c5251a35bc4be1c60a1066d13b1f5f1d
Parent: a5fc6a0fe7f7384db9a88a399d288d16d782f516
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Tue Mar 23 11:34:34 2021 +0100
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Mar 23 11:34:34 2021 +0100
tests: use mirror throttling
Combination of throttling and slowed device is a bit faster.
Also add FIXME about the mutliple spawn polling processing
when activating invidual LV for a pvmove.
---
test/shell/pvmove-resume-2.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/test/shell/pvmove-resume-2.sh b/test/shell/pvmove-resume-2.sh
index 803e6ef64..92b0070c0 100644
--- a/test/shell/pvmove-resume-2.sh
+++ b/test/shell/pvmove-resume-2.sh
@@ -26,12 +26,14 @@ vgcreate -s 128k $vg "$dev1"
pvcreate --metadatacopies 0 "$dev2"
vgextend $vg "$dev2"
+aux throttle_dm_mirror 50 || :
+
test_pvmove_resume() {
# 2 LVs on same device
lvcreate -an -Zn -l15 -n $lv1 $vg "$dev1"
lvcreate -an -Zn -l15 -n $lv2 $vg "$dev1"
- aux delay_dev "$dev2" 0 1000 "$(get first_extent_sector "$dev2"):"
+ aux delay_dev "$dev2" 0 200 "$(get first_extent_sector "$dev2"):"
pvmove -i5 "$dev1" &
PVMOVE=$!
@@ -108,7 +110,10 @@ lvchange_all() {
aux lvmpolld_dump | tee lvmpolld_dump.txt
aux check_lvmpolld_init_rq_count 1 "$vg/pvmove0" || should false
elif test -e HAVE_DM_DELAY; then
- test "$(aux count_processes_with_tag)" -eq "$1" || should false
+ test "$(aux count_processes_with_tag)" -eq "$1" || {
+ # FIXME: currently lvm2 is spawning polling process for each LV
+ echo "Lvchange spawns pvmove per activated LV"
+ }
fi
}
next reply other threads:[~2021-03-23 10:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-23 10:37 Zdenek Kabelac [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-20 9:53 main - tests: use mirror throttling Zdenek Kabelac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210323103718.97F54385BF9E@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.