From nobody@FreeBSD.org  Mon Nov  8 10:12:16 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1E6421065672
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Nov 2010 10:12:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E6F3F8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Nov 2010 10:12:15 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oA8ACFGb070323
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 8 Nov 2010 10:12:15 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id oA8ACF1U070322;
	Mon, 8 Nov 2010 10:12:15 GMT
	(envelope-from nobody)
Message-Id: <201011081012.oA8ACF1U070322@www.freebsd.org>
Date: Mon, 8 Nov 2010 10:12:15 GMT
From: Robert Schulze <rs@bytecamp.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pstat -f does not work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152044
>Category:       bin
>Synopsis:       pstat(8): pstat -f does not work
>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:   Mon Nov 08 10:20:04 UTC 2010
>Closed-Date:    Wed Apr 20 19:19:13 UTC 2011
>Last-Modified:  Wed Apr 20 19:19:13 UTC 2011
>Originator:     Robert Schulze
>Release:        8.1-RELEASE-p1
>Organization:
>Environment:
FreeBSD xxxxxxx 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Wed Sep 22 10:38:45 CEST 2010     root@xxxxxxx:/usr/obj/usr/src/sys/WEB  amd64
>Description:
Trying to get the open files table via pstat only gives an error message:
pstat: sysctl: KERN_FILE: Cannot allocate memory

>How-To-Repeat:
# pstat -f


>Fix:


>Release-Note:
>Audit-Trail:

From: Alexander Best <arundel@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/152044: pstat(8): pstat -f does not work
Date: Sun, 14 Nov 2010 01:11:39 +0000

 it seems one of the sysctl(3) calls in pstat.c:getfiles() is failing with
 ENOMEM.
 
 cheers.
 alex
 
 -- 
 a13x
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Wed Feb 23 20:19:28 UTC 2011 
State-Changed-Why:  
I'm no longer able to reproduce this running HEAD, stable/8 and stable/7. 
Can you please update to a more recent 8.x version or stable/8 and see, if 
you can still reproduce this issue? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152044 
State-Changed-From-To: feedback->closed 
State-Changed-By: arundel 
State-Changed-When: Wed Apr 20 19:18:57 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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