From owner-freebsd-current@FreeBSD.ORG Fri Aug 17 09:07:34 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6553A16A417 for ; Fri, 17 Aug 2007 09:07:34 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id A15CB13C491 for ; Fri, 17 Aug 2007 09:07:32 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 69458 invoked from network); 17 Aug 2007 08:58:39 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 17 Aug 2007 08:58:39 -0000 Message-ID: <46C56558.1090901@freebsd.org> Date: Fri, 17 Aug 2007 11:07:36 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Mike Jakubik References: <19693.209.47.38.69.1187277248.squirrel@wettoast.dyndns.org> <20070816163405.GG988@void.codelabs.ru> <20070816164133.GH988@void.codelabs.ru> <46C4BBE7.5000908@rogers.com> In-Reply-To: <46C4BBE7.5000908@rogers.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: TCP info spamming the logs and dmesg X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2007 09:07:34 -0000 Mike Jakubik wrote: > Eygene Ryabinkin wrote: >> Andre, good day. >> >> Thu, Aug 16, 2007 at 08:34:05PM +0400, Eygene Ryabinkin wrote: >> >>> Thu, Aug 16, 2007 at 11:14:08AM -0400, Mike Jakubik wrote: >>> >>>> Is there any way to disable these, or have them log to a separate log? >>>> >> >> I had seen about four such questions for the last two weeks, so maybe >> it is time to patch tcp(4) manpage? The following is the very rough >> patch for it: >> --- tcp.4.orig 2007-08-16 20:35:06.000000000 +0400 >> +++ tcp.4 2007-08-16 20:37:33.000000000 +0400 >> @@ -259,6 +259,11 @@ >> Maximum >> .Tn TCP >> receive window. >> +.It Va log_debug >> +Enable (1) or disable (0) >> +.Tn TCP >> +stack debugging messages. >> +Default is 1, i.e., the logging is enabled. >> .It Va log_in_vain >> Log any connection attempts to ports where there is not a socket >> accepting connections. >> > > > That sounds like a good idea, perhaps it would also be a good idea to > set the default to 0? Yes, that is planned for the release together with all the other performance affecting debugging features in the kernel (WITNESS, INVARIANTS, etc). I have updates to the tcp.4 and syncache.4 manpage in the wings to document all changes and new sysctls. -- Andre