LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2009, 10:35 AM   #1
VelocideX
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Rep: Reputation: 15
OOM kill of custom program despite plenty of free swap space


Hi guys,

I have a custom scientific fortran 77 program that requires significant amounts of memory. I am trying to enlarge one of the arrays to deal with more data than previously.

If I increase the array (matrix) size to the desired amount, the process is immediately killed by linux. This is true even if run by root (sudo). If I decrease the array size to the point where the program will just run, ps aux shows that at run time the program has allocated 2.5GB of memory. My system has 4 GB RAM + 8 GB swap space. I'm on a Core 2 Duo P8700 (2.53GHz), but running 32 bit openSuSE 11.1 because 64 bit linux still seems to have issues

"swapon -s" reveals that none of my swap space is being used.

I have even tried setting overcommit to "always" i.e. "sudo sysctl vm.overcommit_memory=1" and the behaviour is the same.

Why is my program getting killed when I increase the size of the array? Is there some intrinsic limit to the size of a fortran 77 program? I have more than enough swap space for the program (several times over!). Why won't linux swap something and run my program?

Thanks
 
Old 05-05-2009, 08:12 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,393

Rep: Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774Reputation: 2774
Each 32 bit process has a limit of 4GB (or less in practical terms) http://kbase.redhat.com/faq/docs/DOC-6571 .
(Note that 4GB = 2^32, so it's not a specific RH issue.)
 
Old 05-06-2009, 12:18 AM   #3
VelocideX
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Each 32 bit process has a limit of 4GB (or less in practical terms) http://kbase.redhat.com/faq/docs/DOC-6571 .
(Note that 4GB = 2^32, so it's not a specific RH issue.)
That's strange... why is my program getting killed so far below the 4GB limit?
 
Old 05-06-2009, 12:45 AM   #4
VelocideX
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Aah I see, the limit is less than 3GB on the SMP kernel, which is what I have.

Thanks mate, that's probably it.
 
  


Reply


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
disabling and enabling oom-kill option sudhi_naidu Linux - Server 4 06-13-2008 07:26 AM
what process is allocating memory and causing oom-kill? thormk Linux - Server 3 04-22-2008 08:40 AM
oom kill, need suggestions bee2643 Linux - Newbie 7 08-08-2006 02:26 PM
oom-killer: How to set priorities to kill processes guarriman Linux - Security 1 01-31-2006 09:03 AM
Setup free space on /dev/hdc without screwing up /swap DavidPhillips Linux - General 4 06-24-2001 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

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