| Summary: | ksmtuned committed_memory() still returns "", not 0, when no qemu running | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Cole Robinson <crobinso> |
| Component: | qemu-kvm | Assignee: | Miroslav Rezanina <mrezanin> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | acathrow, areis, hhuang, juzhang, shu, virt-maint, xfu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-1.5.3-22.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1012610 | Environment: | |
| Last Closed: | 2014-06-13 10:51:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Cole Robinson
2013-11-06 19:08:30 UTC
Fixed in version qemu-kvm-1.5.3-22.el7. Michal In qemu-kvm-1.5.3-30.el7.x86_64:
committed_memory () {
local pidlist
pidlist=$(pgrep -d ' ' -- '^qemu(-kvm|:.{1,11})$')
if [ -n "$pidlist" ]; then
ps -p "$pidlist" -o rsz=
fi | awk '{ sum += $1 }; END { print 0+sum }'
}
Here:
- pidlist=$(pgrep -d ' ' -- '^qemu(-kvm|:.{1,11})$')
+ pidlist=$(pgrep -d ' ' -- '^qemu(-(kvm|system-.+)|:.{1,11})$')
Above patch does not apply, only:
- fi | awk '{ sum += $1 }; END { print sum }'
+ fi | awk '{ sum += $1 }; END { print 0+sum }'
If this is intended, then verified.
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |