Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-05-2002, 10:35 AM   #1
LQ Newbie
Registered: Aug 2001
Posts: 9

Rep: Reputation: 0
Question OOM has gone all tantric on me

First off, I should say that I'm gnu to linux & linux programming.

I have this little c-proggie that's is, I admit, a total resource hog with huge arrays & cycles. The OOM is killing it after random intervals... normally, in a multi-user environment, this would be a good thing. However, the job will only be run on a machine(s) temporarily dedicated to it.

OK, I've gotta chunk the job eventually, however doing this will severely compromise efficiency (during the reconstitution phase) so I want to make the job chunks as large as possible.

Whew, all that & no question yet... The question is: In your experience, what is the best way to torque back the OOM? Even better, if it's possible, what is the best way to temporarily get that beastie to back off a bit?

Old 09-10-2002, 04:48 PM   #2
LQ Newbie
Registered: Aug 2001
Posts: 9

Original Poster
Rep: Reputation: 0
partial solution

only because I don't like leaving threads unresolved... not that I beleive that anyone's really interested (-;

the key is to memory map the out of control big structures. It allows me to treat the memory mapped file as sort of a private swap space. The program is going to thrash a bit but that was going to happen anyway. & I dont have to chunk the passes which makes for a much easier code.

I haven't got all of the mmap intricacies worked out yet but the program is doing what it's supposed to w/o OOM bitin' me in the arse.

mmap()... a handy function to know.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"going OOM" after bringing natsemi nic up Iceberg69 Linux - Hardware 1 09-29-2005 04:44 AM
oom-killer is killing my programs on FC3 abarclay Fedora 1 03-08-2005 09:14 AM
Kernel OOM killing more than it should snipersock Linux - Software 1 12-01-2004 08:03 PM > Forums > Non-*NIX Forums > Programming

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

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