1848613 Members
6836 Online
104033 Solutions
New Discussion

Re: chatr

 
Satish Y
Trusted Contributor

chatr

Hi Experts,

I have one doubt. How to use "chatr -M" cmd.... i.e., what r all the arguments i have to give to change EXEC_MAGIC to SHM_MAGIC....

Thanks in advance.....

all comments are welcomed.

Note: I will give points to my previous and this questions asap....

Cheers...
Satish.
Difference between good and the best is only a little effort
6 REPLIES 6
Satish Y
Trusted Contributor

Re: chatr

sorry its EXEC_MAGIC to SHMEM_MAGIC

it was mistyped in previously.....


Satish.
Difference between good and the best is only a little effort
Wodisch
Honored Contributor

Re: chatr

Hello Satish,

I might be wrong here, but I seem to remember that there were some linking options needed before even using "chatr"...

somewhat blind here,
Wodisch
Satish Y
Trusted Contributor

Re: chatr

Actually I want to increase shmmax from 1GB to 2.75GB, for both my ORACLE and SYBASE servers.

Can u now tell me what r all the arguments...

I know all the links to documents(docs.hp.com).... but unable to understand what options i need to give...

Satish.
Difference between good and the best is only a little effort
Wodisch
Honored Contributor

Re: chatr

Hello Satish,

AFAIK Oracle is ONLY able to address up to 1GB on 32bit HP-UX, Informix up to 2.75 (with SHMEM_...), and do not know anything about the limit for Sybase :-(

Regards,
Wodisch
Uday_S_Ankolekar
Honored Contributor

Re: chatr

Hi,

Look at this thread about increasing shmmax value more than 1 GB

Example of a creating a kernel with shmmax at 2Gb:

cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
kmtune -s shmmax= 2147483648 -S /stand/build/system
/usr/sbin/mk_kernel -s ./system
mv /stand/system /stand/system.prev
mv /stand/build/system /stand/system
kmupdate
shutdown -ry 0


http://us-support3.external.hp.com/cki/bin/doc.pl/sid=63f5bf81024349c387/screen=ckiDisplayDocument?docId=200000056493259

Goodluck,
-USA..
Good Luck..
Bill Hassell
Honored Contributor

Re: chatr

Read the white paper on process management in /usr/share/doc/proc_mgt.txt where quadrant 1, 2 and 3 addressing is discussed. chatr can change the executable to use EXEC_MAGIC or SHARE_MAGIC. Other chatr options such as +q3p can connect quadrants 1,2 and 3 together, giving an effective data area of up to 2850 megs. Read the man page for chatr for details.

Note: chatr can change the execcutable to use more RAM, but if the program wasn't written to handle 2850 megs or RAM, it may still fail. However, is will likely be a program-generated message rather than a kernel limit.


Bill Hassell, sysadmin