[time-nuts] Best OS for small time server

Chris Kuethe chris.kuethe at gmail.com
Sat Feb 23 17:43:29 EST 2008


On Sat, Feb 23, 2008 at 2:29 PM, Matthew Smith <matt at smiffytech.com> wrote:
>  I may still use an old laptop hard disc that I have kicking around
>  rather than struggling with the Flash route.  I've never used OpenBSD
>  before nor have I tried running a system of Flash, so I see a regular
>  hard disc install as the path of least resistance.  Probably stick the
>  disc in a desktop machine, do the install, then transfer to the SBC and
>  carry on via telnet or SSH.  (I don't have a keyboard adapter for the
>  SBC, nor have I built the serial adapters yet.)

I can think of two options for minimizing log writes to disk: either

move the contents of /var/log to /var/log.proto and mount a ramdisk on /var/log
        swap /var/log mfs rw,-s=65000,nodev,noatime,nosuid,-P=/var/log.proto 0 0

or use syslogd's circular memory buffer and pull the logs every so
often with syslogc

the -P flag allows you to prepopulate a ramdisk with contents from an
prototype directory. In this case you'd have all of the logfiles, but
empty, otherwise syslogd will be unable to log since it doesn't create
logfiles, it just appends them. Don't worry about "swap" - that's just
a dummy placeholder to make the call to mount_mfs line up properly.

CK

-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?



More information about the time-nuts mailing list