Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2016 21:42:36 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r297724 - stable/10/usr.sbin/syslogd
Message-ID:  <201604082142.u38Lgadc080518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Fri Apr  8 21:42:35 2016
New Revision: 297724
URL: https://svnweb.freebsd.org/changeset/base/297724

Log:
  MFC r294924
  
  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.

Modified:
  stable/10/usr.sbin/syslogd/syslogd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/syslogd/syslogd.c
==============================================================================
--- stable/10/usr.sbin/syslogd/syslogd.c	Fri Apr  8 20:43:50 2016	(r297723)
+++ stable/10/usr.sbin/syslogd/syslogd.c	Fri Apr  8 21:42:35 2016	(r297724)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604082142.u38Lgadc080518>