- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- About swap 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
12-26-2002 11:50 PM
12-26-2002 11:50 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 12:29 AM
12-27-2002 12:29 AM
Re: About swap memory
You can increase it by swapon command . See the man pages for it
kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 12:43 AM
12-27-2002 12:43 AM
Re: About swap memory
check man pages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 01:37 AM
12-27-2002 01:37 AM
Re: About swap memory
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 05:53 AM
12-27-2002 05:53 AM
Solutionwell the above persons verdict r correct.
1.swapinfo ----->to see the information of swap currently configured
2.Go for file swap ie select a filesystem free ...and with swapon command use the file as swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 07:46 AM
12-27-2002 07:46 AM
Re: About swap memory
But let me simply add a few thoughts here..
You are correct in wanting to know what is the utilization of swap memory...remember when you read the swapinfo -tam or swapinfo -tm command your bottom line is total/average of ALL your defined swap (i.e. physical memory and device swap) Take a look at the lines that reflect device or filesys swap - if they show 0 utilization than you are doing well, for you have never had to swap (or page) to physical devices. And trying to maintain ALL your paging/swapping in memory is what will give you the best performance.
So let me recommend that before you add more disk swap space...you consider doing a couple other things, that I have learned seem to give the most return for the time invested.
First, check your parms - make certain that they are tuned properly. A poorly set kernel can be a detriment to system performance. Search/look through threads here for more info on kernel tuning !
Second, observe your applications performance. I have gotten some of my biggest performance improvements by simply getting after the programmers to clean up their syntax. Amazing how a few lines of bad code...can choke a box. And all I used was Glance to see what was chewing up resources !
When steps 1 & 2 have been taken as far as I can take them...then I look at adding something as far as hardware. I look first at adding physical memory, since these days that is not a big cost. And physical memory will give you the best return for your investment. The last option I take is to add disk swap. And I only do this as a last ditch effort to keep running - because if I'm at this point...than the fact is that the 'system' has outgrown the box...and so I (and any UNIX Admin worth their salt) would have already put in for a bigger server.
Hope this helps,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2002 08:23 AM
12-27-2002 08:23 AM
Re: About swap memory
# swapinfo -tma will give you the total %used which is a good indication on how short you are in swap space (60-70% should be alarming) a confusing line in the output is the Memory line which is related to pseudo-swap & not to RAM. Pseudo-swap can be disabled/enabled by setting kernel parm swapmem_on to 0/1. If you don't see it in swapinfo output that means it is disabled, it recommended to enable it.
Top will also show you the Memory (real & virtual) usage on your system the last nbr is for Free memory that another way, if it is low, to determine if you are short in swap space.
A system short in swap space will logg msg in syslog or stdout/stderr about "out of memory" & applications will return some indication too. For example a failure with errno 12 in syslog as indicated in /usr/include/sys/errno.h:
#define ENOMEM 12 /* Not enough core */ This means not enough Virtual memory. More about swap can be found in process mangement white paper in docs.hp.com or check in /usr/share/doc dir on ur system.
Cheers,
T??