From 9de432847cd699457623de84f76f7598aecd61e3 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 22 Jan 2019 13:30:34 +0530 Subject: 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 --- tests/bugs/core/bug-1432542-mpx-restart-crash.t | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/bugs/core/bug-1432542-mpx-restart-crash.t') 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 -- cgit