Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-20-2011, 05:27 PM   #1
Registered: Feb 2008
Posts: 518
Blog Entries: 1

Rep: Reputation: 39
ulimit -s 40960 vs ulimit ulimit -s 10240

I wrote this because i was able to use openmpi to run mpirun
on my 12-core workstation rather happily since day 1 I setup the system a few months ago.

Yesterday when I tried to run a big job under mpirun, the job crashed
rather quickly, the error message was something like

mpirun process exited blah blah with signal 11 (Segmentation fault).

Interestingly (or annoyingly) a job required less memory ran okay.

Since I never had this problem before, I thought it was the hardware
failure. I called my IT guy to explain the problem and he is kind
enough to suggest to put a line

ulimit -s 40960

in my .bashrc.

And it works!

But I have no clue why mpirun misbehaves out of a sudden, and that
ulimit setting solves the problem completely. I would like to learn
from this incident.

Anyone has any idea to share ? Thanks a lot!
Old 01-20-2011, 06:00 PM   #2
Registered: Feb 2008
Posts: 518

Original Poster
Blog Entries: 1

Rep: Reputation: 39
okay. My happiness is short-lived.

I still hit

mpirun noticed that process rank 3 with PID 11591 on node xxx-node exited on signal 11 (Segmentation fault).

problem when I tried a big job.

I strongly suspect that this has to do with a huge job that crashed the day before
when the disk space ran out. Could it be that the crashed job is dumping something to the
commonly used space and it was not clear in time for new jobs to used.

Beat me...
Old 10-22-2016, 11:38 PM   #3
LQ Newbie
Registered: Oct 2016
Posts: 3

Rep: Reputation: Disabled
Fyi, "ulimit -s 40960" sets (increases?) the stack size limit to 40 megabytes.

For additional discussion, see here:


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
ulimit Serena Linux - Software 6 12-17-2014 11:04 PM
ulimit spivy66 Linux - General 6 01-11-2008 01:33 PM
What is ulimit and what it does? brazilian_user Linux - General 3 01-30-2007 01:39 PM
ulimit -t juanbobo Linux - Security 3 06-10-2005 09:43 AM
Ulimit -v Help !!!!!!!!!!!!!!!!!!!!!! raees Linux - Software 1 07-04-2004 10:01 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 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
Open Source Consulting | Domain Registration