Sponsored Content
Full Discussion: swapinfo question
Operating Systems HP-UX swapinfo question Post 87741 by Perderabo on Thursday 27th of October 2005 09:41:13 AM
Old 10-27-2005
Are you saying that this box is at 95% after adding swap? Smilie

1. You cannot use more than 100% of your virtual memory. If you try, some horrible error will occur. At the time this swapinfo was performed, the box was nearly out of virtual memory. Maybe that 1/2 GB left is enough, but if not, the box will be unable to create new processes.

2. Originally Unix required swap area for any virtual object. So you first 6 GB of swap would simply enable the use of your 6GB of physical memory. Any swap after that gives you additional space over the 6GB. Under this scheme, you could in theory swap everything out. You have the kernel parameter swapmem turned on (which is wise). So the kernel pretends that you have an extra swap area which is sized at 4.7 GB. This means that you no longer have enough real swap to completely empty memory. The kernel computes the size of this imaginary swap area as a fixed percentage of the physical memory size.

This box fully consumed physical memory some time ago. This does not affect stability but it can affect performance. To see how bad that is, you want to watch this box's scan rate. (sr in the vmstat display).
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Well, im getting it, but i have ONE question

Hay everyone, i would like to take this opportunity to thank all of you who helped me make the decision to get a linux distro. As a newbie, Im defininately considering buying Mandrake Linux... I went to the site and phew..... 2300 applications, i think ill have a good time. But i do have a... (5 Replies)
Discussion started by: LolapaloL
5 Replies

2. UNIX for Dummies Questions & Answers

Vi Question

In Vi, if I have a list of text, and i want to add a semi-colon to the end of each line, does anyone know how to do this? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

3. HP-UX

pstat call to get "swapinfo -at"

Hi, The swapinfo -at command gives the below information. TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2 localfs 2048000 0 2048000 0% 2048000 0 1 /data/paging reserve - ... (1 Reply)
Discussion started by: rajeshvadh
1 Replies

4. Shell Programming and Scripting

question

how do i write a script that'll open what i entered and scan it for a certain line of text. for example, i enter a filename (that exists) and in that file i want to scan a certain word that'll show how much of that word appears throughout the file. (2 Replies)
Discussion started by: mrhenry
2 Replies

5. UNIX for Dummies Questions & Answers

Question

I need to write a script file that will tell me the largest number in a group of numbers. ANy help is greatly appreciated (2 Replies)
Discussion started by: twan
2 Replies

6. Shell Programming and Scripting

Help with Swapinfo automation Alert script

I am new to unix scripting (HP-UX) and need to write a script for checking memory usage. I am using "ipcs -ma" and using "awk" to select specific colums and redirecting output to variable. /usr/bin/ipcs -ma | awk '{ print $5,$10,$12}' > $TMP_FILE exec < $TMP_FILE while read line; do ... (1 Reply)
Discussion started by: JamesBond007
1 Replies

7. UNIX for Dummies Questions & Answers

Help me these Question??

1. How the Unix system identify the Other User to access for file permission? 2. What command we use to convert the extension of a file name? 3. What command use to convert other editing file to Unix based text file? Please answer of these Question???Its necessary for me?? (3 Replies)
Discussion started by: pradipta_pks
3 Replies

8. Programming

C++ little question

Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are equal. Here is what I wrote: #include <iostream>... (11 Replies)
Discussion started by: faizlo
11 Replies

9. Shell Programming and Scripting

A question

Hi, I'm new to unix and got struck here.Can any one help me out.My question is .. is the command if ; then echo "do some stuff" fi correct? Thanks in advance abhijeet (18 Replies)
Discussion started by: Abhijeet_Atti
18 Replies
PSTAT(8)						    BSD System Manager's Manual 						  PSTAT(8)

NAME
pstat, swapinfo -- display system data structures SYNOPSIS
pstat [-Tfghkmnst] [-M core [-N system]] swapinfo [-ghkm] [-M core [-N system]] DESCRIPTION
The pstat utility displays open file entry, swap space utilization, terminal state, and vnode data structures. If invoked as swapinfo the -s option is implied, and only the -k, -m, -g, and -h options are legal. If the -M option is not specified, information is obtained from the currently running kernel via the sysctl(3) interface. Otherwise, infor- mation is read from the specified core file, using the name list from the specified kernel image (or from the default image). The following options are available: -n Print devices out by major/minor instead of name. -h ``Human-readable'' output. Use unit suffixes when printing swap partition sizes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte. -k Print sizes in kilobytes, regardless of the setting of the BLOCKSIZE environment variable. -m Print sizes in megabytes, regardless of the setting of the BLOCKSIZE environment variable. -g Print sizes in gigabytes, regardless of the setting of the BLOCKSIZE environment variable. -T Print the number of used and free slots in several system tables. This is useful for checking to see how large system tables have become if the system is under heavy load. -f Print the open file table with these headings: LOC The core location of this table entry. TYPE The type of object the file table entry points to. FLG Miscellaneous state variables encoded thus: R open for reading W open for writing A open for appending I signal pgrp when data ready CNT Number of processes that know this open file. MSG Number of messages outstanding for this file. DATA The location of the vnode table entry or socket structure for this file. OFFSET The file offset (see lseek(2)). -s Print information about swap space usage on all the swap areas compiled into the kernel. The first column is the device name of the partition. The next column is the total space available in the partition. The Used column indicates the total blocks used so far; the Available column indicates how much space is remaining on each partition. The Capacity reports the percentage of space used. If more than one partition is configured into the system, totals for all of the statistics will be reported in the final line of the report. -t Print table for terminals with these headings: LINE Device name. INQ Number of characters that can be stored in the input queue. CAN Number of characters in the input queue which can be read. LIN Number of characters in the input queue which cannot be read yet. LOW Low water mark for input. OUTQ Number of characters that can be stored in the output queue. USE Number of bytes in the output queue. LOW Low water mark for output. COL Calculated column position of terminal. SESS Process ID of the session leader. PGID Process group for which this is the controlling terminal. STATE Miscellaneous state variables encoded thus: I init/lock-state device nodes present C callout device nodes present O opened c console in use G gone B busy in open(2) Y send SIGIO for input events L next character is literal H high watermark reached X open for exclusive use S output stopped (ixon flow control) l block mode input routine in use Z connection lost s i/o being snooped b busy in read(2) or write(2) The 'i' and 'o' characters refer to the previous character, to differentiate between input and output. -M Extract values associated with the name list from the specified core. -N If -M is also specified, extract the name list from the specified system instead of the default, which is the kernel image the system has booted from. SEE ALSO
ps(1), systat(1), stat(2), fs(5), iostat(8), vmstat(8) K. Thompson, UNIX Implementation. HISTORY
The pstat utility appeared in 4.0BSD. BUGS
Does not understand NFS swap servers. BSD
October 11, 2014 BSD
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy