Operating System - HP-UX
1747984 Members
4676 Online
108756 Solutions
New Discussion юеВ

Need help on ulimit setting in HP-UX 11.31 Server

 
Gaby1110
Frequent Advisor

Need help on ulimit setting in HP-UX 11.31 Server

Hi,

We need your help to setup the below parameters for a user in our HP-UX 11.31 Virtual machine running 11.31 VSE.
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 260000
vmemory(kbytes) unlimited

I am able to see the below parameter when use 'ulimit -a' as root
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

But when I login as an user I am able to see only the below parameters

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303

- Please let me know why I am not able to see
'nofiles' and 'vmemory' parameters and how to set these two parameter?
- What is vmemory parameter and is it different from memory paramter which I get when I use 'ulimit -a' as root?

Thanks
Gaby
7 REPLIES 7
Horia Chirculescu
Honored Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

Hello, Gaby

Change your login shell to /usr/bin/sh and you'll have all the options available

Horia.
Best regards from Romania,
Horia.
Dennis Handly
Acclaimed Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

>What is vmemory parameter?

What shell produced that line? I can't get it with the Posix shell on an ordinary server.
Gaby1110
Frequent Advisor

Re: Need help on ulimit setting in HP-UX 11.31 Server

Hi Dennis,

Thanks for the reply.

We got the parameter requiement from our application vendor (AMDOCS) to set the 'vmemory' and 'nofiles' for amdocs apps user on the server.

Please help us to set these parameters so that if we login as apps user and do 'ulimit -a' we should get both the parameter in the output.

Thanks again

Regards,
Gaby
Bill Hassell
Honored Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

> We got the parameter requiement from our application vendor (AMDOCS) to set the 'vmemory' and 'nofiles' for amdocs apps user on the server.

Apparently your application vendor has not tested on an HP-UX system. ulimit is a shell built-in to return values available from the kernel. Ask your vendor for HP-UX instructions.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

Shalom,

AMDOCs should know better.

They test all their products on HP-UX in Israel.

You have bad documentation. You need something OS specific.

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
Dennis Handly
Acclaimed Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

>Please help us to set these parameters so that if we login as apps user and do 'ulimit -a' we should get both the parameter in the output.

You can set the kernel parms with kctune(1m). (I don't know what vmemory does?)
maxfiles_lim & maxfiles
Don Morris_1
Honored Contributor

Re: Need help on ulimit setting in HP-UX 11.31 Server

All I can think of as "vmemory" is virtual memory of the process as a whole or RLIMIT_AS (Address Space limit). That's defaulted to a hard/soft limit of unlimited since no one typically needs to limit the whole address space [though it can help with mmaps, see past threads]. There's no tunable for it.

Yeah -- looks like a bash thing at least for some versions:
http://ss64.com/bash/ulimit.html

-v The maximum amount of virtual memory available to the process.

Has to be Address Space rlimit.