- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I know if I need more RAM?
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
08-11-2003 04:33 AM
08-11-2003 04:33 AM
What's the best way to tell if a system would benefit from additional RAM when under load? I have a 32bit application running with 3Gb of RAM and want to check if an extra 1Gb of RAM is justified. (10Gb of swap configured with about 70% utilised).
What should I look out for in glance etc?
Many thanks,
Vin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 04:42 AM
08-11-2003 04:42 AM
Re: How do I know if I need more RAM?
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 04:42 AM
08-11-2003 04:42 AM
SolutionThe swapinfo -mt command shows you what you want. But, dont use the total line at the bottom as this usually includes memory/pseudo swap, look at the device (dev) line(s).
If device swap has any part used then this is how much ram you are short (which has been paged out from memory to disk). Ie. if you have 4Gb of device swap and the used column for the dev lines from swapinfo -mt shows say 1GB used (25%) then you are short of ram by 1GB.
Basically, to keep your server running optimally you should NEVER have the dev lines from swpainfo -mt show any used at all - it should always remain 0% used. Thats the way we run all our production servers. Anything else and performance starts to drop off considerably. You always want to keep some memory free (from vmstat).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 04:44 AM
08-11-2003 04:44 AM
Re: How do I know if I need more RAM?
If that much swap is really being used, and not not just reserved, you definitly need memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 04:46 AM
08-11-2003 04:46 AM
Re: How do I know if I need more RAM?
Look for a lot of swapping as a good guide.
Look at swapinfo -at for the memory line.
If a high proportion is being used by pseudo swap then tune your kernel with to reduce the amount used.
see dbc_maxpct dbc_minpct swapmem_on and bufpages in the kernel
dbc_maxpct = dbc_minpct = 10 is good
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 04:59 AM
08-11-2003 04:59 AM
Re: How do I know if I need more RAM?
__________________________________________
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1536 0 1536 0% 0 - 1 /dev/vg00/lvol2
dev 8500 0 8500 0% 0 - 1 /dev/vg00/lvol9
reserve - 5823 -5823
total 10036 5823 4213 58% - 0 -
____________________________________________
So, as the 'dev' lines are both 0%, I should be ok with the existing RAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:06 AM
08-11-2003 05:06 AM
Re: How do I know if I need more RAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:09 AM
08-11-2003 05:09 AM
Re: How do I know if I need more RAM?
Yes, you are OK.
You may monitor the situation in glance plus memory report window. Watch out for low free memory AND deactivation rate > 0. If this happens, you would see not 0% under USED 'dev' lines in swapinfo -tam output, meaning that you are short of RAM.
Elena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:22 AM
08-11-2003 05:22 AM
Re: How do I know if I need more RAM?
yes, you are fine. Nothing swapped out. All you need now is to check how much free ram you have to see if youre beginning to run out. Use vmstat and look at the memory free figure. Its in pages of 4096 bytes, multiply to get your free ram in bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:49 AM
08-11-2003 05:49 AM
Re: How do I know if I need more RAM?
Try a sar -b 5 5
You can see your cache hit rates, and could decide that more ram could be put to use there.
( mine average around 95% read, 80% write)
Although, if you have high perf. disks, (like a SAN), hit rate can be considered less important.
You could also look at application or database reserved memory. I.E., with more RAM you could increade Oracle SGA, which can be a great performance boost.