- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap space used show in swapinfo -tam and Glance
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
06-08-2006 09:10 AM
06-08-2006 09:10 AM
swap space used show in swapinfo -tam and Glance
My questions are:
1. The swap space on devices, is this space currently being used at this moment, or is it the space that has been used previously?
2. since we are using the swap space pretty high, can we conclude that we have memory pressure? I know that it depends on if we have page outs, but, if we don't consider the page outs for now, can we make such conclusion?
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 92 932 9% 0 - 1 /dev/vg00/lvol2
dev 1024 94 930 9% 0 - 1 /dev/vg00/lvol11
reserve - 1862 -1862
memory 4320 3289 1031 76%
total 6368 5337 1031 84% - 0 -
Current Avg High
Cpu Util S SRU U | 93% 97% 100%
Disk Util F F | 14% 18% 28%
Mem Util S SU UB B | 99% 99% 99%
Swap Util U UR R | 85% 85% 85%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 09:25 AM
06-08-2006 09:25 AM
Re: swap space used show in swapinfo -tam and Glance
Since the combination of reserved and occupied swap space is 85%, you may need to add more swap space if more users and applications are to be added. You'll need enough swap space to cover both reservation and occupied space.
But, memory pressure can only be measured as page outs. These are 'real' deactivations in which portions of memory were written to swap. Page ins are meaningless for performance because all programs begin by being pahged in from the executable and possibly later, paged in from swap space.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 10:45 AM
06-08-2006 10:45 AM
Re: swap space used show in swapinfo -tam and Glance
Swap space use means its reserved. Your system is not under pressure until paging gets out of control and starts eating up available i/o.
vmstat can help you detect this.
The question I always ask myself before beginning peformance work is: Is system response, abnormally slow?
If the system is doing its job, it may be time to stop. If not, identify the exact cause and deal with it.
http://www.hpux.ws/system.perf.sh
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
06-09-2006 06:14 AM
06-09-2006 06:14 AM
Re: swap space used show in swapinfo -tam and Glance
However, my question are:
1. since about 60% swap utilization from glance, and 9% of two devices from swapinfo -tam, are these figures showing the status of swap usage at this moment, or they are just reflection of accumulated figures?
2. no matter what, these are dada that have been swapped out into swap devices, so, page out did happend, or have happent. Maybe it is not swaping now, but did happend. Based on that, we could say we have memory pressure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:52 PM
06-09-2006 12:52 PM
Re: swap space used show in swapinfo -tam and Glance
> 1. since about 60% swap utilization from glance, and 9% of two devices from swapinfo -tam, are these figures showing the status of swap usage at this moment, or they are just reflection of accumulated figures?
The swapinfo figures (9%) are showing occupied swap while Glance's percentage combines reserved and occupied. So they are two different measurements. The bars in Glance are a better metric as they divide reserved and occupied.
> 2. no matter what, these are dada that have been swapped out into swap devices, so, page out did happend, or have happent. Maybe it is not swaping now, but did happend. Based on that, we could say we have memory pressure?
Mope. Swap space is also used by memory mapped files. There is no metric to separate these two uses. Thus, the only way to see memory pressure is page out rate. Glance is useful because it not only shows instantaneous page outs but cumulative values. As a rule of thumb, single digits (0-9) are fine (no performance issues), double digits (10-99) means memory pressure, and anything larger (100+) means your system is crawling.
Naturally, these numbers must exist for a long time (minutes to hours) to be meaningful. For instance, you could start a large fbackup and the large shared memory area might cause a jump in page outs for a minute, but only a few processes may get deactivated and paged out. But during the fbackup run, a program that must be reactivated will have it's pages returned to memory. The only time there is a concern is when many programs must all run at the same time -- then page outs will be continuous, and that shows memory pressure.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 02:59 AM
06-14-2006 02:59 AM
Re: swap space used show in swapinfo -tam and Glance
9% is the occupied swap space on DISK DEVICES, and not in memory reserved area. So, in this sense, the swaping (page outs) activities did happend, and therefore, we were under memory pressure when swaping happent. right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 09:39 AM
06-14-2006 09:39 AM
Re: swap space used show in swapinfo -tam and Glance
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2006 03:50 AM
06-24-2006 03:50 AM
Re: swap space used show in swapinfo -tam and Glance
Sorry, I still don't get it. I thought, if we have enough memory, the the data will not be swapped to swap devices(disks).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2006 04:27 AM
06-24-2006 04:27 AM
Re: swap space used show in swapinfo -tam and Glance
Memory mapped files grant you to the ability to read to and write from files that are shared between/among processes by loading all or a portion of the file into memory.
Instead of having to do I/O to access a file you can calculate the offset that represents the data you want and simply point to it, incrementing and decementing a pointer to traverse about.
One of the principal system calls used is 'mmap(2)' which estabishes the relationship between a process and its file. Part of calling 'mmap()' involves specifying whether you want read, write and/or executable permissions applied. You also have the ability to specify that changes your process makes to the memory-mapped region (file) are private or can be seen (ahared) by other processes. Have a look at the manpages for 'mmap(2)' and 'munmap(2)' for more details about mapping and unmapping files.
If you are going to share a memory-mapped file with other processes, you generally will regulate access to it with semaphores or "flags" to regulate when a process can read or write the memory-mapped file. After all, you wouldn't want two processes to write to a file at the same time. You want consistency among all processes view and control of the memory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2006 07:15 AM
06-24-2006 07:15 AM
Re: swap space used show in swapinfo -tam and Glance
Bill Hassell, sysadmin