HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change ulimit in SAM for maxusers value

 
Suman Patra
Occasional Contributor

How to change ulimit in SAM for maxusers value

Hi,

I am not able to change maxusers value through SAM. It is changed in SAM but ulimit -a is not displaying the same as SAM after reboot.
bash-3.1# ulimit -a
core file size (blocks, -c) 2097151
data seg size (kbytes, -d) 1048576
file size (blocks, -f) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 16
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 76
virtual memory (kbytes, -v) unlimited
bash-3.1#

bash-3.1# uname -a
HP-UX pampa B.11.11 U 9000/800 1133434615 unlimited-user license

In SAM I have changed to 32 to 1024.

Please send me your opinion.

Regards,
SP
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: How to change ulimit in SAM for maxusers value

Hi SP,

maxusers does nothing for ulimit values.
You need to set some or all of the following:

maxdsiz or maxdsiz_64bit for data
maxssiz or maxssiz_64bit for stack
maxtsiz or maxtsiz_64bit for text

Core file size is generally a function of max file size in a filesystem or maxdsiz. Open files is controlled by NFILE & max user open files by maxuprc. Not sure about CPU time but - hey - it's unlimited anyway now.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bill Hassell
Honored Contributor

Re: How to change ulimit in SAM for maxusers value

> max user processes (-u) 76

This refers to the number of processes that a user can run at the same time. The kernel parameter is MAXUPRC not MAXUSERS. SAM's built-in help on context will explain the difference. Set MAXUPRC to 50 ro 100, whatever you need. NOTE: change MAXUSERS back to the original value. MAXUSERS is a multi-formula control variable and when bumped to a large value (ie, 1024) will significantly increase the size of the kernel. The kernel parameters MAXFILES defines the ulimit -n value.


Bill Hassell, sysadmin