Re: Avoiding OOM on overcommit...?

From: Aneesh Kumar K.V (aneesh.kumar@digital.com)
Date: Mon Mar 27 2000 - 13:42:12 EST


Why can't we have some thing like this
1) When OOM occur send send a signal to the process ,SIG_OOM
2) If the process ignores kill the process .
3) if the process want to wait for the memory make it wait.
4) if th process urgently need the memory get the memory for it by
killing other process( can be done using Rik's algorithm + some
modification ) . All these decitiion are to be done by the user .

        Now when killing other process we can use a priority level als
( some one has suggested it before . )

            init and syslog = 20
            root daemons = 15
            commands run as root = 10
            daemons = 5
            userlevel = 0
            cron and at jobs = -5
( These values can be changed to any apporpriate value )

regards
aneesh

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:21 EST