[361] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: /tmp fills up all the time

daemon@ATHENA.MIT.EDU (Yoav Yerushalmi)
Sun Oct 15 23:47:28 1995

To: Gunnar W Hoest <gwhoest@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Sun, 15 Oct 1995 22:58:29 EDT."
             <199510160258.WAA18007@no6-1.MIT.EDU> 
Date: Sun, 15 Oct 1995 23:47:12 EDT
From: Yoav Yerushalmi <yoav@MIT.EDU>

Hi..
the problem is that the default setup uses the mfs system
for tmp, but only gives it about 2 megs. (mfs is the memory
file system, which means that /tmp is actually stored in
swap, thereby optimizing it considerably for short-term files,
which is what tmp is supposed to be for).

Anyway, to fix it, check how much swap you have:

/usr/sbin/pstat -sk

(the first number is how many megs you have for swap). Decide
how much of that you want to go for /tmp (I have 51 megs of swap
and 39 megs of tmp)

then, edit /etc/fstab. look for a line which has /tmp with mfs
(probably labeled swap). There should be a -s[number] entry there.
edit that to be of a size you like better. Save the file, and
after your next reboot, you should have more space in tmp
(to check, df -k)

-------------------------------------------------------
|  Yoav Yerushalmi         |  My opinions are mine..  |
|  M.I.T student at large  |   so back off!!          |
|  http://www.mit.edu:8001/people/yoav/homepage.html  |
-------------------------------------------------------


home help back first fref pref prev next nref lref last post