vmstat, comments and advices needed


 
Thread Tools Search this Thread
Operating Systems HP-UX vmstat, comments and advices needed
# 8  
Old 11-22-2008
About /etc/fstab, there are mount option which say how the FS are tuned (tmplog,nolog delaylog etc...)
You have here some optimization that could be done but for that we would need to know the type/caracteristics of the disk-subsystem (like hardware RAID5 /cache centric...) or you may generate other issues...
So until you find out this we will put aside...

SWAP
A system will see his performance drop if it needs to swap (your case...) and is using disk swap space..
creating more swap of same size on other devices will balance I/O load...

The system buffers its read/write, oracle also, and worst maybe your subsystem also...
That means that before a modification, or read is done oracle will look in its buffer, then the system, at at last the sub-system, now I have noticed that better can be enemy of good, e.g. to much buffer in oracle will slow the system because of time parsing, compared to go and get the data...
If you know your subsystem has cache then reduce the amount of system buffers

Kernel params:
bufpages 0
dbc_max_pct 8
dbc_min_pct 5
swapmem_on 0

I cant find your values of maxusers... how many concurrent users?
I there a good reason for maxuprc 3686? (like: We all connect using oracle account...) It a heck alot for one user and can cost you as much if you fall on bad written code (infinite loops etc...) on big systems here with OA running (and because of java ) we set it at 1000 then I monitor to see if more is really needed and in most cases, not...

I would reduce of 200000 your redo and data buffers

Can you give this a try and lets see what happens?
(and look what you have in /etc/fstab, and what disks you are attached to...)

Good luck

Last edited by vbe; 11-22-2008 at 10:40 AM..
# 9  
Old 11-24-2008
> the type/caracteristics of the disk-subsystem (like hardware RAID5 /cache centric...)
I can't find any information about that, about /etc/fstab :
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg01/lvol1 /<mydata> vxfs rw,suid,largefiles,delaylog,datainlog 0 2

> creating more swap of same size on other devices will balance I/O load...
Ok. I will try to tune the Unix Kernel configuration on the first phase,
on the second phase, I will try to tune the Oracle configuration,
and the last, I will try the I/O part
so, I will know how much each phase take effects.

> If you know your subsystem has cache then reduce the amount of system buffers
from sysdef today, my bufpages value is 198371 (yesterday 416197)
from my kmtune, the value of bufpages is 0 (zero = flexibel?)
based on system performance tuning from http://docs.hp.com/en/64/hppg/hpconf.htm,
the result is "buffer cache is too small" (from chapter 6.2.2 point 2)
it makes me a little bit confuse, because I think the value is quite large.

> values of maxusers... how many concurrent users?
maxusers=32
my users=20-25
I will uplift this value upto 256, because the weblogic recommends this value
for my HP-UX server (and just in case, a user opens more than 1 session)

> I there a good reason for maxuprc 3686?
no idea yet.. I'll try to find out.

> I would reduce of 200000 your redo and data buffers
> Can you give this a try and lets see what happens?
Ok. I will try this at my second phase of tuning (oracle tuning) and give you information
about the result

At first phase, I will change these kernel configuration :
max_thread_proc 256 upto 1024 (weblogic recommendation for my version of HP-UX)
maxfiles 60 upto 256 (weblogic recommendation for my version of HP-UX)
maxusers 32 upto 256 (weblogic recommendation for my version of HP-UX)
nkthread 7184 - (weblogic recommends 3635 for my version of HP-UX)
nproc 4096 - (weblogic recommends 2068 for my version of HP-UX)
ncallout 7200 - (weblogic recommends 2084 for my version of HP-UX)
maxuprc 3686 downto 2048 (trial)


I will try the Unix Kernel tune today, and I will give you the result tommorow.

Thanks.

Last edited by galapagos; 11-24-2008 at 06:36 AM.. Reason: (double post)
# 10  
Old 11-24-2008
Dont forget :
dbc_max_pct 8
dbc_min_pct 5
swapmem_on 0

The idea is to stop the box from swapping to disk, then try to see what you have when loaded, and if then, you still have enough free mem, then see if we could increas agin oracle SGA and see if it benefits in terms of performance...

LVM:
vg00 isnt what we are interested in but lines like:
/dev/vg01/lvol1 /<mydata> vxfs rw,suid,largefiles,delaylog,datainlog 0 2

