LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-14-2007, 04:53 AM   #1
oudoubah
LQ Newbie
 
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Rep: Reputation: 0
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?
 
Old 11-14-2007, 05:14 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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
 
Old 11-14-2007, 05:56 AM   #3
oudoubah
LQ Newbie
 
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
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
 
Old 11-14-2007, 06:07 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Yeah, a quick check looks like it shipped in 2.6.20 ...
 
Old 11-14-2007, 06:14 AM   #5
oudoubah
LQ Newbie
 
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install RHEL4 in Xen of RHEL4--"unable to retrieve the install image" sailer_sh Red Hat 0 06-19-2007 12:31 AM
How to take a OS backup in RHEL4 jitendra.gondaliya Linux - Enterprise 6 05-08-2007 12:10 PM
RHEL3 vs RHEL4 Shaka999 Red Hat 0 11-03-2006 10:17 AM
remote backup from RHEL4 to another RHEL4? dkgoalie Linux - Newbie 2 10-27-2006 11:14 PM
not able to boot rhel4 pothi Linux - Desktop 9 08-14-2006 07:59 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration