- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2004 08:54 AM
09-24-2004 08:54 AM
If I run Glance, CPU is usually at 100%, disk varies widely, Mem is usually in the high 90s, and swap util is always 38%.
The machine has two CPUs and 2GB of RAM. Is this machine underpowered or short on RAM for what we're doing with it, or are these numbers ok? Or is there some other information I could supply that would help people make a determination? I'm not an admin so I don't have access to tools that are restricted to root... The reason I'm asking about this is that response times from this system vary wildly from very quick to "go get a cup of coffee" at times, with the worst being anything that uses disk. I know that would be slower, but my experience with this application on this server type elsewhere was that it ran a lot faster in the same configuration without Oracle also running on the box. So I'm wondering if having Oracle on the server means we might need more RAM or more CPUs or if it wouldn't really help at all and this is just the way it is.
Thanks,
John Pavao
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2004 09:04 AM
09-24-2004 09:04 AM
Solution1. Swap utilization at 38% doesn't necessarily mean the system is having enough memory. If you configured way too much swap, then it will show low utilization.
2. TO better find whether the machine is short on memory, there are couple of checks
swapinfo -d
If you see anything under 'KB Used' column then there is something paged out to swap areas. That doesn't necessarily mean the system is low on memory either but may be an indication.
vmstat 5 200
Keep looking at "PO" column. These are page outs. If you see them more than 10 during the 'go get a cup of coffee' time along with above 'swapinfo -d' true condition, then your system is paging out and it is definitely low on memory.
You can also use 'glance' to find it out. Press 'm' and observe 'page outs'. If you see continuous non-zeros, then your system is short on memory.
To determine it from here, post the outputs of
swapinfo -dftr
vmstat 5 5
One kernel parameter that can really misuse the memory is dbc_max_pct. Make sure it is not at it's default value which is 50%. It will be a overkill particularly if your system does a lot of disk IO.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2004 09:12 AM
09-24-2004 09:12 AM
Re: Memory question
If the CPU usage is almost always at 100%, it could as well be the bottleneck in the system.
execute "sar -q" and see if runq-sz and swpq-sz is more than 5.
A relatively large number of processes that are in the runnable state but waiting for the CPU cycle usually would mean CPU bottleneck in the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2004 09:27 AM
09-24-2004 09:27 AM
Re: Memory question
What I'd do is some comprehensive data collection (script attached) and look closely at the data.
The RAM is a bit now. We're upgrading our boxes right now which are similar to accomodate heavy hitting oracle ias 10g.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 10:28 AM
09-26-2004 10:28 AM
Re: Memory question
uptime
In general, if the average load over 1,5,15 minutes (the last 3 numbers in uptime) is significantly larger than the number of CPUs, you need more CPUs installed. For your system, uptime numbers larger than 3.0 for long periods will be helped with another couple of CPUs. Now keep in mind that a poorly written script of program may saturate a single CPU so you may need to investigate the processes that consume the most CPU. The top command will help.
As far as RAM usage, just tell your Oracle DBAs to use a lot more SGA to improve performance (which it can) and you'll find that 2Gb is far too small for Oracle. A small number of users and/or a small number of transactions per minute and/or mostly simple SQL tasks will put very little load on Oracle and the response will be adequate. In general, a large SGA for Oracle will reduce disk I/O but will add more load to the CPUs.
There is no simple answer (more RAM, more CPUs, better written SQL tasks, more Oracle indexes, etc) to optimizing database response times. Generally, most response time problems to specific queries can be drastically improved with more indexes, balancing existing indexes or just rewriting the SQL code. Once Oracle has been optimized to the type and frequency of database requests, just add more RAM and CPUs (I'd add 2Gb immediately).
Bill Hassell, sysadmin