My 2 cents to the above:
I did a lot of scripts in earlier days to calculate e.g. the memory - total per process or the biggest hog etc...
In HP-UX what works in 10.20 did not in 11.00 what worked in11.11 I have no idea in 11.3X
So asking such questions without giving your version and I forgot - Platform are irrelevant to me and show serious lack of knowledge, making me unwilling to show how to look through the kernel...
PS: Used/Free memory in a VM system is pretty meaningless. Once a system goes quiescent, the free memory just represents recent proceess terminations, which make a bunch of free pages. Pages may be used for old mmap(), perhaps by ld() the dynamic linker, and remain mapped in speculation of future use. If there is demand for free memory, and they are not modified, then they can be repurposed immediately, but the memory is in use, used. Whe a process exits, the RAM used for stack and heap are returned to the free memory pool, awaiting use by the nest consumer.
It is more useful to look at page writes and reads of swap per second, to determine if there is a RAM shortage. There are also many ways to tune a system for lower swap I/O, but that is very much an art, sometimes a proprietary product. If you are writing the apps, then there are also many ways to control RAM demand. Paging, in and of itself, may be the right behavior for what is going on, such as extensive interrogation of a huge database. I often see high page faults on virus scanners, as their dictionary is huge.
A useful monitoring object is total available memory
And a warning threshold of 80 (percent usage).
This will warn before an "out of memory" situation occurs. It does not say anything about system performance.
Regarding CPU, a useful monitoring object is system load (obtained from the uptime command)
Best practice is an AND condition of (1min average, 5min average, 15min average) as done with awk,
and a threshold of 1.1 if the load is divided by the number of active virtual CPUs (here "cores" is set to 2).
Where the number of "cores" can be determined on HP-UX with
or
I think in HP-UX 11.x the best command to determine the logical CPUs is
Last edited by MadeInGermany; 06-01-2015 at 08:07 AM..
Reason: better method for cores
This User Gave Thanks to MadeInGermany For This Post:
Hi All,
In one of the solaris box aslert got triggered as ...
(Used_Real_Mem_Pct=93.0 Used_Swap_Space_Pct=75.0 )]
when i see the usage by vmstat and sar i am not able to relate the alert with the free memory and swap memory
please help to understand the vmstat output as below..
kthr ... (4 Replies)
Hi Guys,
I have a script. It calls an executable inside (programmed in C). I will have to find the execution time of that script and amount of memory consumed by that process as well.
#!/bin/sh
echo "Script starting"
echo "executable staring"
executable parm1 parm2 parm3
echo... (4 Replies)
All,
AIX: 6.1 64 bits
How to find out Free memory available on AIX 6.1 64 bits
When I used :
svmon -G
size inuse free pin virtual mmode
memory 1048576 612109 191151 215969 549824 Ded-E
pg space 4325376 ... (1 Reply)
hi, I have done the below, but am confused as to how much memory is "free"
please help
thanks
$ free
total used free shared buffers cached
Mem: 132033488 48827536 83205952 0 1007696 45404632
-/+ buffers/cache: 2415208 ... (7 Replies)
I 've one box with 16gb of RAM and top, vmstat showing 8712M free , i 'm unable to find which process is eating up rest of the memory , the system is not running anything at the moment. (14 Replies)
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Hi,
I have a HP-Unix server, version B.11.23. Can someone tell me how to find out the physical memory & virtual memory (swap) in my server? & what is Page fault? & is there any limitation for page fault?
Thank you. Your help is appreciated. (7 Replies)
Hi,
In Sun solaris o/s how can i find the memory space available,Swap space.
By giving df command i can get the disc space.
I want RAM space & swap space.
If anybody assist me.that is great.
Thanks (2 Replies)
Hi,
Can anyone help me out in writing the shell scrip which monitors a process which is running and gives me the output of the memory being used by the process, I have the requirement of monitorig the memory usage of the process when it is running.
Please help me out (3 Replies)