Skip to content

Commit a8591de

Browse files
authored
Increase kvm sonic memory from 3GB to 4GB. (#7253)
What is the motivation for this PR? Increase KVM sonic memory from 3GiB to 4GiB. Because some cases raised error log created by the tool memory_threshold_check, like free memory xx is less than memory threshold xx. And the threshold is based on total memory. How did you do it? Modify memory set in ansible/roles/vm_set/templates/sonic.xml.j2. Notes: memory tag is the maximum allocation of memory and currentMemory tag is the actual allocation of memory. How did you verify/test it? Run TC and no memory_threshold_check issue. Signed-off-by: Chun'ang Li <chunangli@microsoft.com>
1 parent 129c8e3 commit a8591de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/roles/vm_set/templates/sonic.xml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<memory unit='GB'>8</memory>
88
<vcpu placement='static'>16</vcpu>
99
{% else %}
10-
<memory unit='KiB'>3072000</memory>
11-
<currentMemory unit='KiB'>3072000</currentMemory>
10+
<memory unit='GiB'>4</memory>
11+
<currentMemory unit='GiB'>4</currentMemory>
1212
<vcpu placement='static'>4</vcpu>
1313
{% endif %}
1414
<resource>

0 commit comments

Comments
 (0)