Bug 1309728

Summary: ssm list is slow
Product: Red Hat Enterprise Linux 7 Reporter: Marko Myllynen <myllynen>
Component: system-storage-managerAssignee: Lukáš Czerner <lczerner>
Status: CLOSED WORKSFORME QA Contact: Filesystem QE <fs-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: agk, myllynen, prajnoha, zkabelac
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-24 12:20:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marko Myllynen 2016-02-18 14:56:05 UTC
Description of problem:
# time ssm list > /dev/null 2>&1

real    0m12.105s
user    0m0.198s
sys     0m0.431s
# ssm list | wc -l
66
# 

Version-Release number of selected component (if applicable):
system-storage-mananger-0.4-5

Comment 2 Lukáš Czerner 2016-02-22 14:30:42 UTC
Hi,

thanks for the report, could you please provide the output and the duration of the following script ?

#!/bin/bash
echo 3 > /proc/sys/vm/drop_caches
echo "=== partitions"
cat /proc/partitions
echo "=== pvs"
time pvs
echo "=== vgs"
time vgs
echo "=== lvs"
time lvs
echo "=== dmsetup table"
time dmsetup table
echo "=== lsblk"
time lsblk

Also can you please provide a separate times for:

ssm list dev
ssm list pool
ssm list vol

And lastly please provide the output of:

python -m cProfile -s cumtime /bin/ssm list

Thanks!
-Lukas

Comment 3 Marko Myllynen 2016-02-24 12:20:30 UTC
I retested in the same lab now after some RHEL upgrades and rebooting the nodes, now ssm list feels instant and it takes less than one second to complete.

I think we can close this, probably a non-ssm hickup not worth investigating further here. If I see this again, I could of course provide the above information then.

Thanks.