Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler

From: Byron Stanoszek (gandalf@winds.org)
Date: Fri Oct 06 2000 - 16:19:55 EDT

  • Next message: Rik van Riel: "Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler"

    On Fri, 6 Oct 2000, Rik van Riel wrote:

    > 3. add the out of memory killer, which has been tuned with
    > -test9 to be ran at exactly the right moment; process
    > selection: "principle of least surprise" <== OOM handling

    In the OOM killer, shouldn't there be a check for PID 1 just to enforce that
    INIT will not be the victim? Sure its total_vm might be small, but if there was
    a memory leak in the kernel somewhere, it might eventually become the target.
    I suppose, if it ever were to become the victim, your system wouldn't be too
    usable anyway...

    Can you give me your rationale for selecting 'nice' processes as being badder?
    Do you think it would be a good idea to scale the amount of badness according
    to how nice the process is (a nice value of 20 could get the full *2, otherwise
    a smaller multiplier)?

    How about using the current process priority level instead of nicety. If a
    process was deprioritized (or auto-niced) because it was starting to eat up CPU
    time, AND its memory is abnormally high, then should that be our #1 victim? We
    also don't want to kill things like benchmarks either, but hopefully they
    wouldn't start eating up more than the available system memory.

    Just some thoughts.

     -Byron

    -- 
    Byron Stanoszek                         Ph: (330) 644-3059
    Systems Programmer                      Fax: (330) 644-8110
    Commercial Timesharing Inc.             Email: bstanoszek@comtime.com
    

    - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri Oct 06 2000 - 16:22:24 EDT