Operating System - HP-UX
1753262 Members
4830 Online
108792 Solutions
New Discussion юеВ

How to unlimited the users ulimit values

 
Harikrishnan L
Frequent Advisor

How to unlimited the users ulimit values

How to unlimited the users ulimit values in HP-UX 11.31 64 bit os and kernel. But it accepting the 32 bit ulimit values only.


# kctune | grep max
aio_iosize_max 0 Default Immed
aio_listio_max 256 Default Immed
aio_max_ops 2048 Default Immed
aio_prio_delta_max 20 Default Immed
aio_proc_max 0 Default Immed
dlpi_max_clones 3992 Default Immed
dlpi_max_ub_promisc 1 Default Immed
filecache_max 16324898816 Default Auto
fr_statemax 800000 Default
ksi_alloc_max 32768 nproc*8 Immed
ksi_send_max 32 Default
max_acct_file_size 2560000 Default Immed
max_async_ports 4096 Default Immed
max_mem_window 0 Default Immed
max_thread_proc 1024 1024 Immed
maxdsiz 1073741824 1073741824 Immed
maxdsiz_64bit 2147483648 2147483648 Immed
maxfiles 8202 maxfiles_lim
maxfiles_lim 8202 8202 Immed
maxrsessiz 401604608 401604608
maxrsessiz_64bit 1073741824 1073741824
maxssiz 201326592 201326592 Immed
maxssiz_64bit 1073741824 1073741824 Immed
maxtsiz 1073741824 1073741824 Immed
maxtsiz_64bit 4398046511103 4398046511103 Immed
maxuprc 3686 nproc*9/10 Immed
nfs2_max_threads 8 Default Immed
nfs3_max_threads 8 Default Immed
nfs3_max_transfer_size 1048576 Default Immed
nfs3_max_transfer_size_cots 1048576 Default Immed
nfs4_max_threads 8 Default Immed
nfs4_max_transfer_size 1048576 Default Immed
nfs4_max_transfer_size_cots 1048576 Default Immed
ngroups_max 20 Default Immed
pa_maxssiz_32bit 83648512 Default Immed
pa_maxssiz_64bit 536870912 Default Immed
process_id_max 30000 Default Auto
shmmax 34359738368 34359738368 Immed
vx_maxlink 32767 Default
# ulimit -d 2147483648
sh: ulimit: The specified number is not valid for this command.
# ulimit -a0
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 196608
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 8202
# ulimit -d 2097152
sh: ulimit: The specified value exceeds the user's allowable limit.
# ulimit -d 2097152
sh: ulimit: The specified value exceeds the user's allowable limit.
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: How to unlimited the users ulimit values

> But it accepting the 32 bit ulimit values only.

ulimit is a shell command and all the shells (POSIX sh, ksh, etc) are 32 bit programs. If you are writing programs, look at the system call setrlimit(). You can set maxdsiz to about 3.8GB and in 11.31 (and 11.23), you can compile your 32 bit program using the MPAS option to allow local data addressing to the 3.8 GB limit. For 32 bit programs that you cannot change, the default limit is less than 1 GB. Raising maxdsiz won't change the program's internal code.

64bit programs are limited to maxdsiz_64 which can be terabytes in size.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: How to unlimited the users ulimit values

>it accepting the 32 bit ulimit values only.

If you have a 64 bit application, you should only look at "kctune | grep 'max.siz_64bit'" and not ulimit.