Operating System - HP-UX
1833338 Members
2774 Online
110051 Solutions
New Discussion

Comparing 2 HP-UX Systems

 
Chander-shakher Pal
Occasional Contributor

Comparing 2 HP-UX Systems

We have an application that runs fine on a test Box (HP-UX 11.0,64 Bit, D Class, 2 CPU). However when we run the same application on the production box (HP-UX 11.0,64 Bit, N Class, 3 CPU) we get into memory problems. We start getting alerts of "Global swap space nearly full". We guess it might be due to differing patch levels on the 2 boxes.

How can we compare the patch levels on 2 HP-UX boxes ? Or if anyone off-hand remembers any specific patch that we may be missing on the production box .

Any help is appreciated
Chander
10 REPLIES 10
Michael Tully
Honored Contributor

Re: Comparing 2 HP-UX Systems

Hi,

Start with these to get patch and memory and swap. It may be difficult to point out a certain patch if the current patch level is unknown, other than the latest.

Patch list
# /usr/sbin/swlist -l product

Memory
# echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/kmem

Swap
# swapinfo -t

Michael
Anyone for a Mutiny ?
steven Burgess_2
Honored Contributor

Re: Comparing 2 HP-UX Systems

Hi

Do both machines have the same ammount of memory installed ? what are the swap space settings for each of the servers, do they differ ?

swlist -l product

To check for patches in the ipd

Steve

take your time and think things through
Bill Hassell
Honored Contributor

Re: Comparing 2 HP-UX Systems

Since swap space is virtual memory, I would compare the amount of RAM in both systems. If they are equal, then use this command to compare the actual sizes of all the biggest programs:

UNIX95= ps -e -o vsz,uid,ruser,args | sort -rn | more

If the lists are similar, compare the output of swapinfo -tam between the 2 machines. If the lists are significantly different, then it's time to check the applications that differ. If these applications were pre-compiled, you'll probably have to work with the vendor to determine the reason for the differences.


Bill Hassell, sysadmin
RAC_1
Honored Contributor

Re: Comparing 2 HP-UX Systems

you can check the patches installed with swlist -l product.

you can check the total memory on both machines-grep -i physical /var/adm/syslog/syslog

Is anything else running on second system?
Compare the kernel parameters also.

Regards,
There is no substitute to HARDWORK
Animesh Chakraborty
Honored Contributor

Re: Comparing 2 HP-UX Systems

Hi In your N-class check kernel paramater dbc_max_pct.
Default value is 50.make it 10.
Did you take a backup?
Dave Wherry
Esteemed Contributor

Re: Comparing 2 HP-UX Systems

Is there anything else running on the production box that is not on the test box, creating contention for memory resources?
MANOJ SRIVASTAVA
Honored Contributor

Re: Comparing 2 HP-UX Systems

Hi Chander

The issue seems to be more wiht the setting of prodcution server , I assume that the produciton server has suffcicent swap space and the kernel parameters are tuned properly specially shmax and other memeory realted parameters , in case you are sure that these things are fine thatn may be you can do a swlist -l prodcut and take the print out from both the machines and compare them line by line .


Manoj Srivastava
V. V. Ravi Kumar_1
Respected Contributor

Re: Comparing 2 HP-UX Systems

hi,

use glance on both the machines to figure out memeory bottle neck.

then run
swlist -l product |grep PH > /tmp/patchlist
on both machines

get the both files on to one machine.
then use diff command to figure out patch differences.

regds
Never Say No
Ray Carlson
Frequent Advisor

Re: Comparing 2 HP-UX Systems

If your N box has a lot of RAM and does not have swap as 3 times the size of memory, then make sure that you check kernel parmeter swapmem_on setting.
Rich Wright
Trusted Contributor

Re: Comparing 2 HP-UX Systems

You may want to look at System Inventory Manager. It lets you collect and compare all kinds of information for multiple HP-UX servers. (11.0 & 11i only.)
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=SysInvMgr