From nobody@FreeBSD.org  Fri Sep  9 09:55:14 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4221F16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Sep 2005 09:55:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0756B43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Sep 2005 09:55:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j899tDL8062554
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Sep 2005 09:55:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j899tDGP062551;
	Fri, 9 Sep 2005 09:55:13 GMT
	(envelope-from nobody)
Message-Id: <200509090955.j899tDGP062551@www.freebsd.org>
Date: Fri, 9 Sep 2005 09:55:13 GMT
From: Kurt Abahar <xverify@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: strange sysctl output
X-Send-Pr-Version: www-2.3

>Number:         85902
>Category:       kern
>Synopsis:       strange sysctl output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 09 10:00:35 GMT 2005
>Closed-Date:    Sat Jun 23 16:05:40 GMT 2007
>Last-Modified:  Sat Jun 23 16:05:40 GMT 2007
>Originator:     Kurt Abahar
>Release:        4.11-RELENG
>Organization:
>Environment:
FreeBSD XX.XX.XX 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Aug 18 13:13:40 EDT 2005     XX@XX.XX.XX:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
      sysctl returns strange unrelated variables after changing kern.maxfiles and kern.maxfilesperproc and rebooting

here's a sample:
# sysctl -a | grep files
kern.maxfiles: 16384
kern.maxfilesperproc: 12288
kern.openfiles: 14016
<118>kern.maxfiles:
<118>kern.maxfilesperproc:
<118>kern.maxfiles:
<118>kern.maxfilesperproc:
<118>kern.maxfiles:
<118>kern.maxfilesperproc:
<118>kern.maxfiles:
<118>kern.maxfilesperproc:
p1003_1b.mapped_files: 0
>How-To-Repeat:
      put the values i did in /etc/sysctl.conf and then reboot

then type sysctl -a |grep files
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Sat Jun 23 16:03:24 UTC 2007 
State-Changed-Why:  

This is not actually a bug.  By grepping the output of sysctl -a 
you are also seeing fragments of the sysctl kern.msgbuf, which 
contain the Kernel Message Buffer.  This includes the lines printed 
when the sysctl is initially set during boot. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=85902 
>Unformatted:
