LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 06-20-2009, 03:38 AM   #1
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Number of threads per process


Hi All,

Could you please advise how I can determine the value of maximum number of threads a process can support in Solaris. Is there any tunable parameter that can be used to control this. What are the default value of this in Solaris 9/10 ?

I tried looking at the 'sysdef' outputs, but could not get this.
 
Old 06-20-2009, 10:07 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
I don't think there is a specific limit for that. It ends up being limited by other resources -- for example, virtual memory or swap space. Check out

http://www.princeton.edu/~unix/Solar...t/process.html

Also take a look at the man pages for ulimit and sysdef. I have on occasion had to set a higher ulimit because of multi-threaded applications that use files.
 
Old 06-22-2009, 08:18 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If your goal is to limit the number of threads a process (or group of processes) can support, there are tunables by tasks, projects and zones to do it:
task.max-lwps, project.max-lwps and zone.max-lwps.
 
  


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
How to increase number of threads per process? Vaish Linux - Distributions 8 02-25-2010 01:21 AM
process and threads jkeertir Linux - Newbie 1 04-16-2009 11:01 AM
How can I retrieve the number of running posix threads? Pandamatak Programming 2 12-24-2005 11:45 AM
Threads/posts number in profile Ephracis LQ Suggestions & Feedback 3 08-13-2005 02:37 PM
pthread_create creates a number of threads with same tid!!!! dravya Programming 5 08-11-2004 03:18 PM


All times are GMT -5. The time now is 08:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration