Univention Bugzilla – Full Text Bug Listing |
Summary: | Free memory calculation does not always work | ||
---|---|---|---|
Product: | UCS | Reporter: | Tim Petersen <petersen> |
Component: | UMC - App-Center | Assignee: | Dirk Wiesenthal <wiesenthal> |
Status: | CLOSED FIXED | QA Contact: | Felix Botner <botner> |
Severity: | normal | ||
Priority: | P3 | CC: | gohmann, jmm, klaeser, wiesenthal |
Version: | UCS 3.1 | ||
Target Milestone: | UCS 3.1-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | 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: |
Description
Tim Petersen
2013-03-05 12:05:59 CET
In openvz the App Center is completely unusable. The Test will raise even when getting all applications in the overview. The question is if we can get the correct number from somewhere. Of course meminfo.get('Buffers:', 0) will solve the problem, but it may very well be that in this environment the Apps are not installable. (In reply to comment #1) > In openvz the App Center is completely unusable. The Test will raise even when > getting all applications in the overview. > > The question is if we can get the correct number from somewhere. > > Of course meminfo.get('Buffers:', 0) will solve the problem, but it may very > well be that in this environment the Apps are not installable. What about the python module psutils? It seems that the available memory can be easily queried there (property available): http://code.google.com/p/psutil/wiki/Documentation#Memory (In reply to comment #2) > (In reply to comment #1) > > In openvz the App Center is completely unusable. The Test will raise even when > > getting all applications in the overview. > > > > The question is if we can get the correct number from somewhere. > > > > Of course meminfo.get('Buffers:', 0) will solve the problem, but it may very > > well be that in this environment the Apps are not installable. > > What about the python module psutils? It seems that the available memory can be > easily queried there (property available): > > http://code.google.com/p/psutil/wiki/Documentation#Memory Our psutil is outdated. It does not provide the required function. And even if it did: I used the same routines to get the available memory as psutil does in a newer version. (In reply to comment #3) > Our psutil is outdated. It does not provide the required function. And even if > it did: I used the same routines to get the available memory as psutil does in > a newer version. But then we could open a bug for psutils ;) . I did not manage to get OpenVZ kernel running (documentation quite RHEL centric). But I think Buffers are just 0 in OpenVZ and the calculation is still correct: http://openvz.livejournal.com/35628.html Buffers are missing in the output, but MemFree + Cached = certain $(free -m) Built for 3.1-1: univention-management-console-module-appcenter 2.0.139-2.120.201304102007 Changelog updated, YAML created http://www.vtk.org/Bug/view.php?id=13227 describes that even "Cached:" is not always available in /proc/meminfo in a openvz container /proc/meminfo MemTotal: 12000000 kB MemFree: 11852352 kB SwapTotal: 0 kB SwapFree: 0 kB Why not meminfo.get('Cached:', 0) instead meminfo['Cached:'] (as for Buffers:)? Yes, see also http://code.google.com/p/psutil/issues/detail?id=313 I am not sure whether the calculation is still correct under these circumstances but it is probably better than raising. Fixed in univention-management-console-module-appcenter 2.0.151-1.140.201305171739 and univention-management-console-module-appcenter 2.0.139-13.139.201305171736 OK - errata3.1-1 OK - yaml OK - ucs3.1-2 OK - changelog |