Here we learn you have largefiles enabled...

Back later... sorry...
# 11  
Old 11-24-2008
> Dont forget :
> dbc_max_pct 8
> dbc_min_pct 5
> swapmem_on 0
ok.. I will try this later, because my partner wants to try to configure these one first :

max_thread_proc from 256 upto 1024
maxfiles from 60 upto 256
maxusers from 32 upto 256
nproc 4096 downto 2068

let's see what hapens in the next few days first.

Last edited by galapagos; 11-24-2008 at 09:42 PM..
# 12  
Old 11-24-2008
keep us informed then, I would be the first surprised if those modifications impove things so Im very interested in knowing... mind you its your pal loosing his time in reboot not me...
About hte disks:
ioscan -funC disk
ioscan -funC fc
vgdisplay -v vg01 but just the last part like:
Code:
 --- Physical volumes ---
   PV Name                     /dev/dsk/c14t1d0
   PV Name                     /dev/dsk/c15t1d0 Alternate Link
   PV Status                   available                
   Total PE                    3781    
   Free PE                     523     
   Autoswitch                  On        
   Proactive Polling           On               

   PV Name                     /dev/dsk/c14t1d2
   PV Name                     /dev/dsk/c15t1d2 Alternate Link
   PV Status                   available                
   Total PE                    3781    
   Free PE                     523     
   Autoswitch                  On        
   Proactive Polling           On               

   PV Name                     /dev/dsk/c14t1d4
   PV Name                     /dev/dsk/c15t1d4 Alternate Link
   PV Status                   available                
   Total PE                    3781    
   Free PE                     571     
   Autoswitch                  On        
   Proactive Polling           On               
...
   --- Physical volume groups ---
   PVG Name                    pvg_es03a                  
   PV Name                     /dev/dsk/c14t1d0           
   PV Name                     /dev/dsk/c15t1d1           
   PV Name                     /dev/dsk/c14t1d2           
   PV Name                     /dev/dsk/c15t1d3           

   PVG Name                    pvg_es03b                  
   PV Name                     /dev/dsk/c14t1d4           
   PV Name                     /dev/dsk/c15t1d5           
   PV Name                     /dev/dsk/c14t1d6           
   PV Name                     /dev/dsk/c15t1d7

# 13  
Old 12-04-2008
hi..
those modifications does not effect so much.

i will try the : dbc_max_pct, dbc_min_pct and swapmem_on

> ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE DVD
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/1/0/1/1.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 37 1/0/2/1/0.1.0.0.0.0.0 sdisk CLAIMED DEVICE COMPAQ MSA1000 VOLUME
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0

> ioscan -funC fc
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
fc 0 1/0/2/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter

> vgdisplay -v vg01
--- Physical volumes ---
PV Name /dev/dsk/c4t0d0
PV Status available
Total PE 13022
Free PE 22
Autoswitch On
# 14  
Old 12-04-2008
what kind of box is this? (L class? or RPXXXX that I dont know? cmd: model will tell you...)
From what you just posted I guess vg00 is mirrored...
Is this a production box? because I have some concerns about vg01...(only one fc? and one spindle...)

dbc_min_pct 6 now!
I suggest you leave in system some formulas so you just have to change one param and it will affect the others:
max_thread_proc ((MAXUSERS*4)+256)
maxdsiz 2063835136
maxdsiz_64bit 0X80000000
maxfiles 2048
maxfiles_lim 4096
maxssiz 0X8000000
maxssiz_64bit 0X40000000
maxswapchunks 9600
maxtsiz 0X8000000
maxtsiz_64bit 0X40000000
maxuprc (NPROC*6/9)
maxusers 300
maxvgs 20
msgmni 100
msgseg 20000
msgssz 400
msgtql (NPROC)
nclist (200+16*MAXUSERS)
nfile (15*NPROC+2048)
nflocks (NPROC)
nkthread (((NPROC*9)/4)+512)
nproc (512+9*MAXUSERS)
npty 256
nstrpty 72
nstrtel 200
semmni (NPROC)
semmns (SEMMNI*2)
semmnu (NPROC-4)
semume 30
shmmax 0X40000000
shmmni 300
shmseg 150

and of course:
dbc_max_pct 8
dbc_min_pct 6
swapmem_on 0
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