Operating System - HP-UX
1827276 Members
1984 Online
109717 Solutions
New Discussion

Re: Which kernel parm to change?

 
CKT
Advisor

Which kernel parm to change?

Hi,

I have a program that runs ok locally on the machine, but whenever I run it from a remote host using remsh it terminates prematurely with a "running out of memory error." Does anyone know which kernel parameter that I need to change/increase to allow remsh to "see" the same amount of memory/swap space available to programs run locally? I am running HP-UX 11.22 on a zx6000 with 8GB RAM.

Thanks.
You can't turn back the clock, but you can always rewind it again.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Which kernel parm to change?

Is that the only error message?

You might want to look at shmmax and shmseg.

You also might want to know you don't get a full environment with remsh and you might just need proper environment variables in your startup script on the remote machine.

Unless you are really pounding that box or the kernel is straight out of install you should not be having this problem.

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
Bill Hassell
Honored Contributor

Re: Which kernel parm to change?

This is a very common problem because the default protective fences are quite low (maxdsiz is only 67megs). The program is unfortunately very ambiguous with the error message so you'll have to consult the programmer as to what system call generated the error message (local memory or shared memory). Generally, these errors are due to 32bit programs that try to grab huge amounts of RAM.

I would start with maxdsiz---it is set very low to prevent bad programs from grabbing massive amounts of RAM. Your local machine may have maxdsiz set to 500 megs while the remote system allows only 67megs. It won't matter whether you use remsh or just run the program directly on the remote machine--it will likely fail in both cases.


Bill Hassell, sysadmin
Caesar_3
Esteemed Contributor

Re: Which kernel parm to change?

Hello!

Check your enviroment files on the machine
if you use the ulimit command or set some
variables that this program depend on
then you will need to do them with the remsh.

Caesar