- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory and swap
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
11-04-2005 02:08 AM
11-04-2005 02:08 AM
I have provided output from top and swapinfo
Thanks in advance for any help
Gwenn Culbertson
Also, what are all the points about?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 02:37 AM
11-04-2005 02:37 AM
Re: Memory and swap
You need to do a swapinfo -t and a kctune and post those outputs. Also look at vmstat and pay attention to the "po" (pageout) column. It's really the only metric of any value in the vmstat output. This value should be very near 0 preferably at all times. If so, then you are fine.
Essentially if you have less swapspace that physical memory then you should enable pseudoswap (swapmem_on=1). This really isn't swap at all but does allow 75% of your memory to be counted as swap. For example, let's suppose that you have 24GB of memory and 12GB of device or filesystem swap enabled. Without pseudoswap, only 12GB's of processes could be run because that is also the swap that could be reserved (in case the system actually had to page out); if swapmem_on=1 then the system pretends that it has (.75 X 24GB (memory) + 12GB (actual) swap and allows you to fully utilize your available memory.
It's very common on boxes with large amounts of memory to run with small amounts of swapspace. Simply monitor your swap usage with swapinfo; it's so easy to add swapspace that it's not worth worrying about --- as long as you have some free disk space and as long as maxswapchunks has been increased so that the system can actually use the space.
The maxswapchunks does nothing unless you actually add more (actual) swap space. It's a good idea to increase maxswapchunks so that if you ever have to add swap space all you do is issue a swapon command w/o having to rebuild the kernel to allow for more swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 04:30 AM
11-04-2005 04:30 AM
Re: Memory and swap
I recomment you to have 24GB of filesystem swap since you have 24GB of memory.
Can u post the kmtune o/p
Regards
Sk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 04:39 AM
11-04-2005 04:39 AM
Re: Memory and swap
Clay's Rules For swap:
1) Create a small primary swap area (512MB-a few GB's depending on memory) and enable pseudoswap.
2) Create additional secondary swap if needed to bring you up to 25% of physical memory. This can be in another VG.
3) Mirror every dab of swap so that you don't have to shutdown if disk containing swap fails.
4) Monitor the system to see if additional swap is needed.
5) Swap space has absolutely nothing to do with dump space.
Under no circumstances allow yourself to be sucked into the 2-3x memory (4-6x if mirrored) to swapspace ratio rule. That rule has been outdated for more than a decade. Essentially, the current goal is to never swap --- or at least to swap only very rarely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 04:50 AM
11-04-2005 04:50 AM
Re: Memory and swap
The swap determines quantity of memory (RAM) is usable for processes on your system...
Since about 14 GB swap you cannot load more than that quantity in memory... but with swapmem set to 1 your system will be able to use whats left for pseudo swap and not use your disk devices...
So if you want to use all your RAM as memory usable for processes, you will have to have at least as much swap defined on your server!
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 05:02 AM
11-07-2005 05:02 AM
Re: Memory and swap
I have attached kmtune, vmstat and swapinfo -t
Thanks in advance for all your suggestions.
Gwenn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 05:20 AM
11-07-2005 05:20 AM
SolutionI would suggest that prior to your reboot to build the kernel that you edit /etc/fstab and change the priority of swap on LVOL's lvol5 and lvol9 to 2 and 3 respectively; iff these LVOL's along with lvol2 (primary swap) are located on the same physical disk. The head will be moving like crazy if all of these share a disk and are at equal priority. Actually this concern is trivial because if you ever begin to swap, disk layout concerns are unimportant (rearranging deckchairs on the Titanic) because performance will be so bad. What I would do while you are rebuilding you kernel is to go to a static buffer cache of about 1200MB by setting bufpages=307200.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 04:25 AM
11-16-2005 04:25 AM
Re: Memory and swap
We have decided that we are going to switch out the internal drives from 36 GB to 73GB and increase swap. Becasue we also have a memory leak issue we believe within PeopleSoft. So we will continie to troubleshoot after we increase swap from 12 GB to 36 GB. Thanks again to everyone for their responses.
Gwenn