Operating System - HP-UX
1833877 Members
1675 Online
110063 Solutions
New Discussion

Swapping while memory available

 
Mikael Turvall
New Member

Swapping while memory available

I have HPUX 11.23 with 8GB RAM and 20GB of device swap (2 devices)

The server has the system and a couple of additional process on it as a baseline wich takes approx 2GB of memory.

Then I have a batch process that runs a couple of times a day and takes more than 4 GB of memory.

However even though I have allmost 6GB ram free it seems to use a lot of swap. How can that be??

What is reserve memory??

This of course causes a VERY slow processing, and VERY low cpu utilization.

my swapinfo -tam looks like this:

bash-3.00# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 16768 1563 15205 9% 0 - 0 /dev/vg00/swap
reserve - 3076 -3076
memory 8180 2067 6113 25%
total 29044 6706 22338 23% - 0 -


Thank you
9 REPLIES 9
HGN
Honored Contributor

Re: Swapping while memory available

Hi

You can check this thread and this might be useful
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=961331

Rgds

HGN
SupraTeam_1
Regular Advisor

Re: Swapping while memory available

Hi,
You must use glance if you to exactly see swap.
Mikael Turvall
New Member

Re: Swapping while memory available

How can I start glance?
I have tried glance, gpm. What is the path to glance? maybe I don't have it in my path.
Bharat Katkar
Honored Contributor

Re: Swapping while memory available

Glance is a purchased product but you can use the evaluation copy that comes with the CD kit.
You will have to install it first and then use it for 60 days, later it will be expired.

Regards,
You need to know a lot to actually know how little you know
SupraTeam_1
Regular Advisor

Re: Swapping while memory available

/opt/perf/bin/gpm
Mikael Turvall
New Member

Re: Swapping while memory available

Ok,

I don't have a directory called
/opt/perf

I guess I'll have to ask my hardware guys for the "CD-kit"
A. Clay Stephenson
Acclaimed Contributor

Re: Swapping while memory available

The "memory" line in swapinfo doesn't mean what you think it does; in fact, in your case, it really shouldn't appear in the swapinfo display at all. You should disable pseudoswap (set swapmem_on=0) because it is useless to enable pseudoswap in a system that has more swap than physical memory. The device swap is being used so you are in fact paging out. You need to run vmstat and examine the pageout (po) column. If that value is > 10-15 (ideally 0) for significant periods of time then you need to add more memory or reduce the memory footprint of your processes.
If it ain't broke, I can fix that.
Mikael Turvall
New Member

Re: Swapping while memory available

Can I change lotsfree or desfree ?
In that case. How do you do that?
A. Clay Stephenson
Acclaimed Contributor

Re: Swapping while memory available

Long before you look at lotsfree and desfree, you need to examine dbc_max_pct and dbc_min_pct. If you are using the default value of 50% for dbc_max_pct then that value is far too large. On a box with 8GB of memory, I would set dbc_max_pct to no more than 15 and dbc_min_pct to about 5 and set swapmem_on=0 at the same time.
If it ain't broke, I can fix that.