
6 Feb
2015
6 Feb
'15
7:32 a.m.
On 05/02/2015 15:54, Ramon Medeiros wrote:
Hi Team,
i was debugging this bug and found that this query is taking so much time:
pvs = subprocess.Popen( ["pvs", "--unbuffered", "--nameprefixes", "--noheadings", "-o", "vg_name", devNodePath],
devNodePath is a partition or a disk (e.g. /dev/sdc or /dev/mpathe1)
The goal in this command is search the volume group that this partition belongs to. On machines that has inconsistent volume groups, it takes a long time to retrieve the information.
Can i cache this information before querying all partitions? Or there is other way to query this info faster?
What do you mean by "cache this information"?