Visit Our UNIX and Linux User Community


Maximum number of threads per user


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Maximum number of threads per user
# 1  
Old 05-23-2002
Maximum number of threads per user

Anybody knows how to setup Maximum number of threads per user or some other value on Sun Solaris 8.
# 2  
Old 05-23-2002
File: /etc/system

parameter: segkpsize

Description:

Specify the amount of kernel pageable memory
available. This memory is used primarily for
kernel thread stacks. Increasing this number
allows either larger stacks for the same number
of threads or more threads. This parameter can
only be set on systems running 64-bit kernels
Systems running 64-bit kernels use a default
stack size of 24 Kbytes.

Data Type: Unsigned long

Default: 64-bit kernels, 2 Gbytes
32-bit kernels, 512 Mbytes

Range: 64-bit kernels, 512 Mbytes - 24 Gbytes
32-bit kernels, 512 Mbytes

Units: Mbytes

Dynamic? No

Validation:
Value is compared to minimum and maximum
sizes (512 Mbytes and 24 Gbytes for 64-bit
systems) and if smaller than the minimum or
larger than the maximum, it is reset to 2 Gbytes
and a message to that effect is displayed.
The actual size used in creation of the cache is
the lesser of the value specified in segkpsize
after the constraints checking and 50% of
physical memory.

When to Change: This is one of the steps necessary to support largenumbers of processes on a system. The default
size of 2 Gbytes, assuming at least 1 Gbyte of
physical memory is present, allows creation of
24-Kbyte stacks for more than 87,000 kernel
threads. The size of a stack in a 64-bit kernel is
the same whether the process is a 32-bit process
or a 64-bit process. If more than this number is
needed, segkpsize can be increased assuming
sufficient physical memory exists.

See also nfs:nfs_max_threads if you use NFS.

Regards. Hugo.

Previous Thread | Next Thread
Test Your Knowledge in Computers #668
Difficulty: Medium
IEEE 802.11 is part of the IEEE 802 set of LAN protocols, and specifies the set of media access control (MAC) and physical layer (PHY) protocols for implementing virtual local area network (VLAN) Wi-Fi computer communication in various frequencies.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maximum number of data in Python

Hi all, I would like to save my output data in two columns. I tried print(x,y) but have two problems: 1. There are ~10000 values for each x and y, but the intermediates are omitted; 2. I'd like to list data in two columns instead of two arrays (BTW, it's fine as I can format it using other... (3 Replies)
Discussion started by: sxiong
3 Replies

2. UNIX for Dummies Questions & Answers

Maximum number of sed squeezing

Hi all, What is the maximum number of sed squeezing in one shell?? I've surprised with this message when I squeezed 50 sed in the same shell: 253: Identifier too long - maximum length is 18.This is what I've did in my sed query | sed -e "s/ 0 /Default /" | sed -e "s/ 1 ... (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

3. Shell Programming and Scripting

Maximum number from input by user

I am trying to calculate the maximum number from four numbers input by the user. I have the following code, but it does not work. It says there's an error with the last line "done". Any help would be appreciated. max=0 echo "Please enter four numbers: " for i in 1 2 3 4 do read number... (17 Replies)
Discussion started by: itech4814
17 Replies

4. UNIX for Dummies Questions & Answers

ls - maximum number of files

what is the maximum number ls can list down (6 Replies)
Discussion started by: karnan
6 Replies

5. UNIX for Dummies Questions & Answers

maximum number of arguments

Hi, What is the maximum number of arguments that could be passed to zsh ? To find out that I tried a simple script. And the maximum number of arguments that could be passed turned out to be 23394 #! /bin/zsh arg=1 i=1 subIndex=23000 while do arg=$arg" "$i i=$(($i + 1))... (9 Replies)
Discussion started by: matrixmadhan
9 Replies

6. Solaris

Maximum Number of threads suuported????

Hi, Anybody knows the maximum number of threads suuported by a process in solaris os. Please reply Thanks in advance :( (1 Reply)
Discussion started by: Agnello
1 Replies

7. Linux

Maximum number of threads handled by a process????

Hi Anybody knows max. no. of threads handled by a process in linux. Please reply Thanks in advnce :confused: (0 Replies)
Discussion started by: Agnello
0 Replies

8. UNIX for Dummies Questions & Answers

Maximum number of users allowed

How do i determen (what command) the max. number of users allowed Thanks in advance (10 Replies)
Discussion started by: siza
10 Replies

Featured Tech Videos