1847055 Members
5815 Online
110261 Solutions
New Discussion

ulimit -n

 
Pattabhi
Frequent Advisor

ulimit -n

Experts,

how do i chnage the ulimit -n value to unlimited in hpux

# uname -a
HP-UX benz B.11.23 U ia64 0707509492 unlimited-user license

Currenlty its

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048


Itried changing maxfiles and maxfiles_limit value, but looks like they are static and will chnage only in the next reboot.
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: ulimit -n

>I tried changing maxfiles and maxfiles_limit value

How did you do that? What did kctune say?
Yes, maxfiles(5) says it is a static tunable.

You can't have unlimited but the max is 1M.
Pattabhi
Frequent Advisor

Re: ulimit -n

I changed it via the web interface .... and once i changed it i never got any error messages..

i had to change maxfile_lim first and the maxfiles
Dennis Handly
Acclaimed Contributor

Re: ulimit -n

>I changed it via the web interface .... and once i changed it i never got any error messages..

SAM should have asked if you wanted to regen the kernel and reboot.
Pattabhi
Frequent Advisor

Re: ulimit -n

My OS crashed and denied to come up after the changes... here are what the logs say

Press Any Key to interrupt Autoboot

\EFI\HPUX\AUTO ==> boot vmunix

Seconds left till autoboot - 0

AUTOBOOTING...> System Memory = 4084 MB

loading section 0

.............................................. (complete)

loading section 1

........... (complete)

loading symbol table

loading System Directory (boot.sys) to MFS

....

loading MFSFILES directory (bootfs) to MFS

............

Launching /stand/vmunix

SIZE: Text:23165K + Data:5577K + BSS:3802K = Total:32545K



Console is on a Serial Device

Booting kernel...



WARNING: Could not allocate page table structures in interleaved memory.

WARNING: For better performance, it is recommended that you re-configure

WARNING: the machine to have more interleaved me

Stored message buffer up to panic:

Found adjacent data tr. Growing size. 0x36d5000 -> 0x76d5000.

Pinned PDK malloc pool: base: 0xe00000010092b000 size=121684K

Loaded ACPI revision 2.0 tables.



MFS is defined: base= 0xe00000010092b000 size= 4900 KB

Warning: The value 1048576 for tunable maxfiles is larger that the tested maximu

m of 409600.

Warning: The value 1048576 for tunable maxfiles_lim is larger that the tested ma

ximum of 409600.

Warning: Setting maxfiles_lim to 1048576, which is greater than 0xffff, can resu

lt in an incompatibility for some applications when queried using pstat_getfile(

). For details, please see the release



WARNING: Could not allocate page table structures in interleaved memory.

WARNING: For better performance, it is recommended that you re-configure



System Panic:

WARNING: the machine to have more interleaved memory.

panic: Could not find a good physical range for unpinned space

Stack Trace:

IP Function Name

0xe00000000111cb50 pdk_malloc_init+0x780

0xe00000000111d8c0 unpinned_pdk_malloc_init+0x6c0

0xe0000000011e04d0 DoCalllist+0x3a0

End of Stack Trace



linkstamp: Tue Jun 20 19:16:26 IST 2006

_release_version: @(#) $Revision: vmunix: B11.23_LR FLAVOR=perf Fri Aug 29

22:35:38 PDT 2003 $



*** A system crash has occurred. (See the above messages for details.)

*** The system is now preparing to dump physical memory to disk, for use

*** in debugging the crash.



ERROR: Your system crashed before I/O and dump configuration was complete.

This system does not support a crash dump under these circumstances.

Contact your HP support representative for assistance.

***********************************************************

* ROM Version : 02.31

* ROM Date : 03/11/2004

* BMC Version : 01.52

Dennis Handly
Acclaimed Contributor

Re: ulimit -n

>My OS crashed and denied to come up after the changes

Then you shouldn't have increased maxfiles that much. :-(

You should probably reboot with your previous vmunix.

And as it says, you should contact the Response Center.

Any reason you want EACH process to be able to open a million files? (Perhaps you are confusing maxfiles with nfile?)
Pattabhi
Frequent Advisor

Re: ulimit -n

Yes,

I actually wanted to increase th enumber of open files nfiles..
Pattabhi
Frequent Advisor

Re: ulimit -n

Actually i was trying to reproduce a cust scenario and that is wehn i hit this issue.