SV: DHCPD performance -- solid-state disks?

Fredrik Björk fredrik.bjork at
Fri Sep 9 15:44:31 UTC 2011


If disks really are the problem, logging to syslog may be the real issue. Try directing the dhcp logs to a special file and not sync to disk too often.

In dhcpd.conf:

log-facility local0

In syslog.conf:

local0.*   -/var/log/dhcplog

The minus before the filename tells the syslog server not to write to disk too often. This saves writes a lot on busy systems.

>From the syslog.conf man page:
"You  may  prefix each entry with the minus '-' sign to omit syncing the file after every logging.  Note that
you might lose information if the system crashes right behind a write attempt.  Nevertheless this  might  give
you back some performance, especially if you run programs that use logging in a very verbose manner."

Another way could be to direct syslogs to a different server so you don't need the disk for syslogs at all:

local0.*   @

Then again, a ramdisk is a good choise too, both for logging and leases.


More information about the dhcp-users mailing list