[Kimchi-devel] Doubt Bug 121401 - LTCTest: Build36: Takes time to list "Device path" for logical pool creation

Ramon Medeiros ramonn at linux.vnet.ibm.com
Fri Feb 6 13:45:39 UTC 2015


On 02/06/2015 11:32 AM, Aline Manera wrote:
>
> 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"?
Instead of run the query every time. Do a single query and cache the 
result.(then we will refresh it periodically)
>
>>
>>
>


-- 
Ramon Nunes Medeiros
Kimchi Developer
Software Engineer - Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com




More information about the Kimchi-devel mailing list