Operating System - HP-UX
1752576 Members
5088 Online
108788 Solutions
New Discussion юеВ

Re: Need to clean the system

 
smatador
Honored Contributor

Re: Need to clean the system

Hi,
stop the diagnostic
/sbin/init.d/diagnostic stop
What is the output of swapinfo -tam
HPlowSkill
Occasional Advisor

Re: Need to clean the system

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 29 4067 1% 0 - 1 /dev/vg00/lvol2
dev 4096 0 4096 0% 0 - 2 /dev/vg00/lvol9
reserve - 632 -632
memory 1511 1158 353 77%
total 9703 1819 7884 19% - 0 -
HPlowSkill
Occasional Advisor

Re: Need to clean the system

Does "memory" mean "Physical memory" in the last line of the swapinfo result?

Does it mean that the processes are now using 1158 Mb on 1511 Mb of physical Memory ( RAM ) ?

I'm not silly, but as I'm new on those system I prefer to be precise.
HPlowSkill
Occasional Advisor

Re: Need to clean the system

If you allow me one more question: why the memory informations returned by the top command are not consistent with those returned by swapinfo -tam

top:

Memory: 611352K (601288K) real, 732368K (693360K) virtual, 56296K free

swapinfo -tam:

memory 1511 Mb 1131 Mb 380 Mb 75% PCT
V. Nyga
Honored Contributor

Re: Need to clean the system

Hi,

which HP-UX do you run?
What's your hardware?

>Does "memory" mean "Physical memory" ...

Check 'man swapinfo' for this:
memory Memory paging area (also known as pseudo-swap). This is the amount of system memory that can be used to hold pages in the event that all of the above paging areas are used up. See "Paging Allocation" below. This line appears only if memory paging is enabled.

This indicates how much RAM you use, but it's not the RAM usage.

Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: Need to clean the system

Hi again,

for an exact decision, I believe you need 'glance':
https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-15-28^9637_4000_100__

I never had the real need to use it (there's a 30-days-trail offer too).

I've some scripts to get some hints about my systems (this is for 11.11):
'UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line|sort -rnk1|more'

Also attached a script to test physical memory and hint about the usage.

Maybe you have to decide:
Do you need sendmail, automount?
Also, as far as I remember, mib2agt had a memory leak some years ago, so I disabled it at some ws with less memory.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Need to clean the system

>I really need to clean an HP-UX system, because we do not have enough memory.

Unless there is a problem with mib2agt as Volkmar mentioned, you are going to have to add more RAM or device swap.

Your current ps(1) output doesn't even show any use other than root and one ljb ksh.

Are you getting out of memory errors? Have you increased maxdsiz?
Albert Smith_1
Regular Advisor

Re: Need to clean the system

Sounds like your new to hp-ux.

Download a 60 day trial of glance and install it.

Start it and tweak your options to show your highest memory users. From there you can figure out which to terminate.

top - is a memory hog if left running.
if you don't need CDE shut it down
if you aren't using NFS I would stop that

The rest seem like necessary system process's.


Start with that first. I think that would provide you with some valuable insight.

Also check the system managment books at docs.hp.com
HPlowSkill
Occasional Advisor

Re: Need to clean the system

First of all, thank you for all the answers.
Then, you're right, I'm new on HP-UX, like I'm new on Unix in a more general way...

I'll try to apply your many advices.

I will let this thread opened a couple of days, and close it later if not necessary anymore.