The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pstat call to get "swapinfo -at" rajeshvadh HP-UX 1 05-18-2007 01:10 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2005
Registered User
 

Join Date: Oct 2005
Posts: 5
swapinfo question

Hi All,

Here is output of swapinfo -t from a server which has been giving

TNS-00519: Operating system resource quota exceeded
HPUX Error: 12: Not enough space

The server has been stable for 7 days now since some more swap space was added.

2 questions

1. Will the above error occur again when the total use hits 100% currently at 95%

2. Why does the memory only state 4.7GB where the server has 6GB of physical memory.

Thanks for any info

Mat
Code:
$ swapinfo -t
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     2146304  469820 1676484   22%       0       -    1  /dev/vg00/lvol2
dev     1687552       0 1687552    0%       0       -    2  /dev/vg00/lvswap1
dev     1687552       0 1687552    0%       0       -    2  /dev/vg00/lvswap2
reserve       - 4836664 -4836664
memory  4786844 4463044  323800   93%
total   10308252 9769528  538724   95%       -       0    -
.

Last edited by Perderabo; 10-27-2005 at 06:26 AM. Reason: Add code tags for readability
Reply With Quote
Forum Sponsor
  #2  
Old 10-27-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Are you saying that this box is at 95% after adding swap?

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).
Reply With Quote
  #3  
Old 10-27-2005
Registered User
 

Join Date: Oct 2005
Posts: 5
Thanks very much for the info.

Cheers

Mat
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0