I noticed (today) that the the allocation for swap is changing (not fixed) overtime, and causing the system to crash (/tmp full). Everytime, I had to recycle the server.
The mahicne is Sun Ultra running Solaris 2.5.1.
The questions are: What is causing this? Is this normal. And the best part is, how to fix it.
At the moment, I had to do a quick fix, creating another swapfile round 256MB and add it to swap, so that a have longer time between recycling (sigh..).
Some info. (more if required)).
Disk Layout.
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 242 180.35MB (243/0/0) 369360
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 2732 1.98GB (2733/0/0) 4154160
3 unassigned wm 0 0 (0/0/0) 0
4 usr wm 243 - 2386 1.55GB (2144/0/0) 3258880
5 unassigned wm 0 0 (0/0/0) 0
6 swap wu 2387 - 2731 256.05MB (345/0/0) 524400
7 unassigned wm 0 0 (0/0/0) 0
# showrev
Hostname: myserver
Hostid: somehostid
Release: 5.5.1
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: domain.com
Kernel version: SunOS 5.5.1 Generic 103640-27 March 1999
/etc/vfstab
swap - /tmp tmpfs - yes -
/opt/swap/swap1 - - swap - no -
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s6 32,6 16 524384 524384
/opt/swap/swap1 - 16 524272 524272
Swapfile reading over time (10 seconds interval).
Filesystem kbytes used avail capacity Mounted on
swap 695144 8 695136 1% /tmp
swap 695096 8 695088 1% /tmp
swap 695776 8 695768 1% /tmp
swap 691688 8 691680 1% /tmp
swap 693968 8 693960 1% /tmp
swap 696552 8 696544 1% /tmp
swap 699008 8 699000 1% /tmp
swap 698080 8 698072 1% /tmp
swap 700496 8 700488 1% /tmp
swap 698240 8 698232 1% /tmp
swap 699840 8 699832 1% /tmp
swap 698376 8 698368 1% /tmp
swap 701208 8 701200 1% /tmp
swap 701288 8 701280 1% /tmp
swap 700264 8 700256 1% /tmp
swap 698704 8 698696 1% /tmp
swap 697184 8 697176 1% /tmp
swap 695184 8 695176 1% /tmp
swap 686656 8 686648 1% /tmp
I would appreciate any help.
Samri.
/usr/ucb/ps -aux
periodically and redirect the output to a file. This should help you identify which processes are using up the memory. Look at the %MEM and SZ fields.
Hope this is useful.