-
Notifications
You must be signed in to change notification settings - Fork 109
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 mem-burn process been killed too early by kernel oom_killer #89
Conversation
Signed-off-by: aliverchen <aliverchen@tencent.com>
As far as I am concerned, it could be very dangerous. In chinese: |
之前遇到过一个线上故障,因一个运维进程占用内存过大,导致业务应用进程被干掉,这个 PR 更好模拟这个故障,但是最好将其抽取一个配置参数。 I have encountered an online failure before. Because an operation process occupies too much memory, the business application process is killed. This PR can better simulate the failure, but it is best to extract a configuration parameter. |
@buhuipao Please modify the username used when committing. And can you extract a flag to enable this feature? Thanks~ |
Yep, I agree with you. |
Signed-off-by: aliverchen <aliverchen@tencent.com>
…s into oom_score_adj
Done. |
@buhuipao OK, thanks for your contribution, I will review it this week. |
* fix mem-burn process been killed too early by kernel oom_killer Signed-off-by: aliverchen <aliverchen@tencent.com> * fix mem-burn process been killed too early by kernel oom_killer Signed-off-by: aliverchen <aliverchen@tencent.com> Co-authored-by: aliverchen <aliverchen@tencent.com>
Describe what this PR does / why we need it
when mem-burn in ram mode and reserve param is too small, the mem-burn process will be killed early before reaching the target retention value. so I write score_adj '-1000' to mem-burn process oom_score_adj file.
Does this pull request fix one issue?
Describe how you did it
Describe how to verify it
Special notes for reviews