- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap utilization is high
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
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
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-14-2004 02:22 AM
тАО06-14-2004 02:22 AM
swap utilization is high
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 613 -613
memory 4448 2905 1543 65%
total 5472 3518 1954 64% - 0 -
total 5472 3518 1954 64% - 0 -
The total of swap util seems to be 64%(so in glance), and 1024mb swap device is configured.
Here is the problem:
sometime, the system response time is slow, and sometime the ITO warning messages saying SWAP utilization reaches 90% high.
My questions are:
1. is there definition difference on swap util. between ITO and swapinfo command.
2. the swap space is configured too small? If it is too small, how come only 0% of device swap used since the system last time boot up?
The is the part troubling me most.
3. currently the total swap space is about 6gb (5gb pesuo memory + 1g device swap)which is 1:1 to physical memory. so, the swap spacw should be okay?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 02:31 AM
тАО06-14-2004 02:31 AM
Re: swap utilization is high
1) there are small calculation differences between the various utilities for showing swap.
2) Swap must be a minimum of half of RAM. It is generally set to between 1.5 and 2.0 times RAM. If analysis shows you need more than this, your system is being overloaded and adding swap will simply slow it down.
3) See my answer to item 2.
Summary: Swap is too small, based on my experience.
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-14-2004 02:49 AM
тАО06-14-2004 02:49 AM
Re: swap utilization is high
How come the usage of device swap is 0% if I don't have enough swap sapce configured? I would expect the system would also swap processes over to the device swap, if the space of pseudo memory is not large enough for swapping?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 02:57 AM
тАО06-14-2004 02:57 AM
Re: swap utilization is high
the swap seems to be very less(6 GB physical and 1GB swap) atleast make swap half of physical memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 03:01 AM
тАО06-14-2004 03:01 AM
Re: swap utilization is high
We have also more than 5gb pseudo memory swap space, the the total is equal to the 6g memory. Isn't?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 04:51 AM
тАО06-14-2004 04:51 AM
Re: swap utilization is high
In my case, I have >5gb psedo memory swap space, and 1gb device swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 04:56 AM
тАО06-14-2004 04:56 AM
Re: swap utilization is high
As long as you do not actually see the "dev" percentage go above 0, you are OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2004 04:59 AM
тАО06-14-2004 04:59 AM
Re: swap utilization is high
YOu seems right, but how come the system response time is slow? there are not too many cpu activities, and i/o is not too intenisive either.
Can anybody please tell me if pseudo memory swap is part of swap space? and should be counted as part of 2 times of physical memory
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 11:11 AM
тАО06-16-2004 11:11 AM
Re: swap utilization is high
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 01:46 PM
тАО06-16-2004 01:46 PM
Re: swap utilization is high
There are couple of things I would check if the system is responding slow. First the buffer cache. If it is set to 50% which is default and if it is all used, then the system might experience intermittent freezes. If it is at 50%, reduce it to around 5-10%. The other thing is to look for the network configuration. If it is on a 100MB network, make sure your lan card as well the network switch port are set to 100 Full Duplex - Auto Off.
May be there is some application process or something that is running intermettingly causing the swap to go upto 90%.
About your swap calculation, though you are running ok at this time, it is not a good idea to configure the device swap less than the size of memory. This is because, as the memory keeps getting locked, the used (or not available for reservation) column in the memory line will increase. At some point of time that may make the system to depend more and more on the device swap for reservation.
Also ensure that kernel parameters like nfile, nproc, ninode etc., are not configured very high than required.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 02:42 PM
тАО06-16-2004 02:42 PM
Re: swap utilization is high
1. Buffer cache settings is okay: 460mb among 6gm RAM.
2. It(system slow) happens very often, so it is not itermittent. 90% is based on ITO, but 64% total based on swapinfo -tam
3. network is fine.
4. parameter is okay, not error/complain about these kernel parameters.
MY questions is since device swap is used 0%, Do I really have to increase the device swap space, and why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 03:55 PM
тАО06-16-2004 03:55 PM
Re: swap utilization is high
If you swap space utlization is 0 and I don't think you need to increase it.You might be worried if you swap utilisation is 90% above.
my 2 cents.
regargs
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 02:28 AM
тАО06-17-2004 02:28 AM
Re: swap utilization is high
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 03:19 AM
тАО06-17-2004 03:19 AM
Re: swap utilization is high
thanks for your messages.
I believe what you are saying really got the point.
However, based on the result of swapinfo -tam, the device swap is just 0% used, so, can I conclude that I don't have the swap space pressure? I understand that if the process can not reserve the certain amount of swap space, it will not be launched, and an error message will come out. but in my case, since i don't see any error messages when the system is slow, so I can conclude the problem on this system is now swap space related.
Please advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 03:28 AM
тАО06-17-2004 03:28 AM
Re: swap utilization is high
There are two things to swap utilization. Utilization due to reservation and utilization due to paging. Second one is what you don't want and that's not happening on your system. But that doesn't mean you don't need swap space. Pseudoswap covers you for 75% of the swap. So, one would think that you need only 25% of the device swap. However, as the system is used, more and more pages may get locked into memory which will decrease the amount of memory available for reservation. So, at one point of time, depending on the memory usage, you may end up with insufficent swap for reservation as your device swap (which is static) that insures pseduoswap is low.
But that may not be a problem in your case.
I would ask as very basic question. When you said there were intermittent slow downs, are they related to the response to the commands or they really slowing down the system so that processing is delayed?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 04:26 AM
тАО06-17-2004 04:26 AM
Re: swap utilization is high
Allocated swap is "in use", and reserved has be specifically set aside for running program pages that have not yet been paged out. If you have no free swap, you can run any more programs, as they cannot reserve any space to which to page-out. So it is possible to have none or very little free swap, but to have never actually have used (allocated) any swap at all. Reserved swap hasn't been "used".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 04:30 AM
тАО06-17-2004 04:30 AM
Re: swap utilization is high
If you have no free swap, you can't run any more programs, as they cannot reserve any space to which to page-out.
Sorry, for the typo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 05:23 AM
тАО06-17-2004 05:23 AM
Re: swap utilization is high
Note that you may not actually run any programs are swapped out, instead, massive use of mempry mapped files may be causing the swap usage.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 08:10 AM
тАО06-17-2004 08:10 AM
Re: swap utilization is high
Sir,
What is the difference between slowing to the response to the commands and slowing so that processing is dealyed?
In my case, I'm sure it was slow to my commands, like bdf..etc.
I'm not so sure about if the process was delayed.
Also, it was not intermittent, it last for quite long time.
So, even though my device swap is 0%, there is still the possibility of lacking of device swap space, therefore, I should add more device swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 08:46 AM
тАО06-17-2004 08:46 AM
Re: swap utilization is high
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 01:03 PM
тАО06-17-2004 01:03 PM
Re: swap utilization is high
1) the time to press a key until a login prompt appears
2) the time to get a new prompt line in a shell by pressing return
3) delays between lines of a long listing
4) total login time after the password is given
5) time needed to complete a network intensive task such as ftp
6) application response and wallclock time
The first 3, if visibly delayed, usually indicate a high system overhead (sar -u 1) which will take some detailed work to locate the cause. The rest indicate a load but not necessarily unexpected in a busy system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 03:03 AM
тАО06-21-2004 03:03 AM
Re: swap utilization is high
I would ask as very basic question. When you said there were intermittent slow downs, are they related to the response to the commands or they really slowing down the system so that processing is delayed?
Answer: I'm sure the system was slow in responding commands ( including ls -l..)
But, I am not sure if they really slowing down the system, so that processing is delayed. What are differences between these two?
In my case, the used% is 0 on device swap, and also I don't see any error messages came up, so I don't think I have to increase the swap space. Because if I don't have enough swap space, and thefore it causes that applications could not be launched, I should then get the error messages complaning things like not able to launch applications.
Am I right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 03:10 AM
тАО06-21-2004 03:10 AM
Re: swap utilization is high
If this box is a Database server (Oracle) and also has some middleware application on it (ie. uses a lot of Java) .. then your SWAP usage may very well be usage based on UTILIZATION -- not paging.
I would urge you to add another swap device with a higher priority than your existing 1GB swap. Also, you may consider adjusting your dbc_max_pct so your buffer cache allocation never exceeds 800Mb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 03:17 AM
тАО06-21-2004 03:17 AM
Re: swap utilization is high
If there is an NFS server not responding or slow to respond, then you would see your ls taking long time along with bdf. It doesn't mean the entire system is processing slow.
Can you post the outputs of the following commmands when you see the response as slow?.
sar 2 5
sar -d 2 5
sar -q 2 5
uptime
sar -v 2 5
vmstat 2 5
kmtune
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 07:24 AM
тАО06-23-2004 07:24 AM
Re: swap utilization is high
Sorry for bringing up the issue again.
Here is the result of swapinfo -tam from one of our servers we have in the shop, with phsical 4gb memory. The total swap util is very high, but i don't feel any performance problem while the swap util was hitting so high. And also at this moment, the device swap (only 1gb configured )is 0%.
My questions is, Should increase the size of the device swap?
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 0 1024 0% 0 - 1 /dev/vg00/lvol2
reserve - 1024 -1024
memory 2973 2082 891 98%
total 3997 3106 891 98% - 0 -