brent timothy saner on 19 Mar 2008 19:56:04 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Using 'noatime' in fstab?


David Coulson wrote:
> brent timothy saner wrote:
>> tmpfs	/var/tmp	none	defaults	0	0
>> tmpfs	/var/log	none	defaults	0	0
>> tmpfs	/tmp		none	defaults	0	0
> As default a tmpfs mount uses 50% of your physical memory - I generally 
> use the 'size=' option to limit that, otherwise two mounts have the 
> potential to consume it all (tmpfs can end up in swap, which is better 
> than killing the box, but it hurts performance).
> 
> Why put /var/log on tmpfs? Surely having logs after a reboot or failure 
> is useful? If you don't want logs locally, have syslog send them 
> somewhere else, but I don't see any point in putting them on a tmpfs 
> filesystem.

david-
excellent point about it using 50% of physmem.

my reasoning is it being CF. logs are being CONSTANTLY written to
(/var/log/messages, for instance, makes a tick every 20 minutes. i've
seen these ticks being marked even 5 minutes apart!). syslog is QUITE
active. and of course if you have any net monitoring, or proxying, or
daemons... well, you get the picture. it's one of those "out of sight,
out of mind" things but log files really can eat up a lot of write time-
which is exactly what you want to avoid with CF- because of the dynamic
nature of logging.

a nice compromise is to run syslog=ng and point it at a logging server-
that way you still get the logs, and you don't have to write it to the
CF. of course, that's not without the inconvenience of making sure it's
always got a connection to the logging server available.


-- 
Brent Saner
215.264.0112(cell)
http://www.thenotebookarmy.org

Bill Gates is to hacking as Sid Vicious was to the Sex Pistols:
no talent, everyone hates him, and he's just in it for the fame and money.

GPG INFO:
pub   1024D/832D950A 2008-01-26
uid                  Brent Timothy Saner <brent.saner@gmail.com>
uid                  Brent Timothy Saner (ACE Technology Group,
www.acetechgroup.com) <sanerb@acetechgroup.com>
sub   4096g/1C18F61D 2008-01-26
(pgp.mit.edu)
FINGERPRINT:
91EC 3B91 17E3 84E8 662A
9911 F2ED 9987 832D 950A

Attachment: signature.asc
Description: OpenPGP digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug