Tuning Unix server memory - HPUX11i


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Tuning Unix server memory - HPUX11i
# 1  
Old 05-30-2006
Tuning Unix server memory - HPUX11i

Hello,

I'm using a unix server (HP rp2450) which has : 2 Go RAM memory and 4 Go swap.

Code:
Here is the result of vmstat -n command :

$ vmstat -n
VM
       memory                     page                          faults
     avm    free   re   at    pi   po    fr   de    sr     in     sy    cs
  221490    6212   94   15     9    2     0    0    19    761  22360   846
CPU
    cpu          procs
 us sy id    r     b     w
 10 10 80    1     7     0
 10  9 82


Here is the result of swapinfo -t command :

# swapinfo -t
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     4194304 1627252 2567052   39%       0       -    1  /dev/vg00/lvol2
reserve       - 1302196 -1302196
memory  1572828  521864 1050964   33%
total   5767132 3451312 2315820   60%       -       0    -

Here is the result of top command :

Memory: 1466396K (329944K) real, 3250104K (744220K) virtual, 22920K free  Page# 1/30

The server is not overloaded at this time. Around 50% of maximum activity.
I have seen that even when load is very low, po is always 2 with vmstat command.

Is the server swapping ? Do I need to add RAM memory ? How much ?

Thank you.

Last edited by Perderabo; 05-30-2006 at 04:12 PM.. Reason: Add code tags for readability
# 2  
Old 05-30-2006
Yes

Your server swapping.
You can add more memory or you can research some application tunning if you are working with Oracle, J2EE servers or like tunable app.

Regards
# 3  
Old 05-30-2006
A single line of vmstat is not very useful. Even "vmstat -n 1 4" would provide a few more clues. But swapinfo is helpful. You are using 60% of 5.7 GB or about 3.4 GB. If you double your 2GB of physical memory to 4 GB, all of that would fit. How much benefit this would mean depends on how much paging is happening and there is no way to tell with only a single line of vmstat.

Despite the name, "swap area", HP-UX never swaps anymore. It pages and deactivates.
# 4  
Old 05-31-2006
OK and thank you.
I will run wmstat -n 1 4 this afternoon when server load is more significant.
Il will post the result to you.
# 5  
Old 05-31-2006
Here is a sample with vmstat -n 1 4 :

Code:
# vmstat -n 1 4 
VM 
       memory                     page                          faults 
     avm    free   re   at    pi   po    fr   de    sr     in     sy    cs 
  212336    7285   94   15     9    2     0    0    19    762  22203   847 
CPU 
    cpu          procs 
 us sy id    r     b     w 
 10 10 80    1     5     0 
 10  9 82 
  212336    7261  180    5   160  438    21    0  3837   2414  12112  1113 
 17 20 63    1     5     0 
 16 22 61 
  212336    7689  311   17   154  350    16    0  3095   2255  12330  1090 
 13  4 84    1     5     0 
 12  6 82 
  212336    7427  357   23   143  280    12    0  2477   2094  11405  1073 
  8 12 80    1     5     0 
  7  5 88

Is it more clear for you ?

Last edited by Perderabo; 05-31-2006 at 02:08 PM.. Reason: Add code tags for readability
# 6  
Old 05-31-2006
Yeah. The system is working moderately hard at paging and could benefit from more memory. You need to decide if the performance was acceptable during this period. If not, doubling your memory would be the obvious thing to do.

You might have /opt/perf/bin/glance depending on which os bundle you bought. If so, give it a try. It is a very good performance tool.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX 6.1 memory tuning

Greetings, i'm wondering if there is a way to determine minimum memory requirement for AIX kernel and OS functions? We use memdetails script from perfpmr package to see actual memory allocation, for example like this: ===========================================================================... (5 Replies)
Discussion started by: dzodzo
5 Replies

2. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

3. AIX

UNIX/AIX Performance Tuning = some basics please

Hi all, From Googling, I found that the basics used for troubleshooting UNIX/AIX performance issues are commands like vmstat, iostat and sar. I believe these are generic commands regardless of what UNIX flavour is in used, only difference being is the format of the output. In a real case... (2 Replies)
Discussion started by: newbie_01
2 Replies

4. Shell Programming and Scripting

Single command for add 2 columns and remove 2 columns in unix/performance tuning

Hi all, I have created a script which adding two columns and removing two columns for all files. Filename: Cust_information_1200_201010.txt Source Data: "1","Cust information","123","106001","street","1-203 high street" "1","Cust information","124","105001","street","1-203 high street" ... (0 Replies)
Discussion started by: onesuri
0 Replies

5. Shell Programming and Scripting

Connecting to multiple unix server from unix server using shell script

Hi Gurus, I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies

6. Web Development

MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh

We have been tuning MySQL lately and I ran accoss two useful tools that you might be interested in: mysqltuner.pl tuning-primer.sh Both of these scripts are quite useful for MySQL tuning. Here is some sample output of mysqltuner.pl >> MySQLTuner 0.9.8 - Major Hayden... (3 Replies)
Discussion started by: Neo
3 Replies

7. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

8. AIX

TUNING: memory page sizes

This is post number 3 in a series of unanswered "TUNING" questions. :D With AIX 5.3 TL4, the page size can vary from the original "4k". They can now be "64k" and a couple other sizes. They also do not have to all be the same. Some can remain "4k" while others are "64k" which is what seems to... (2 Replies)
Discussion started by: kah00na
2 Replies

9. SCO

SCO unix server performance tuning

Hello, Can someone share his experience with SCO unix server performance tuning? - how to make some performance analysis - how to tune up a server for better performance Thank you! (0 Replies)
Discussion started by: forumuser7
0 Replies
Login or Register to Ask a Question