solaris swap reservations problem

From: Max Levine (maxpil@gmail.com)
Date: Tue Apr 24 2007 - 13:47:45 EDT


 Hi,

i have a few servers running apache with the following configuration:

V240
4gb ram
3.7 gb virtual swap (1gb disk backed + 2.7 ram)

running:

Solaris 8 HW 12/02 s28s_hw1wos_06a SPARC
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Assembled 12 December 2002

kernel patch:

117350-25

several times a day the servers end up with all of virtual swap reserved,
and need to have apache restarted, after this the swap reservations are
released.

only a few hundred MBs of swap is actually allocated, but all the virtual
swap is reserved, and there is still plenty of physical memory available.
what could be the cause of this? more debug output at the time this happens
is below. any ideas?

thanks,
Max

prstat

 NPROC USERNAME SIZE RSS MEMORY TIME
CPU
 249 nobody 5346M 1142M 29% 0:00.00 0.8%
  41 root 112M 66M 1.6% 0:00.49 0.7%
   1 orca 13M 13M 0.3% 0:01.34 0.0%
   1 qmailq 984K 576K 0.0% 0:00.00 0.0%
   1 qmailr 1016K 696K 0.0% 0:00.00 0.0%
   2 qmaill 2000K 1200K 0.0% 0:00.00 0.0%
   1 qmails 1080K 672K 0.0% 0:00.00 0.0%
   1 daemon 2560K 1752K 0.0% 0:00.00 0.0%
Total: 297 processes, 862 lwps, load averages: 0.77, 0.73, 0.47

 vmstat -p 3 3

   memory page executable anonymous
filesystem
 swap free re mf fr de sr epi epo epf api apo apf fpi fpo
fpf
 2155000 3293552 15 119 0 0 0 0 0 0 0 0 0 11 0
0
 5792 3307824 2 8 0 0 0 0 0 0 0 0 0 10 0
0
 5776 3307744 0 4 0 0 0 0 0 0 0 0 0 0 0
0

 prtmem system memory summary

Total memory: 3929 Megabytes
Kernel Memory: 215 Megabytes
Application: 451 Megabytes
Executable & libs: 10 Megabytes
File Cache: 25 Megabytes
Free, file cache: 143 Megabytes
Free, free: 3085 Megabytes

 prtswap - displays swap summary

Swap Reservations:
--------------------------------------------------------------------------
Total Virtual Swap Configured: 4230MB =
RAM Swap Configured: 3202MB
Physical Swap Configured: + 1028MB

Total Virtual Swap Reserved Against: 4227MB =
RAM Swap Reserved Against: 3199MB
Physical Swap Reserved Against: + 1028MB

Total Virtual Swap Unresv. & Avail. for Reservation: 2MB =
Physical Swap Unresv. & Avail. for Reservations: 0MB
RAM Swap Unresv. & Avail. for Reservations: + 2MB

Swap Allocations: (Reserved and Phys pages allocated)
--------------------------------------------------------------------------
Total Virtual Swap Configured: 4230MB
Total Virtual Swap Allocated Against: 454MB

Physical Swap Utilization: (pages swapped out)
--------------------------------------------------------------------------
Physical Swap Free (should not be zero!): 1028MB =
Physical Swap Configured: 1028MB
Physical Swap Used (pages swapped out): - 0MB

 procs memory page disk faults cpu
 r b w swap free re mf pi po fr de sr s0 s1 -- -- in sy cs us sy
id
 0 0 0 2154904 3293552 15 119 11 0 0 0 0 3 0 0 0 425 1493 654 2 2
96
 0 0 0 5672 3307040 0 6 0 0 0 0 0 4 0 0 0 342 894 600 1 1
98
 0 0 0 5664 3306928 6 12 2 0 0 0 0 0 0 0 0 325 470 580 1 1
98
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:54 EDT