vmstat, comments and advices needed


 
Thread Tools Search this Thread
Operating Systems HP-UX vmstat, comments and advices needed
# 1  
Old 11-19-2008
vmstat, comments and advices needed

Hi all..

I need some comments or advices about my HP-UX 11.11 performance.
It runs Oracle, some apps and weblogic.

For several times in a day, it's performance drops poorly (approx for minutes until an hour).
I tried to find articles about unix, oracle and weblogic tuning, which leads me to some informations :

1. Some Unix Kernel configuration (max_thread_proc, maxfiles, maxusers) needs to be set larger than the default configurations (I will reconfigure this soon)

2. My kernel configuration : lotsfree, desfree, minfree sets to 0 (zero)
I found some article which told to set it, according to my memory size. Anyone tried this before? did it give you a good result?

3. I ran vmstat for about 10 minutes (@1 sec), which gave me this results :
- SR : 20% return large page scan rate (avr. 9k, max 60k) and 80% return below 200 pages (most articles say this is not good, needs more RAM)
- RE : 20% return large reclaims (arg 800, max 4k) and 80% return below 10 pages
- R : 4% return more than my CPUs count (avr 10, during large SR) and 96% return below my CPUs count
- W : 5% return avr 15 pages, and 95% return almost none
- and PI also increase while RE increase

I need some comments or advices about 3 points above,
and, is it just configuration problem (tuning problem only) or I 'extremly' need more RAM?


