Summary: Running out of space in /tmp - (with one puzzle question at the end of this summary)

2007-12-24 21:49:00

Thanks for the super fast replies. 16 response in 20 minutes.

Here's the summary:
Reason for the problem: There is some run away process that eats up all the
memory. I didn't find out which process before I reboot, I'll keep an eye
on it in the future.

Two ways to solve the problme without reboot:
1. use the swap command.
swap -l ->to show my swap slice.
swap -a /dev/dsk/c0t0d0s1 -> to add my swap slice

2. use mkfile then swap like this:
mkfile 500m /opt/swapfile
swap -a /opt/swapfile
(dont forget to delete it after reboot)

Afterthoughts:
my df -lk still looks weird.
here's my `swap -l` output:
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 1052144 1052144

but my df -k looks like this:

/dev/dsk/c0t0d0s0 490097 79444 361644 19% /
/dev/dsk/c0t0d0s5 3579989 843419 2700771 24% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c0t0d0s4 482824 263233 171309 61% /var
swap 1010792 8 1010784 1% /var/run
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
swap 1010792 8 1010784 1% /tmp
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/dev/dsk/c0t0d0s6 3579989 2493988 1050202 71% /opt

I only have 513MB assigned for swap, and 640MB of RAM, why would I have two
swap spaces mounted on two place, /var/run and /tmp? Can someone tell me
when does /var/run get mounted? I dont have that entry in my /etc/vfstab.

thanx for the replies
Mark

original post:
--------------------
Hi, I have a urgent problem. My tmp space is running out. But it looks
like the server forgot to mount the correct swap slice. How can I change
this without reboot?

thank you
Mark

here's the info:
df -k:
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 490097 79588 361500 19% /
/dev/dsk/c0t0d0s5 3579989 858488 2685702 25% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c0t0d0s4 482824 295003 139539 68% /var
swap 16392 8 16384 1% /var/run
swap 16784 400 16384 3% /tmp
/dev/dsk/c0t0d0s6 3579989 2462175 1082015 70% /opt

/etc/vfstab:
#device device mount FS fsck mount
mount
#to mount to fsck point type pass at boot
options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no
-
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /usr ufs 1 no
-
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /var ufs 1 no
-
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /opt ufs 2 yes
-
swap - /tmp tmpfs - yes -
_______________________________________________
codeprof mailing list
codeprof at codeprof.com
http://www.codeprof.com/execute/ask/?codeinfoid=10569

Comments

Got something to say?

You must be logged in to post a comment.