Bug 575796

Summary: performance issue of system.get_name API call
Product: Red Hat Satellite 5 Reporter: Tomas Lestach <tlestach>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED ERRATA QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: medium    
Version: 530CC: cperry, dsglaser, jhutar, pnovotny, tao, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-18 08:29:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 518253    

Description Tomas Lestach 2010-03-22 13:11:01 UTC
Description of problem:
It seems, that system.get_name call take inadequate long.

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

How reproducible:
always

Steps to Reproduce:
1. check the time needed to call 100x system.get_name
 - run the API call locally on the satellite (to minimize the network delays)
2. check the time needed to call 100x system.get_memory (what is a comparable API call)
3. compare these two results
  
Actual results:
system.get_name take 2-3 times longer than system.get_memory

Expected results:
both API call take approx. the same time

Comment 1 Tomas Lestach 2010-03-22 13:47:27 UTC
I've rewritten the API call to get the result faster.

spacewalk.git: fa743bdce5b02aeed0b0a0d52b0fe0a1fbb6433a

Comment 2 Tomas Lestach 2010-03-24 09:56:07 UTC
test case fix belongs to this change

spacewalk.git: 69b9b47e4a71fcca2e52e5b0c1c52bc1266b6770

Comment 4 Pavel Novotny 2010-09-10 12:00:29 UTC
Cannot reproduce.
I test it on several machines (archs i386/x86_64/s390x), but the API call times are very similar.
Measurement results from my tests:

Duration of: system.get_memory: 2.858413s, system.get_name: 3.273204s
Duration of: system.get_memory: 5.997070s, system.get_name: 5.263084s
Duration of: system.get_memory: 10.025141s, system.get_name: 13.187664s

Comment 5 Pavel Novotny 2010-09-13 13:01:35 UTC
After chat with Tomas Lestach I must change the testing procedure little bit to be able reproduce the bug. The issue is apparent only when the system.getName() method is called on larger number of systems, not many times on single system.

Comment 6 Pavel Novotny 2010-09-14 08:21:57 UTC
Verified.

Results *before* errata update:
Total systems: 100
Duration of: system.get_memory: 1.270379s, system.get_name: 16.700067s

*after* errata update:
Total systems: 100
Duration of: system.get_memory: 1.511934s, system.get_name: 1.701833s

Comment 8 Justin Sherrill 2010-10-01 15:15:50 UTC
*** Bug 639363 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2010-11-18 08:29:31 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0897.html