- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: maximum 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
07-01-2003 04:53 PM
07-01-2003 04:53 PM
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 601 423 59% 0 - 1 /dev/vg00/lvol2
dev 4000 606 3394 15% 0 - 1 /dev/vg00/lvswap
dev 20000 611 19389 3% 0 - 1 /dev/vg01/lvswap
reserve - 22164 -22164
memory 3963 892 3071 23%
total 28987 24874 4113 86% - 0 -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:04 PM
07-01-2003 05:04 PM
Re: maximum swap
Long before you reach any limit, your system will go so slowly you'll pull any hair you have left out waiting for any command to run.
If you are thinking about running swap much higher than twice physical memory, you need more physical memory.
Between 1.5 and 2.0 times physical memory is considered optimal, but you'll get some debate on that.
Based on your swapinfo, you have 25 Gig of Swap and around 4 Gigabytes of RAM.
In my experience, adding swap will not help. It will impede system performance. Before you add any more swap, add memory, you'll get better performance.
I'm attaching some performance measurement scripts that will show you whether your bottleneck is swap or memory.
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
07-01-2003 05:06 PM
07-01-2003 05:06 PM
SolutionHave alook at this thread.
http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x9d7b42308663d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:09 PM
07-01-2003 05:09 PM
Re: maximum swap
By the way, here is a web page for the maxswapchunks kernel parm:
http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.MaxSwapChunks.html
But instead of worrying about adding swap space, I'd worry more about adding more RAM. You are VERY SERIOUSLY short of RAM if you have that much swap space and it actually being utilized that extensively. You can get RAM very cheaply from Kingston, Dataram or Crucial and it works every bit as well as HP RAM at about 10-20% of the cost of HP RAM.
What type of machine is this? How much RAM does it have? What application(s) are you running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:10 PM
07-01-2003 05:10 PM
Re: maximum swap
Your problem is much more likely to be addressed by adding additonal memory or investigating what processes are using your memory?
The idea is to ensure that your system does not swap at all. Once a system starts swapping, performance severely suffers.
My advice is to look at your memory issues & why the system is swapping in the first place.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:23 PM
07-01-2003 05:23 PM
Re: maximum swap
I learned something new from Patrick, thanks for that.
I've read the links and Patrick's comments and the issue here is not swap, its RAM.
Please note that I've spoken to several HP CE's who stated if you put non HP ram in a system it invalidates the hardware contract.
I don't take that as the gospel, but if you want to maintain a hardware contact, it is something to think about.
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
07-01-2003 05:40 PM
07-01-2003 05:40 PM
Re: maximum swap
I have been told by HP CEs that IF we were to put non-HP ram in a machine and IF there happened to be a problem that MIGHT be related to RAM then the first thing they would do is pull out the non-HP RAM. If that happens to solve the problem then you might have to pay for a time-and-materials support call. :( BUT if the problem is unrelated to RAM, then what they don't know won't hurt them. ;)
If HP would get realistic on their RAM pricing then we customers wouldn't have to resort to non-HP products. But as it is now, I recommend buying a minimum amount of HP Ram in the machine and the rest 3rd party. It can cut the price of a machine by SEVERAL THOUSANDS of $$$$$.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:41 PM
07-01-2003 05:41 PM
Re: maximum swap
Try tunning vmstat doring the night and checking for high po values, indicating memory pressure.
Also check on sar -u for cpu wait I/O time, sar -b for buffer cache hots and misses, and sar -d for the amt. your disks are busy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:55 PM
07-01-2003 05:55 PM
Re: maximum swap
I've noticed there is an assumption that the memory line in swapinfo output is indicitive of RAM in the system.
I'd always assumed that this figure was not related to Physical RAM. Anyone want to clarify this??
If you don't have glance then the "free" column (4K pages)in vmstat is a more reliable indicator of free memory.
I'd be looking very carefully at what your memory usage is - glance (-m option) can give you a good idea.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 07:40 PM
07-01-2003 07:40 PM
Re: maximum swap
Hope this can give you some hints.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 01:33 AM
07-02-2003 01:33 AM
Re: maximum swap
Can I take an order for those disks please. :-)
Regards,
Trond