LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   oom_adj on RHEL4 (https://www.linuxquestions.org/questions/linux-enterprise-47/oom_adj-on-rhel4-599526/)

oudoubah 11-14-2007 04:53 AM

oom_adj on RHEL4
 
Hi,

I'm using a RHEL4U5 on many servers. (kernel 2.6.9-55)

I've 2 types of processes :
- 1 that is very important (Database)
- a multithreaded internal application that have a memory leak (in rare cases)

Sometimes, there were the condition for the memory leak, and it results in an OOM.

I know that the best solution is to debug the application (and developpers are working on it), but, for now, it isn't yet solved.

The oom killer choose to kill the database.

To prevent the database to be killed, i would like to adjust the oom score with /proc/PIT/oom_adj.

Does anyone know whether i can adjust oom on this kernel, or having an other solution?

syg00 11-14-2007 05:14 AM

Try it and see. I don't have a kernel that old, but if /proc/<pid>/oom_score exists, you'd have to think /proc/<pid>/oom_adj would work.
Have a look at ../Documentation/filesystems/proc.txt

oudoubah 11-14-2007 05:56 AM

Quote:

Originally Posted by syg00 (Post 2958464)
Try it and see. I don't have a kernel that old, but if /proc/<pid>/oom_score exists, you'd have to think /proc/<pid>/oom_adj would work.
Have a look at ../Documentation/filesystems/proc.txt

oom_score doesn't exists. I'm afraid that i can't control the oom killer :-/
grep -i doesn't match 'oom' on proc.txt

syg00 11-14-2007 06:07 AM

Yeah, a quick check looks like it shipped in 2.6.20 ...

oudoubah 11-14-2007 06:14 AM

I saw it on a 2.6.12 kernel ;-) : http://www.ussg.indiana.edu/hypermai...04.0/0291.html

then 2.6.11 on man pages :
http://lwn.net/Articles/255421/

Thanks for helping me founding the answer


All times are GMT -5. The time now is 11:06 PM.