Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jun 1997 16:45:37 -0700
From:      David Greenman <dg@root.com>
To:        ade@demon.net
Cc:        freebsd-current@freebsd.org
Subject:   Re: 3.0-current issues (build 97-06-28) 
Message-ID:  <199706282345.QAA02926@implode.root.com>
In-Reply-To: Your message of "Sat, 28 Jun 1997 23:47:35 BST." <E0wi6HH-00006Q-00@aleste.lovett.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>And now, for another query.
>
>With the current -current, pstat -T falls over as follows:
>
>	aleste 101# pstat -T
>	179/4136 files
>	pstat: sysctl: KERN_VNODE: No such file or directory
>
>with a little bit of tracking down, this would appear to be because
>of the following code in sys/kern/vfs_subr.c, line 1858:
>
>----------------------------------------------------------------------
>/* 
> * XXX 
> * Exporting the vnode list on large systems causes them to crash.
> * Exporting the vnode list on medium systems causes sysctl to coredump.
> */
>#if 0
>SYSCTL_PROC(_kern, KERN_VNODE, vnode, CTLTYPE_OPAQUE|CTLFLAG_RD,
>        0, 0, sysctl_vnode, "S,vnode", "");
>#endif
>----------------------------------------------------------------------
>
>This isn't really a big problem for me, since I only use pstat -T
>as a way of tracking swap file usage, and I can use swapinfo instead,

   Huh? That should be "pstat -s" to look at swap usage.

>but I'm a little confused as to why something that *seemed* to work
>flawlessy in 2.2.2-RELEASE has been commented out in 3.0-CURRENT.

   I was the one who commented it out. It caused sysctl on systems the size of
yours to coredump, and caused systems larger than yours to panic. The vnode
table on wcarchive, for instance, is 45000 entries large and the mechanism
that is used to copy all of the many megabytes of kernel data structures out
to the user process simply can't handle things this large. There are also
security concerns when exporting detailed information about open files.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



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