Operating System - HP-UX
1756709 Members
2391 Online
108852 Solutions
New Discussion юеВ

Re: Performance of servers

 
SOLVED
Go to solution
rustam_2
Super Advisor

Performance of servers

Hi everybody. I would like check performance of my servers where run HP-UX 11iv3 and soft DB oracle. Last days many queries run a long timeтАж First I want to determine, do these problems are appeared coz my serverтАЩs low CPU value or RAM. Then want to check the DB Oracle. There are 2 servers, on 1st server runs PROD database and on 2nd server run 2 instances and 2 instances for datewarehouse (total 4 on 2nd one).
The serversтАЩs hardware configurations are the same тАУ RAM 16Gb and number of process are 4. I think performance of 2nd is too low.
Top shows me these amounts on prod:
http://img89.imageshack.us/img89/9053/prod.jpg
and on test shows these:
http://img545.imageshack.us/img545/2915/testfm.jpg

and swapinfo shows me on prod:
http://img440.imageshack.us/img440/2036/prodswap.jpg
swapinfo shows on test:
http://img143.imageshack.us/img143/4091/testswap.jpg

Regards,
Rustam

P.S. On prod arent many people yet, everything is checking and doing and test server.
15 REPLIES 15
Hakki Aydin Ucar
Honored Contributor

Re: Performance of servers

on the second picture idle time seems famiilar to me, not bad. I wrote a simple script to check in details if you want to use:

# cat statister
#!/bin/sh

sar -u 5 20 > /tmp/peracf$$
sar -d 5 20 > /tmp/perfd$$
vmstat 5 20 > /tmp/refvm$$
cat /tmp/peracf$$ |grep HP-UX|grep -v grep
cat /tmp/peracf$$ |grep %idle|grep -v grep
cat /tmp/peracf$$ |grep Average|grep -v grep
cat /tmp/perfd$$ |grep HP-UX|grep -v grep
cat /tmp/perfd$$ |grep %busy|grep -v grep
cat /tmp/perfd$$ |grep Average|grep -v grep
cat /tmp/refvm$$
Steven E. Protter
Exalted Contributor

Re: Performance of servers

Shalom,

See this to gather more data.

http://www.hpux.ws/?p=6

That being said, your pictures show an oracle problem. Oracle is pegged on top using 100% of CPU.

This could be due to i/o wait, it could be due to an application problem requiring an oracle patch an OS patch or both.

The script I posted will let you identify an i/o problem or hot spot.

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
chris huys_4
Honored Contributor

Re: Performance of servers

Hi Rustam,

Top shows that the test system with 80008K = around = 80Mbyte of free physical RAM is desperately low on RAM. (80Mbyte of 16Gbyte physical RAM is less then 0.5% of free RAM)

swapinfo shows that the system is/was heavily paging.

The problem is finding out were all the physical memory is going.

Log a call with HP support and get the kmeminfo utility;

# kmeminfo
# kmeminfo -user

;the above commands executed should allready give a better idea about what is causing the "low memory situation".

Greetz,
Chris
Alzhy
Honored Contributor

Re: Performance of servers

It could be that on your 2nd server your Database Instances have needlessly large SGAs configured - thereby depleting usable RAM.

Please send: "ipcs -a" output.

And we can tell you how large SGAs each of your DB is using. Then you can ask your DBA if it can be trimmed down.

Hakuna Matata.
muruganantham raju
Valued Contributor

Re: Performance of servers

Rustam,
It is the second server that eats both the memory and the CPU. Off course the Oracle processes are consuming more CPU. Almost all the cpus are consumed fully (90%).

Now coming to memory, it drains out of memory and hence there are too much swapping activity (80% swap being utilized). This is further hindering the over all system performance.

Both CPU and memory bottlenecks lead to performance degradation. Both of them are hogging your second server.

Check the Oracle processes. I am not sure if they are leaking memory. Are there too much user operations destined to DB in 2nd server? Close monitoring of the requests to DB in 2nd server would help you to pin point the issue.
rustam_2
Super Advisor

Re: Performance of servers

Thanks for all of you.

Hi Hakki Aydin, should I create script with values(which you suggest) and then run?

Hi Steven,
>> The script I posted will let you identify an i/o problem or hot spot.
This script gave nothing
# ./system.perf.sh
#

>> That being said, your pictures show an oracle problem. Oracle is pegged on top using 100% of CPU.
Because of SGA size or SQL quires? What do you think?

