how to prevent lowmemorykiller from killing processes
Hi there,
I've upgraded a number of test systems to the latest Saucy beta. I've seen quite a few cases of processes being killed by lowmemorykiller with the following entries being logged:
[ 291.565121] lowmemorykiller: send sigkill to 4476 (python), adj 0, size 8864
[23515.006794] lowmemorykiller: send sigkill to 944 (update-apt-xapi), adj 0, size 44175
The systems where this happens are kvm virtual machines with relatively modest amounts of RAM allocated (256 or 512 MB) with 2 GB swap. The swap is mostly unused when the kills occur.
I searched around and could only find references to Android for lowmemorykiller and nothing on how to disable it. I tried the following without success:
echo '9999,9999' > /sys/module/lowmemorykiller/parameters/adj
Any ideas on how to disable lowmemorykiller or at least prevent processes to be killed rather than swapped?
==
Answer:
cat /sys/module/lowmemorykiller/parameters/minfree
cat /sys/module/lowmemorykiller/parameters/adj
echo '9999' > /sys/module/lowmemorykiller/parameters/adj
echo '1' > /sys/module/lowmemorykiller/parameters/minfree
cat /sys/module/lowmemorykiller/parameters/minfree
cat /sys/module/lowmemorykiller/parameters/adj
https://answers.launchpad.net/ubuntu/+question/236764
最新文章
- 在一个aspx或ashx页面里进行多次ajax调用
- 一、CoreAnimation之图层树详解
- Yocto开发笔记之《Tip-应用程序无法在目标机运行》(QQ交流群:519230208)
- jQuery插件之simplemodal
- CocoaPod遇到更新不了的原因
- linux:计算机概论
- 简单实用的纯CSS百分比圆形进度条插件
- import了sun开头的类,虽然它在代码里压根就没派上用处!但是必须得引用!
- IIS7.0配置HTTPS安全类型的网站
- Apex 单元测试辅助函数简介
- Bootstrap3基础 下载bootstrap3压缩包和相应的jQuery文件
- 批量导出VBA工程中的Source
- java项目实现流水号自动增长
- python selenium-1 环境搭建new
- 用正则表达式修改html字符串的所有div的style样式
- (1)String类 (2)StringBuilder类和StringBuffer类 (3)日期相关的类
- LoadRunner如何监控Linux系统资源
- javascript控制服务器控件实例一
- python2.0_s12_day12_css样式详解
- codevs 1080 线段树练习--用树状数组做的