zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    实例事件
    实例方法
    Extends Option 扩展选项
    Watch 选项 监控数据
    methods方法选项
    computed Option 计算选项
    propsData Option 全局扩展的数据传递
    component 父子组件
    component-04 动态绑定组件
    component 全局局部组件
  • 原文地址:https://www.cnblogs.com/bittorrent/p/3465081.html
Copyright © 2011-2022 走看看