Skip to content

kvm available memory calculation optimization - #5540

Merged
nvazquez merged 13 commits into
apache:mainfrom
div8cn:kvm-memory-buffer
Oct 5, 2021
Merged

nvazquez merged 13 commits into
apache:mainfrom
div8cn:kvm-memory-buffer

Conversation

@div8cn

@div8cn div8cn commented Sep 30, 2021 •

Copy link
Copy Markdown
Contributor

Description

Add buffer memory to Available memory for kvm

Fixes: #5523

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 1459

@weizhouapache

Copy link
Copy Markdown
Member

@div8cn please fix the checkstyle error

[ERROR] /data/git/cloudstack/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/linux/MemStat.java:69: Line has trailing spaces. [RegexpSingleline]

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 1460

@sureshanaparti

Copy link
Copy Markdown
Contributor

@div8cn Can you check/fix the unit test failure.

[INFO] Running org.apache.cloudstack.utils.linux.MemStatTest
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.602 s <<< FAILURE! - in org.apache.cloudstack.utils.linux.MemStatTest
[ERROR] getMemInfoParseTest(org.apache.cloudstack.utils.linux.MemStatTest)  Time elapsed: 0.011 s  <<< FAILURE!
java.lang.AssertionError: expected:<3164520448> but was:<2829840384>
	at org.apache.cloudstack.utils.linux.MemStatTest.getMemInfoParseTest(MemStatTest.java:51)

[ERROR] Failures: 
[ERROR]   MemStatTest.getMemInfoParseTest:51 expected:<3164520448> but was:<2829840384>

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@sureshanaparti sureshanaparti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1490

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2312)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36962 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5540-t2312-kvm-centos7.zip
Smoke tests completed. 91 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@DaanHoogland

Copy link
Copy Markdown
Contributor

@nvazquez should we consider this for 4.16?

@sureshanaparti

Copy link
Copy Markdown
Contributor

@nvazquez should we consider this for 4.16?

I think, this is good to go.

@nvazquez nvazquez added this to the 4.16.0.0 milestone Oct 5, 2021

@nvazquez nvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nvazquez
nvazquez merged commit 52a9dbd into apache:main Oct 5, 2021
@div8cn
div8cn deleted the kvm-memory-buffer branch October 10, 2021 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KVM host Available memory calculation is incorrect

6 participants