- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap (paging )space in HP Unix.....
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
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
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
03-29-2011 12:20 AM
03-29-2011 12:20 AM
swap (paging )space in HP Unix.....
How to analyze the swap space (Paging space)…in particular how to identify
Which processes (PID’s)are consuming more paging space.
My hp flavor .
HP-UX s96spmq0 B.11.31 U ia64 2201497067 unlimited-user license
But swapinfo –atm is not giving any output
A55spmq01:axgadm 8> swapinfo -atm
swapinfo: Command not found.
Please advise on the above
I tried "Glance " Also
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2011 12:41 AM
03-29-2011 12:41 AM
Re: swap (paging )space in HP Unix.....
How about vmstat?
Regards
Ismail Azad
- Tags:
- vmstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2011 02:22 AM
03-29-2011 02:22 AM
Re: swap (paging )space in HP Unix.....
swapinfo is normally a command to be run as root, so it is (probably) not in your default search path.
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2011 05:02 AM
03-29-2011 05:02 AM
Re: swap (paging )space in HP Unix.....
both are informative
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2011 06:22 PM
03-29-2011 06:22 PM
Re: swap (paging )space in HP Unix.....
Does that mean that you ran glance and could not understand the display, or that glance is not installed on your system?
If you want to identify the processes that have been deactivated and paged to the swap area, use this command:
UNIX95=1 ps -e -o flags,pid,args
The first number has a number of bits (see man ps) but if the number is odd, the process is in memory. If it is even, the process is in swap space.
Bill Hassell, sysadmin
- Tags:
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2011 10:23 PM
03-29-2011 10:23 PM
Re: swap (paging )space in HP Unix.....
Thanks for the concern..
I tried
UNIX95=1 ps -e -o flags,pid,args
axgadm 8>UNIX95=1 ps -e -o flags,pid,args
UNIX95=1: Command not found.
System says command not found..
My Hp unix version is
HP-UX B.11.31 U ia64 2201497067 unlimited-user license
Whether this command requires the Root access >
or is there a way, to find...
The Processes that have been deactivated and paged to the swap area, on the above OS..
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2011 12:26 AM
03-30-2011 12:26 AM
Re: swap (paging )space in HP Unix.....
If you are satisfied with wmstat or glance, that is OK. If not you might find the following idea useful. By the way, HP-UX experts may find that this idea is wrong.
Anyway, once I found on this forum a program that collects information about memory consumption on HP-UX of a process or a few processes and prints it. Google gives me this link: http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBQQFjAA&url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fgetattachment.do%3FattachmentId%3D311006%26ext%3D.c&ei=O-KSTf3RMYySOqv_4JAB&usg=AFQjCNEm3nKmZkDAFQeETyVaPUTsqN-pKw&sig2=Gqc_fpa_2xBHNLEj4t4n2w. Again, this program is not mine. The source of this program was posted by someone, you must be able to find it easily on this forum. So it is just necessary to compile it.
Basically it prints information about memory consumption of a process. You need too look in the end of the output at the line: "Mb in Use: Virt: 1981 Phys: 1638 Swap: 1836" (by the way mem_statistics.11.31 is just a name of the executable on mine HP-UX 11.31 server).
srv2-rx8 B.11.31 ia64 bash-4.0$ ./mem_statistics.11.31 -v -p 24934
VIRT/PHYS/LOCKED/SWAP summaries in pages.
System page size is 4096 or 0x1000 bytes.
Total physical memory is 4c8f3a pages (19599 Mb).
Maximum allocatable User memory is 43ab52 pages (17323 Mb).
PID 24934: GID:24934
UNUSED TYPE consumes 0 VIRT,0 PHYS, 0 LOCKED and 0 SWAP.
UAREA consumes 1296 VIRT,1152 PHYS, 0 LOCKED and 1296 SWAP.
TEXT consumes 13 VIRT,12 PHYS, 0 LOCKED and 0 SWAP.
DATA/HEAP consumes 431104 VIRT,403928 PHYS, 0 LOCKED and 431104 SWAP.
MAIN STACK consumes 256 VIRT,2 PHYS, 0 LOCKED and 32 SWAP.
SYSV SHMEM consumes 0 VIRT,0 PHYS, 0 LOCKED and 0 SWAP.
NULL DEREF consumes 1 VIRT,1 PHYS, 0 LOCKED and 1 SWAP.
MEM MAPPED I/O consumes 0 VIRT,0 PHYS, 0 LOCKED and 0 SWAP.
MMAP consumes 72572 VIRT,14271 PHYS, 0 LOCKED and 37819 SWAP.
GRAPHICS SPECIFIC consumes 0 VIRT,0 PHYS, 0 LOCKED and 0 SWAP.
GRAPHICS SPECIFIC consumes 0 VIRT,0 PHYS, 0 LOCKED and 0 SWAP.
RSE STACK consumes 2048 VIRT,0 PHYS, 0 LOCKED and 3 SWAP.
PID: 24934 (0.08%) SYS sec:758 USER sec:2166
Mb in Use:
Virt: 1981 Phys: 1638 Swap: 1836
If you run this command without -p you will get information about all processes. So if you sort all the processes by the value in "Swap: " (which in Mbs) you will see that processes consume more paging space.
I posted the source of the program in case you don't find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2011 01:15 AM
03-30-2011 01:15 AM
Re: swap (paging )space in HP Unix.....
Swap space is an area on a high-speed storage device (almost always a disk drive), reserved for use by the virtual memory system for deactivation and paging processes.
Here Swap space THREE types:
Physical Swap Space
==================
There are two kinds of physical swap space: device swap and file-system swap.
Device Swap Space:
Device swap space resides in its own reserved area (an entire disk or logical volume of an LVM disk) and is faster than file-system swap because the system can write an entire request (256 KB) to a device at once.
File-System Swap Space:
File-system swap space is located on a mounted file system and can vary in size with the system's swapping activity. However, its throughput is slower than device swap, because free file-system blocks may not always be contiguous; therefore, separate read/write requests must be made for each file-system block.
Note : use this command
#swapinfo -tam
SAM is one method for adding and configuring swap space. Swap configuration is under the Disks and File System area of SAM. For more information on configuring swap, please see the on-line Help section within SAM's Swap Configuration. If you wish to use the swapon command, review the man page, swapon(2).
Regards
Rajamani.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2011 07:25 AM
03-30-2011 07:25 AM
Re: swap (paging )space in HP Unix.....
> UNIX95=1: Command not found.
You are running csh (or tcsh or some other non-standard shell). If you are a system administrator for this system, change your shell to ksh or POSIX:
8> chsh myusername /usr/bin/sh
The vast majority of system administrators use a POSIX shell like ksh because of it's predictability and portability. If changing your shell is not an option, you can do this:
8> setenv UNIX95=1
8> ps -e -o flags,pid,args
Make sure you unset the variable after you use it with ps:
8> unsetenv UNIX95
Bill Hassell, sysadmin
- Tags:
- chsh
- scummy C shell