Operating System - HP-UX
1836993 Members
2428 Online
110111 Solutions
New Discussion

max size of open file per proces

 
I.Delic
Super Advisor

max size of open file per proces

Hi,

Can somebody tel me which value of the kernel i have to change to incrase the max size of open file per proces.

Thank you in advance

idriz
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: max size of open file per proces

Hi:

You can control the maximum file size on a process basis with 'ulimit'. See the man pages for 'ulimit(2)' and for 'sh-posix(1)' for more information.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: max size of open file per proces

Hello,

file_pad - - 10
maxfiles 1024 - 1024
maxfiles_lim 1024 Y 1024
nfile 4096 - 4096
sendfile_max 0 - 0

Related:

maxuprc Max processes for one user total.
nproc maximum number of processes

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: max size of open file per proces

The size of the files or the number of files?

The number of files is controlled through the kernel paramters maxfiles (soft limit) and maxfiles_lim (hard limit).


Pete

Pete
Bharat Katkar
Honored Contributor

Re: max size of open file per proces

I guess you are looking for this parameter:pa_maxssiz_32bit.

To verify please find the details of the parameter as below:

Tunable pa_maxssiz_32bit
Description Maximum size of the stack segment of a 32-bit PA-RISC pr
Dynamic no
Subsystem vm
Default Value 83648512
Current Value 83648512
Planned Value 83648512
Last Boot Value 83648512
Constraints pa_maxssiz_32bit >= 83648512
Constraints pa_maxssiz_32bit <= 468713472
Auto Tuning Not Supported
Current Usage Not Available

Regards,
You need to know a lot to actually know how little you know
Don Morris_1
Honored Contributor

Re: max size of open file per proces

maxssiz (32 or 64 bit) has nothing to do with maximum file handles available to a process. pa_maxssiz_32bit has even less to do with it -- since that's stack size of a PA binary running on IPF using the Aries emulator. [Just trying to clarify before someone gets the wrong idea].

Pete has it right, look at maxfiles / maxfiles_lim for the system wide limits, then ulimit if you want to fine tune the "soft" limits.