On Sun, Jan 15, 2012 at 09:38:53PM +0000, T o n g wrote:
> On Thu, 12 Jan 2012 11:51:19 +0200, Andrei Popescu wrote:
> 
> >> Moreover, I'll throw in /var/log as well, because I don't care about
> >> the logs either.
> > 
> > You might benefit from putting it on tmpfs then ;)
> 
> That brings up an interesting topic. -- No, I didn't put /var/log on 
> tmpfs, but /tmp, /var/run & /var/lock instead, because I was worrying 
> about wasting tmpfs with big logs, since my box might be up for months. 
> 
> I think staled tmpfs file might eventually be swapped out of ram to HD to 
> clear up space. Is that so? 

Yes.  But if you write a *lot* of logfiles, this could be detrimental
to performance.  OTOH, should do less frequent writes than it would to
a normal disk until it starts to flush pages out.

> Is it a good idea to put chunky /var/log on tmpfs?

Make sure you consider what will happen when it's filled to capacity.
If the tmpfs size (of all tmpfses) exceed your RAM+swap, the machine
will lock hard.  So make sure you mount with an appropriate size=
parameter so the kernel won't run out of memory pages.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120115222851.go9...@codelibre.net

Reply via email to