NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unable to use lsof on NetBSD 5



On Sat, Jan 2, 2010 at 5:38 PM, Klaus Heinz 
<k.heinz%janzehn.kh-22.de@localhost> wrote:
> Hi,
>
> is anyone using sysutils/lsof on NetBSD/i386 version 5?
>
> Both with the GENERIC kernel from NetBSD 5.0.1 and with a MONOLITHIC
> kernel (built like MONOLITHIC from -current) of the netbd-5 branch
> (updated today) I get:
>
>  # lsof
>  lsof: kvm_openfiles(execfile=/dev/ksyms, corefile=/dev/mem): Device not
>  configured
>
>  # ls -al /dev/ksyms /dev/mem
>  cr--r--r--  1 root  wheel  101, 0 Oct 30 19:20 /dev/ksyms
>  crw-r-----  1 root  kmem     2, 0 Oct 30 19:20 /dev/mem
>
>  # strings //netbsd5.0.1.GENERIC | sed -n 's/^_CFG_//p' | unvis | fgrep -i 
> ksyms
>  pseudo-device   ksyms                   # /dev/ksyms
>
> I get this behaviour for lsof-4.78.5.0.1nb5 from pkgsrc-2009Q3 and
> with a locally created package.
>

I just downloaded the package and it seems to work okay:
NetBSD fester 5.0.1 NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30 01:39:11 UTC
2009  
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-1-RELEASE/i386/200907292356Z-obj/home/builds/ab/netbsd-5-0-1-RELEASE/src/sys/arch/i386/compile/GENERIC
i386

example output:
httpd     24521     root    4u    IPv4 0xc11509c4      0t0   TCP *:http (LISTEN)
httpd     24521     root    5r    PIPE 0xcafb5cc4    16384       ->0xcafb6cc4
httpd     24521     root    6w    PIPE 0xcafb6cc4        0       ->0xcafb5cc4
httpd     24521     root    7u    unix 0xc1152004      0t0       ->0xc101edc0


Home | Main Index | Thread Index | Old Index