svn commit: r294924 - head/usr.sbin/syslogd
Alan Somers
asomers at FreeBSD.org
Wed Jan 27 16:17:17 UTC 2016
Author: asomers
Date: Wed Jan 27 16:17:15 2016
New Revision: 294924
URL: https://svnweb.freebsd.org/changeset/base/294924
Log:
syslogd: Enable repeated line compression for lines of any length.
Enable repeated line compression for lines of any length, instead of only
short lines. AFAICT repeated line compression was limited to short lines as
a RAM optimization, which made sense when karels added it in 1988, but no
longer. The penalty is a paltry 904B of RAM per file logged.
Reviewed by: rpaulo
MFC after: 32 days
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4475
Modified:
head/usr.sbin/syslogd/syslogd.c
Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c Wed Jan 27 16:13:10 2016 (r294923)
+++ head/usr.sbin/syslogd/syslogd.c Wed Jan 27 16:17:15 2016 (r294924)
@@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$");
*/
#define MAXLINE 1024 /* maximum line length */
-#define MAXSVLINE 120 /* maximum saved line length */
+#define MAXSVLINE MAXLINE /* maximum saved line length */
#define DEFUPRI (LOG_USER|LOG_NOTICE)
#define DEFSPRI (LOG_KERN|LOG_CRIT)
#define TIMERINTVL 30 /* interval for checking flush, mark */
More information about the svn-src-all
mailing list