Bug 43880 - service_info.py inefficiency O(n^2)
service_info.py inefficiency O(n^2)
Status: NEW
Product: UCS
Classification: Unclassified
Component: UCR - Info Files
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-15 15:41 CET by Philipp Hahn
Modified: 2020-06-22 17:14 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2017-03-15 15:41:46 CET
For *every service* configured via .univention-service files, ServiceInfo.update_services() calls Service._update_status(), which uses pidof() to iterates over *all processes* and kernel threads.
This is slow and should be improved as this is now used by Bug #43470.