Bug 1112779

Summary: Iterating mounts can take a few seconds
Product: Red Hat Enterprise Virtualization Manager Reporter: Dima Kuznetsov <dkuznets>
Component: vdsmAssignee: Dima Kuznetsov <dkuznets>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, gklein, iheim, lpeer, oourfali, pstehlik, sherold, ybronhei, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: vt3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 13:40:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    

Description Dima Kuznetsov 2014-06-24 16:24:47 UTC
Description of problem:
On hosts with large amount of mounts, iterating active mounts can lead to big delays, because for each mount encountered, all active mounts are checked.

Version-Release number of selected component (if applicable):
4.15


How reproducible:
100%, tests reproducing the behavior provided in patch.


Steps to Reproduce:
1. Have about 1000 mounts
2. call some code that iterates mounts

Actual results:
With tests provided, for 1000 mount entries, iteration took 11 second

Expected results:
After adding caching, iteration reduced to 0.1 seconds.


Additional info:

Comment 1 Eyal Edri 2014-09-10 20:21:40 UTC
fixed in vt3, moving to on_qa.
if you believe this bug isn't released in vt3, please report to rhev-integ

Comment 2 Jiri Belka 2014-10-02 16:40:14 UTC
ok, vdsm-4.14.17-1.el6ev.x86_64

`time vdsClient -s 0 getStorageDomainsList' is always OK, also CPU usage is low.