Bug 1128715
Summary: | [scale] unclosed files refernces hit the performance | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Eldad Marciano <emarcian> |
Component: | vdsm | Assignee: | Oved Ourfali <oourfali> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Eldad Marciano <emarcian> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.4.1-1 | CC: | bazulay, danken, gklein, lpeer, oourfali, ybronhei, yeylon, ykaul |
Target Milestone: | ovirt-3.6.0-rc | ||
Target Release: | 3.6.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-03 14:01:14 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: |
Description
Eldad Marciano
2014-08-11 11:59:03 UTC
Yeala, can you check that out? From what I see we don't have such parts of unclosed files in vdsm. all the grep '.read()' lines that I see are under with statement or part of tests (which can be fixed, but not urgently). Please verify that this is the case and close if not require a patch. Thanks. btw, I don't see how it relates to scale. can you elaborate when did you get high load of file descriptors ? what steps do you run to see that? I might miss something.. but as far as I checked, we don't have fd leak due to open files. oh .. I missed some of the grep :) we do have such in sampling.py, storage folder, supervdsmServer and more. please go ahead and put those places under with statement and call close directly Actually using try finally is more best practice. e.g: f = None # in order to avoid reference before assignment try: f = open(file) f.read() return SOMETHING expect Exception: # do something finally: # finally, close file reference if exist if f; f.close() Please note that we should not call close() explicitly, but use "with", many of those fixed by Dima's http://gerrit.ovirt.org/26776 (In reply to Dan Kenigsberg from comment #5) > Please note that we should not call close() explicitly, but use "with", many > of those fixed by Dima's http://gerrit.ovirt.org/26776 + 1 Yaniv, Working on it. need to verify the patch. This bug was fixed and is slated to be in the upcoming version. As we are focusing our testing at this phase on severe bugs, this bug was closed without going through its verification step. If you think this bug should be verified by QE, please set its severity to high and move it back to ON_QA |