LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-13-2010, 08:33 AM   #1
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
Resource temporarily unavailable


While executing commands from a non root user i get "Fork: Resource temporarily unavailable" very frequently. System has excessive Free memory. This a new bash session and no processes are running from this bash session. Below is the limits.conf

* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

ulimit -a

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 278528
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 2047
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
 
Old 02-13-2010, 07:42 PM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
If there is much free memory, I think, that the max. process count may be reached (see fork(2) for details). How many processes are running?
 
Old 02-14-2010, 04:41 AM   #3
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Original Poster
Rep: Reputation: 17
Resource temporarily unavailable

Just wanna know nproc limit set in limits.conf, does it enforce a limit on all user sessions or a single session. I mean if nproc is set to 256, then user can run 256 processes in a single session or it applies to all combined sessions ? As in man page for limits.conf author says "(Also, please note that all limit settings are set per login. They are not global, nor are they permanent;existing only for the duration of the session.)" so I thought it applies to a single login session not combined login sessions of a single user.
 
  


Reply

Tags
fork, ulimit



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
fork: resource temporarily unavailable ??? str8edge Linux - General 3 06-21-2011 09:00 AM
Resource temporarily unavailable manoj.linux Linux - Enterprise 3 11-06-2009 08:21 AM
vfork: resource temporarily unavailable verbose Linux - General 5 02-04-2007 04:17 AM
xcdroast - resource temporarily unavailable mwildam Linux - Newbie 4 09-24-2006 04:28 PM
SIOCSIFFLAGS: Resource temporarily unavailable bleef Linux - Networking 2 05-14-2001 10:54 PM

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

All times are GMT -5. The time now is 08:54 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