Bug 2104852
Summary: | [memtune] qemu process limit is not updated after updating vm memory hard_limit at run-time | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Fangge Jin <fjin> |
Component: | libvirt | Assignee: | Virtualization Maintenance <virt-maint> |
libvirt sub component: | General | QA Contact: | liang cong <lcong> |
Status: | CLOSED MIGRATED | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | lcheng, lcong, lmen, virt-maint, xuzhang, yisun |
Version: | 9.1 | Keywords: | MigratedToJIRA, Triaged |
Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-07-07 20:31:37 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: | |
Embargoed: |
Description
Fangge Jin
2022-07-07 10:12:26 UTC
Note that the 'max locked-in memory' size obtained by prlimit is not exactly the memory hard limit. The value obtained by prlimit is the maximum memory the process can decide to lock into memory, while the hard limit is the amount of memory the guest can use. Said that, we actually allow the guest to lock memory up to the 'hard_limit' if it is provided and the 'prlimit' system function seems to allow changing it for an existing process so we can actually consider changing it if the memory hard limit is being modified. (In reply to Peter Krempa from comment #1) > Note that the 'max locked-in memory' size obtained by prlimit is not exactly > the memory hard limit. The value obtained by prlimit is the maximum memory > the process can decide to lock into memory, while the hard limit is the > amount of memory the guest can use. > > Said that, we actually allow the guest to lock memory up to the 'hard_limit' > if it is provided and the 'prlimit' system function seems to allow changing > it for an existing process so we can actually consider changing it if the > memory hard limit is being modified. Thanks for you explanation, I understand the difference of "max locked-in memory" and "max used host memory" now. Now I think we should not change the value of "max locked-in memory" unless it is needed(e.g. when do zerocopy/rdma migration) |