- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swapping versus memory
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
10-01-2003 08:01 PM
10-01-2003 08:01 PM
We have an Ingres 2.0 DBMS running on a HP-UX 11.
When running swapinfo I see a lot of memory is used 89%, sometimes 90% .. ?
One could conclude that the memory is well used, but there is also a possibility that the system swaps to disk a lot.
With DBMS running on the system I would like to know if due to swapping there is a loss in performance.
I could allocate less cache memory for avoiding swapping, but less cache means more other disk i/o operations by the DBMS.
This DBMS version does I/O with internally managed IO threads.
Does someone has some guidelines for this problem ? What would be the best approach for getting a good performance.
Regards in advance,
Franky
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 230 794 22% 0 - 1 /dev/vg00/lvol2
reserve - 794 -794
memory 465 413 52 89%
total 1489 1437 52 97% - 0 -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 08:11 PM
10-01-2003 08:11 PM
SolutionTo accurately see how much free memory you have use glance/gpm, or vmstat. The free line from vmstat shows pages free, multiply it by 4096 to get size in bytes.
The main point to swapinfo is to show device swap usage - in your case set to 1024MB, and 230MB used - which means at some point you have completely run out of memory. swapinfo doesnt update accurately, so all it means is at one point you had 230MB of memory swapped to disk (which cripples performance). Use vmstat or glance/gpm to check the current memory and swap usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2003 08:22 PM
10-01-2003 08:22 PM
Re: swapping versus memory
Do not allow any swapping to disk at all. This cripples performance, to something like a factor of 100 times worse. So always keep enough free ram to prevent swapping to disk, even if this means reducing other caches (like hpux buffer cache or database caches).
We dont allow any of our production servers to run out of RAM. If you want to increase your cache sizes to improve performance some more simply purchase more RAM - its cheap nowadays.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 01:07 AM
10-02-2003 01:07 AM
Re: swapping versus memory
In my example, device swapping was 22% used.
What is an acceptable % of device swapping ?
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 01:09 AM
10-02-2003 01:09 AM
Re: swapping versus memory
For optimal performance - zero.
Disks are thousands of times slower than memory.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 01:15 AM
10-02-2003 01:15 AM
Re: swapping versus memory
The rule for most modern boxes is to do no swapping at all because the the performance hits are so big. On the other hand, if swapping only occurs late at night with few users but large batch jobs then you might find that it is perfectly acceptable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 01:17 AM
10-02-2003 01:17 AM
Re: swapping versus memory
In you case it appears that you are VERY VERY short on memory. I would seriously look at adding more. If you don't want HP memory, you could go with a company like Kingston. I have used them without any problems at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 01:53 AM
10-02-2003 01:53 AM
Re: swapping versus memory
The point is that extra memory costs money ( esp. the engineer doing it ). Sometimes the current budget doesn't allow anymore hardware upgrades.
The choice I have is either
- sticking to my dbms configuration with almost all the memory allocated for dbms caching, minimizing dbms io, resulting with swapping
or
- lowering the amount of dedicated dbms cache, therefore minimizing swapping, but resulting in more dbms i/o's
What would be the best choice ?
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:04 AM
10-02-2003 02:04 AM
Re: swapping versus memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:26 AM
10-02-2003 02:26 AM
Re: swapping versus memory
I only have one daily vmstat output for the last days. This is insufficient information, to base some decision on it.
Anyway they all show 0 for the po column and often numbers below 10 for the pi column.
Suppose this would be the current picture. Does this mean anything, in the context of this discussion.
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:37 AM
10-02-2003 02:37 AM
Re: swapping versus memory
Hello,
>My Plan A would be to look for 3rd-party >memory. Kingston is literally a factor of
>10 cheaper than HP and I've never had any
>more problems with it than with HP memory.
>I even keep a spare module on-hand because
>it's so cheap.
The usage of non-HP memory into s700 or s800 boxes is totally unsupported by HP and can lead to sneaky problems during your operations. Most of them are HPMCs, kernel panics or luckily PDTs (Page Deallocation Tables) filled up randomly.
One thing more. There could also be problems during firmware upgrades made by HW engineers on site.
So, if the server is a critical server, i would not recommend your plan A (unless you accept to play with risks).
Sorry, Bye.
Francis DERDEYN - HP-UX ASCE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:57 AM
10-02-2003 02:57 AM
Re: swapping versus memory
No offense intended, but that sounds like a bunch of HP nonsense to discourage use of 3rd party memory. Granted 3rd party memory is not supported by HP. That's why I generally have at least 1 bank of HP memory so all the other can be removed if need be. As to your other points, I have never seen any of that. If that truly were the case the 3rd party manufacturers wouldn't be in business very long.
Until HP does something with its memory pricing I still recommend minimal HP memory and the rest 3rd party. HP is just WAY WAY too pricy with its memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:58 AM
10-02-2003 02:58 AM
Re: swapping versus memory
Thanks for your input too.
Let us not start another topic (HP versus non HP RAM) in this thread.
Regards,
Franky