summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2014-01-10 17:56:23 +0000
committerasomers <asomers@FreeBSD.org>2014-01-10 17:56:23 +0000
commit6b686ee50aa7ef91e77ead42af6e89e77fd7057a (patch)
tree5efa0f91318ad95fd9be26211f31adfd05c37878 /etc
parentd1a85fc0d902ec64935b883e4d168a9150ef7822 (diff)
downloadFreeBSD-src-6b686ee50aa7ef91e77ead42af6e89e77fd7057a.zip
FreeBSD-src-6b686ee50aa7ef91e77ead42af6e89e77fd7057a.tar.gz
MFC 259339
sbin/devd/devd.cc Increase the size of devd's client socket's send buffer from the default (8k) to 128k. This prevents clients from getting POLLHUPped during event storms. For example, during zpool creation, the kernel emits a resource.fs.zfs.statechange event for every vdev in the pool. A 128k buffer is large enough to hold the statechange events for a pool with nearly 800 drives. MFC 259362 sbin/devd/devd.cc Promoting the SIGINFO handler's log message from LOG_INFO to LOG_NOTICE, and promoting the "Processing event ..." message from LOG_DEBUG to LOG_INFO. Setting the logfile to LOG_NOTICE with this change will have the same result as setting it to LOG_INFO without this change. Setting it to LOG_INFO with this change will include the useful "Processing event ..." messages that were previously at LOG_DEBUG, without including useless messages like "Pushing table". The intent of this change is that one can log "Processing event ..." without logging "Pushing table" and related messages that are sent for every event. The number of lines actually logged is reduced by about 75% by making this change and setting syslog to LOG_INFO vs setting syslog to LOG_DEBUG. etc/syslog.conf Changing the recommended loglevel to notice instead of info.
Diffstat (limited to 'etc')
-rw-r--r--etc/syslog.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/syslog.conf b/etc/syslog.conf
index 702bd66..e65db53 100644
--- a/etc/syslog.conf
+++ b/etc/syslog.conf
@@ -30,7 +30,7 @@ cron.* /var/log/cron
# news.notice /var/log/news/news.notice
# Uncomment this if you wish to see messages produced by devd
# !devd
-# *.>=info /var/log/devd.log
+# *.>=notice /var/log/devd.log
!ppp
*.* /var/log/ppp.log
!*
OpenPOWER on IntegriCloud