1847343 Members
2595 Online
110264 Solutions
New Discussion

Re: Swap

 
Vikas Dokhe
Advisor

Swap

Hi,

I have query about swap, we have create 4GB primary swap space.

In top command it is ok but in glance o/p Vm shows 1.52GB only. Can anyone tell me why the difference is ? (find the diff. below)

Model :-rp2470
Os ver :- HPUX 11.11

HPUX:/>top

System: HPUX Fri Feb 25 09:25:53 2005
Load averages: 0.00, 0.01, 0.07
216 processes: 180 sleeping, 36 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.00 0.0% 0.0% 0.2% 99.8% 0.0% 0.0% 0.0% 0.0%
1 0.00 0.2% 0.0% 0.0% 99.8% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.00 0.2% 0.0% 0.2% 99.6% 0.0% 0.0% 0.0% 0.0%

Memory: 1137504K (635076K) real, 1593484K (869816K) virtual, 1209568K free Page
# 1/20

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 35 root 152 20 1888K 1888K run 8:18 0.44 0.44 vxfsd
0 ? 11967 ccic01ux 152 20 65400K 5392K run 0:04 0.33 0.33 amqzlaa0
0 ? 1224 root 152 20 14824K 2348K run 0:02 0.22 0.21 dmisp
0 pts/ta 11540 hpccil 178 20 7088K 724K run 0:00 0.31 0.13 top
0 ? 2075 root 152 20 14384K 2320K run 0:04 0.12 0.12 opcctla
1 ? 28929 ccic01ux 152 24 26588K 1676K run 0:41 0.10 0.10 runmqlsr
0 ? 1234 root 152 20 13892K 1060K run 0:03 0.10 0.10 hpuxci
0 ? 2179 root 152 20 14560K 1136K run 0:04 0.10 0.10 samd
1 ? 14750 root -16 10 28160K 6500K run 14:01 0.10 0.10 midaemon

hpccil@ccila4:/>glance
Welcome to GlancePlus
ProcList CPU Rpt Mem Rpt Disk Rpt NextKeys SlctProc Help Exit
B3692A GlancePlus C.03.71.00 09:25:59 ccila4 9000/800 Current Avg High
--------------------------------------------------------------------------------

Initializing...


--------------------------------------------------------------------------------

ProcList CPU Rpt Mem Rpt Disk Rpt NextKeys SlctProc Help Exit
B3692A GlancePlus C.03.71.00 09:26:06 HPUX 9000/800 Current Avg High
--------------------------------------------------------------------------------
CPU Util S | 1% 2% 4%
Disk Util FV | 1% 4% 7%
Mem Util S SU UB B | 71% 71% 71%
Swap Util U UR R | 46% 46% 46%
--------------------------------------------------------------------------------
PROCESS LIST Users= 6
User CPU Util Cum Disk Thd
Process Name PID PPID Pri Name ( 200% max) CPU IO Rate RSS Cnt
--------------------------------------------------------------------------------
glance 11542 11524 154 hpccil 0.8/ 1.7 0.1 2.5/20.9 10.0mb 1
opcfwtmp 11544 11543 178 root 0.2/ 0.2 0.0 1.7/ 1.7 684kb 1
ora_ckpt_cc 5181 1 156 ccic01ux 0.0/ 0.0 18.6 1.1/ 0.9 17.3mb 1
ora_d001_cc 28754 1 154 oracle9i 0.0/ 0.0 0.3 0.0/ 0.0 26.6mb 1
iprcm04c.bi 15584 1 154 ccic01ux 0.0/ 0.0 2.2 0.0/ 0.0 37.3mb 1
iprcm01c.bi 15574 1 154 ccic01ux 0.0/ 0.0 2.6 0.0/ 0.0 38.1mb 1
iprcm02c.bi 15578 1 154 ccic01ux 0.0/ 0.0 2.7 0.0/ 0.0 38.1mb 1
aprcm02c.bi 16209 1 154 ccic01ux 0.0/ 0.0 5.2 0.0/ 0.0 43.8mb 1
aprcm01c.bi 16208 1 154 ccic01ux 0.0/ 0.0 5.8 0.0/ 0.0 47.4mb 1
ora_d000_cc 28752 1 154 oracle9i 0.0/ 0.0 0.3 0.0/ 0.0 26.6mb 1
ora_reco_cc 28748 1 156 oracle9i 0.0/ 0.0 0.1 0.0/ 0.0 26.2mb 1
Page 1 of 2
ProcList CPU Rpt Mem Rpt Disk Rpt NextKeys SlctProc Help Exit
B3692A GlancePlus C.03.71.00 09:26:35 ccila4 9000/800 Current Avg High
--------------------------------------------------------------------------------
CPU Util | 1% 1% 4%
Disk Util | 0% 1% 7%
Mem Util S SU UB B | 71% 71% 71%
Swap Util U UR R | 46% 46% 46%
--------------------------------------------------------------------------------
MEMORY REPORT Users= 6
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 0 704 0.0 20.0 90.0
Page In 0 364 0.0 10.3 44.4
Page Out 0 0 0.0 0.0 0.0
KB Paged In 0kb 464kb 0.0 13.1 354.2
KB Paged Out 0kb 0kb 0.0 0.0 0.0
Reactivations 0 0 0.0 0.0 0.0
Deactivations 0 0 0.0 0.0 0.0
KB Deactivated 0kb 0kb 0.0 0.0 0.0
VM Reads 0 33 0.0 0.9 3.4
VM Writes 0 2 0.0 0.0 0.3

Total VM : 1.52gb Sys Mem : 949.5mb User Mem: 1.13gb Phys Mem: 4.00gb
Active VM: 968.5mb Buf Cache: 819.2mb Free Mem: 1.15gb Page 1 of 1
ProcList CPU Rpt Mem Rpt Disk Rpt NextKeys SlctProc
4 REPLIES 4
Con O'Kelly
Honored Contributor

Re: Swap

Hi Vikas

Neither of the measurements you are looking at are a good indication of swap.

In glance use 'w' option to view swap information.
On the command line run:
# swapinfo -tam

Cheers
Con
Hoang Minh Tuan
Regular Advisor

Re: Swap

Vikas,

The way you give out the swap information of top and glance is not correct.
Use command :#swapinfo -ta and glance, after just press w to show swap information.
But note that, only compare the REAL swap (2 types of swap: swap and psuedo-swap)by adding first 2 rows because psuedo swap change time after time.

Cheers,
HMT
Bus wait at bus station, Work wait at my work station
Paul_481
Respected Contributor

Re: Swap

Hi,

Use swapinfo command to check your swap.
#swapinfo

man swapinfo for details.

Regards,
Paul
Vikas Dokhe
Advisor

Re: Swap

Thanks alot, my doubt has been cleared glance, after press w it show correct swap information.
it works fine. Sorry, for the delay.

Thanks again.