Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix agent funcs calculate meminfo problem #662

Merged
merged 1 commit into from
Jan 10, 2019
Merged

fix agent funcs calculate meminfo problem #662

merged 1 commit into from
Jan 10, 2019

Conversation

feiguoL
Copy link
Contributor

@feiguoL feiguoL commented Jan 9, 2019

修正在centos等版本下对内存计算存在较大偏差的问题:
1、第三方库在计算memfree时未考虑由于版本问题MemAvailable字段是否会计算,例如在centos6.3内存字段中就没有MemAvailable,而在cent0s7以上版本为了更好的衡量进程间通信,加入了MemAvailable字段
2、该修改在centos、ubuntu等测试均与实际值一致

Copy link
Member

@laiwei laiwei left a comment

Choose a reason for hiding this comment

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

LGTM

@laiwei laiwei merged commit 4d864e4 into open-falcon:master Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants