From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 9 23:30:15 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F702106566B for ; Thu, 9 Dec 2010 23:30:15 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 38C028FC0C for ; Thu, 9 Dec 2010 23:30:15 +0000 (UTC) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.4/8.14.4) with ESMTP id oB9NUDtJ081916; Thu, 9 Dec 2010 17:30:13 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Thu, 9 Dec 2010 17:30:13 -0600 (CST) From: "Sean C. Farley" To: Chuck Robey In-Reply-To: <4D01422C.9080206@telenix.org> Message-ID: References: <4D000448.1050606@telenix.org> <20101208230139.2097c2e8@core.draftnet> <4D0020D7.5080706@freebsd.org> <4D01422C.9080206@telenix.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-1.1 required=4.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.farley.org Cc: freebsd-hackers@FreeBSD.org Subject: Re: getting a list of open files versus PID nos.? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 23:30:15 -0000 On Thu, 9 Dec 2010, Chuck Robey wrote: > Ahh, the procstat -a -f output was more clearly readable than even the > suggested lsof. I found that enlightenment was opening 2,672 > different /dev/apmNNNN devices. Man apm tells me it's to do with > Advanced Power Mgm't, nearly all of these huge lumps of open files. > How might I deal with getting these /dev/apmNNNN files to close > themselves? Because I have little doubt that I am (at last!!) looking > at the reason for my machine lockups. I think I ran into this long ago. If I recall correctly, you just need to disable the Enlightenment battery/power monitor if running on a system without a battery. Sean -- scf@FreeBSD.org