(I'm kinda new at this, need much advices and guidances)
Thank you for your time, comments and advices.
# 2  
Old 11-19-2008
We need to know a bit more..
What is the output of sysdef, how much RAM and what kind of disks are attached, what is the output of swapinfo -tam,

What is the size of the SGA
# 3  
Old 11-19-2008
configurations

>output of sysdef
NAME VALUE
acctresume 4
acctsuspend 2
allocate_fs_swapmap 0
bufpages 416197
create_fastlinks 0
dbc_max_pct 50
dbc_min_pct 5
default_disk_ir 0
dskless_node 0
eisa_io_estimate 768
eqmemsize 46
file_pad 10
fs_async 0
hpux_aes_override 0
maxdsiz 262144
maxdsiz_64bit 524288
maxfiles 60
maxfiles_lim 1024
maxssiz 32768
maxssiz_64bit 262144
maxswapchunks 16384
maxtsiz 16384
maxtsiz_64bit 262144
maxuprc 3686
maxvgs 10
msgmap 4095
nbuf 673506
ncallout 7200
ncdnode 150
ndilbuffers 30
netisr_priority -1
netmemmax 0
nfile 63890
nflocks 4096
ninode 35016
no_lvm_disks 0
nproc 4096
npty 60
nstrpty 60
nswapdev 10
nswapfs 10
public_shlibs 1
remote_nfs_swap 0
rtsched_numpri 32
sema 0
semmap 4095
shmem 0
shmmni 1024
streampipes 0
swapmem_on 1
swchunk 2048
timeslice 10
unlockable_mem 16584

>how much RAM
8 Gb

>what kind of disks are attached
SCSI with fiber cable

>what is the output of swapinfo -tam,

(during performance ok)
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI
dev 12000 1012 10988 8% 0 - 1
reserve - 5081 -5081
memory 6285 1906 4379 30%
total 18285 7999 10286 44% - 0 -
(do I need to check it again during bad performance?)

>What is the size of the SGA
Fixed Size 740,232
Variable Size 738,197,504
Database Buffers 1,610,612,736
Redo Buffers 1,323,008
Total (SGA) 2,350,873,480


Thanks.
# 4  
Old 11-20-2008
also, I notice that when the performance starts to slowdown,
the FREE in vmstat also drop below 10Mb (below 10,000 in vmstat display), which in other conditions, the value various between 40-230Mb.

the FREE also increase while SR, RE and IN increase.
any comments or advices? thanks.
# 5  
Old 11-20-2008
before I give you my 2 cents, what kind of disk subsystem, dual path? size of volume group (approx... (idea of db size..) how many processors (2-4?) and have you some spare space on subsystem...

Forgot: in /etc/fstab how are mounted your FS (especially data) are they all vxfs?

Have you notices the slowdown when running batches (vs oltp... e.g. is it when big jobs are running, compared to many users doing queries...)
# 6  
Old 11-22-2008
all FS mounted with vxfs

I'm not quite sure with the meaning of disk subsystem or volume group, but perhaps, this information can give you a clue (bdf command) :
Mount kbytes perc-used
/ 1,048Mb 11%
/tmp 4,096Mb 19%
/home 24,576Mb 86%
/data 425,984Mb 46%

total DB size around 100Gb (currently allocated 110Gb)

3 procs

yes, the last thing I need to check is the users session resource usage (no idea yet), but as far as I know, there is no background job running on the server during daytime.

also, some site recommended to see the x$ksmsp (related to SGA), but they dont
explain how to read them, can you give me some information? (I want to know is my current SGA size is oversize than what we need)

select sum(ksmchsiz) Bytes, ksmchcls Status
from x$ksmsp
group by ksmchcls;

R-free 132,864,168
R-freea 138,840
free 2,079,208
freeabl 308,242,376
perm 74,995,696
recr 85,657,184


Thank you very much.
# 7  
Old 11-22-2008
the reason I started to look at the SGA, is because from the 'top command', I see some of processes are used by Oracle, which each one take 2,391Mb.
although most of it are sleeping (%CPU and %WCPU below 1%), I'm guessing that take lots of server resources too.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Want to learn Shell well.. Advices

Hi everyone.. Thanks a lot for reading this post. I am trying to learn shell and Unix well. I am taking course at UNT school, unfortunately, the professor doesn't explain well. I am trying to take an advantage of this course and learn as much as I could. I learn by myself.. read the book... (1 Reply)
Discussion started by: smasm9
1 Replies

2. Programming

Need some advices how to increse accuracy of the algorithm

Hi guys :D Can you raccomand some what I can do to increse accuracy of the Newton-Raphons method. It's not very accurate. // Implementation of Newton - Raphson method for // determination square root od positive number // Date: 10. april 2011 // Author: Solaris_user // Solution for... (1 Reply)
Discussion started by: solaris_user
1 Replies

3. Filesystems, Disks and Memory

Linux Storage system: looking for advices

Gidday! I'd like to setup a storage server for a friend of mine (he is a hobby photographer, and he produces about 100Gb pictures monthly). My friend has the following PC-Server-like system: AMD Athlon Dual Core Processor 4850e. ASUS M3N78-EMH HDMI motherboard with 6 SATA connectors. 3Gb... (7 Replies)
Discussion started by: Loic Domaigne
7 Replies

4. Shell Programming and Scripting

Sed script, changing all C-comments to C++-comments

I must write a script to change all C++ like comments: // this is a comment to this one /* this is a comment */ How to do it by sed? With file: #include <cstdio> using namespace std; //one // two int main() { printf("Example"); // three }//four the result should be: (2 Replies)
Discussion started by: black_hawk
2 Replies

5. Shell Programming and Scripting

Need advices on scripting for remote servers

Hi guys, I need some advice and recommendations for a work project I am doing. Let me state that security is not a concern as this is a closed network and the data is not sensitive. Here's what I would like to do and how I was planning to accomplish it: I have an application on my remote... (1 Reply)
Discussion started by: blueicedrop2000
1 Replies

6. Shell Programming and Scripting

vmstat

Hi I need to write a script to display VMSTAT every 5 seconds and I just need the memory columns - swap free re and just the numbers and the headers arent required. For example bash-3.00$ vmstat 5| awk '{print $4" "$5" "$6}' disk faults cpu ------ This header isnt required swap... (3 Replies)
Discussion started by: kapilk
3 Replies

7. Linux

vmstat help

Hi everyone, I need to see some VM manager performance/behavior information on some Linux boxes regarding pages scanned/activation of the paging algorithm in order to get an idea if a given server needs more memory and is actually paging. In Aix servers, by using the vmstat cmd you... (1 Reply)
Discussion started by: jcpetela
1 Replies

8. UNIX and Linux Applications

need advices on install/configure amanda on solaris 10

i would like to have advices on how to install/configure amanda on solaris 10. thank you. (1 Reply)
Discussion started by: conandor
1 Replies

9. UNIX for Advanced & Expert Users

vmstat

Hi, what does mean the free colomne in out put of vmstat ? is it free espace of physical memory or of swap space on hard disk ? Thank you (4 Replies)
Discussion started by: big123456
4 Replies
Login or Register to Ask a Question