Hi Chris,
>> Top shows that the test system with 80008K = around = 80Mbyte of free physical RAM is desperately >>low on RAM. (80Mbyte of 16Gbyte physical RAM is less then 0.5% of free RAM)
I thought that free virtual memory is 80Mbytes.

What does mean? : >
Memory: 12547684K (3422440K) real, 19791712K (6147136K) virtual, 80008K free Page# 1/36
Does it means that 12,5 Gb memory of RAM is busy and 3,4Gb is free? 19,7Gb of virtual memory is busy and 6,1 Gb is free? What is 80008Kbytes then?
top also shows CPU loads, such as USER. What kind of percentages this columns shows? 0-70.1%, 1-80.5%, 2-48.4%, 3-85.7% and avg?
Moreover, there are (on test) 3 process : CPU-100.73% COMMAND- oracleprodleprod, CPU-98.69% COMMAND oracle CDWOWB ├в ┬ж
>> # kmeminfo
I haven├в t installed yet this utility


Hi Alzhy,
I attached result in attached file

Regards,
Rustam
rustam_2
Super Advisor

Re: Performance of servers

Alzhy,
>>And we can tell you how large SGAs each of your DB is using. Then you can ask your DBA if it can be >>trimmed down.
on 2nd server run 4 instances as said. 2 ones SGA=6 Gb and PGA=8GB and other 2 ones (datewarehouse├в s ones) SGA=1.7 Gb and PGA 1.7GB total will be = 34.8 Gb, isn├в t crazy?
chris huys_4
Honored Contributor
Solution

Re: Performance of servers

Hi Rustam,

> Top shows that the test system with
> 80008K = around = 80Mbyte of free physical
> RAM is desperately >>low on RAM. (80Mbyte
> of 16Gbyte physical RAM is less then 0.5% of
> free RAM)

> I thought that free virtual memory is
> 80Mbytes.

No, its free (RAM) memory that is 80Mbyte.

# man top
[..]
Memory Data
Reports virtual and real memory used by user
processes (with the amount of memory considered "active" in parentheses) and
the amount of free memory.

Can be crosschecked through "free memory" in the "Memory report" screen of glance.

> Memory: 12547684K (3422440K) real,
> 19791712K (6147136K) virtual, 80008K free
> Page# 1/36

> Does it means that 12,5 Gb memory of RAM
> is busy and 3,4Gb is free?

No.
Thats why I prefer kmeminfo output, its much more clear about all values.

The virtual memory values are not important. Also the active values of real and virtual memory, i.e. the values between () are not interesting.

I would say that userprocesses are in total using 12,547,685 kbyte of physical memory, or around 12.5Gbyte of memory of the total of 16Gbyte of memory and as said the system, at the time top was taken, had 80Mbyte of free memory, which leaves for the kernel + filecache = 16Gbyte - 12.5Gbyte - 80Mbyte = 3.42 Gbyte.

The amount of "kernel + filecache" memory of 3.42Gbyte looks "standard" for a 16Gbyte RAM system, so I would also say that the long querys are probably due to the user processes asking more RAM then there is available, leading to heavy paging of the system during that time.

Which can be observed with vmstat 1 1000 and checking the pi/po values together with the free value, were the latter gives the amount of free RAM. (all values of vmstat are in pages, 1 page = 4k)

How much RAM extra would have been needed to avoid the paging, I would, in this case, were RAM cant be removed from the kernel or filecache, as they seem allready on there "minimum", follow Patrick's Wallek advise of thread, https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1449580 , and add at least 2,748,424 kbyte, or the amount of "kb used" of dev swapspace. But to be sure, I would probably double that figure and round it upwards to the next "power of 2" i.e. 2.8*2 = 5.6 Gbyte, which "power of 2 up'd" would give an extra 8Gbyte of RAM.

Offcourse you could also ask the application vendor how much RAM they would advise for the amount off apps that are running on the system...

Greetz,
Chris
Steve Post
Trusted Contributor

Re: Performance of servers

You might want to get with your Oracle DBA to compare the two system's databases.

Just recently I had a problem with the cpu was at 100% and the io's were going crazy. The problem was due to missing index on a database table.

On the systems I have, it is typical for 98% of the memory to be used by the database. This is because that is the purpose of the boxes here. And there's still plenty for normal, non-massive programs. But when you look at the numbers, it looks like the box is going to blow up.

Now onto that memory. I have been running "vmstat 1 2". Then I take the "free" column and divide by 256 to get megs of memory free.
I have almost 16 gigs of megs used