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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to