Bug 1114226
| Summary: | [RFE] optimize ksm scanning pressure | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Markus Stockhausen <mst> | ||||
| Component: | vdsm | Assignee: | Dan Kenigsberg <danken> | ||||
| Status: | CLOSED DEFERRED | QA Contact: | Gil Klein <gklein> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 3.4 | CC: | asegundo, bazulay, bugs, dfediuck, gklein, iheim, mgoldboi, rbalakri, s.kieske, yeylon | ||||
| Target Milestone: | --- | Keywords: | FutureFeature | ||||
| Target Release: | 3.6.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | sla | ||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-04-19 14:12:06 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | SLA | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Stockhausen
2014-06-28 20:59:47 UTC
Created attachment 913093 [details]
ksm graphs
From reading /etc/vdsm/mom.d/03-ksm.policy current logic boils down to the following single comparison:
(if (< (Host.StatAvg "mem_free") ksm_pressure_threshold)
(change_npages ksm_pages_boost)
(change_npages ksm_pages_decay))
- define hard limit at 20% of total memory
- if free memory is above limit -> decrease pages_to_scan by 50
- if free memory is below limit -> increase pages_to_scan by 300
E.g. in case of a 128 GB we always will have a "full speed" running ksmd when memory usage is above 102GB. Or in other words: We assume that we can compress the memory down to 80% if we only raise the ksm pressure to the max.
Just noticed another interesting side effect. The calculation does not consider swap usage. So - Mem usage below 80% & swap used (might even be full) -> ksm is on light load - Mem usage above 80% & swap empty -> ksm is on full load. As a part of 3.6.0 we're planning to handle Bug 1093038, which may resolve this issue as well. Closing issue for now. If still relevant post Bug 1093038 resolution please re-open and explain what (more) should be done. |