summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-01-22 13:30:34 +0530
committerAmar Tumballi <amarts@redhat.com>2019-01-24 09:54:44 +0530
commit9de432847cd699457623de84f76f7598aecd61e3 (patch)
treeb7cd5a2adaa6c1c4eedbd550a48a884f5290eff3 /tests/bugs
parent990d6a99d41111ea18481db55566a96c2fc4dad4 (diff)
tests/bug-brick-mux-restart: add extra information
so that we can understand more about process memory and thread consumptions With this, we will also be able to understand more about the process details with brick-mux. updates: bz#1193929 Change-Id: I147a3e3814fc37dfb635217d0a0f0184fae0994f Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/core/bug-1432542-mpx-restart-crash.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/bugs/core/bug-1432542-mpx-restart-crash.t b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
index ecffcfa4fb7..2793d7008e1 100644
--- a/tests/bugs/core/bug-1432542-mpx-restart-crash.t
+++ b/tests/bugs/core/bug-1432542-mpx-restart-crash.t
@@ -81,14 +81,25 @@ TEST $CLI volume set all cluster.brick-multiplex on
# NUM_VOLS-1 and there are 5 such statements in each iteration.
TESTS_EXPECTED_IN_LOOP=84
for i in $(seq 1 $NUM_VOLS); do
+ starttime="$(date +%s)";
+
create_volume $i
TEST dd if=/dev/zero of=$(get_mount_point $i)/a_file bs=4k count=1
# Unmounting to reduce memory footprint on regression hosts
mnt_point=$(get_mount_point $i)
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $mnt_point
- pmap -x `pgrep glusterfsd` | grep total
+ endtime=$(expr $(date +%s) - $starttime)
+
+ echo "Memory Used after $i volumes : $(pmap -x $(pgrep glusterfsd) | grep total)"
+ echo "Thread Count after $i volumes: $(ps -T -p $(pgrep glusterfsd) | wc -l)"
+ echo "Time taken : ${endtime} seconds"
done
+echo "=========="
+echo "List of all the threads in the Brick process"
+ps -T -p $(pgrep glusterfsd)
+echo "=========="
+
# Kill glusterd, and wait a bit for all traces to disappear.
TEST killall -9 glusterd
sleep 5