From owner-freebsd-current Sat Feb 16 1: 2:35 2002 Delivered-To: freebsd-current@freebsd.org Received: from goose.prod.itd.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 9537537B400 for ; Sat, 16 Feb 2002 01:02:32 -0800 (PST) Received: from pool0249.cvx21-bradley.dialup.earthlink.net ([209.179.192.249] helo=mindspring.com) by goose.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16c0jc-0002Fo-00; Sat, 16 Feb 2002 01:02:20 -0800 Message-ID: <3C6E2011.65DDAD2A@mindspring.com> Date: Sat, 16 Feb 2002 01:02:09 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Brooks Davis Cc: Mark Santcroos , freebsd-current@FreeBSD.ORG Subject: Re: Ethernet tunnel device References: <20020211032336.A2135@kashmir.etowns.net> <20020211170131.A79104@laptop.6bone.nl> <20020212074327.A3466@laptop.6bone.nl> <20020213111358.A3235@kashmir.etowns.net> <20020213111937.A10146@Odin.AC.HMC.Edu> <3C6B0BFD.F27F040F@mindspring.com> <20020216004146.A57907@laptop.6bone.nl> <3C6DD38B.BF38EC80@mindspring.com> <20020215214430.A7255@Odin.AC.HMC.Edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brooks Davis wrote: > I think there's something else going on. You can hold open a vmnet > device by the simple expedient of "cat /dev/vmnet0" and when I tested > with a Linux cat and killed it with a "kill -9" it closed the descriptor > properly. Some things I haven't tried, but though might have an effect > were using fork or linux threads to create multiple refrences to the > device and then closing them oddly. My next suggestion would be breaking to the kernel debugger, and finding out who holds the reference to the thing by walking through everything. The "lsof" program might end up being useful. Pretty clearly, if it happens, and the process is truly gone, then there is a resource track cleanup that's missing (perhaps it's a reference that results from the Linux mmap resource track cleanup not releasing it?). In any case, it might also help to put in printf's that spew each time a reference to that particular device is created or destroy; _that_, at least, would tell you about the unmatched reference that is being left around. If there were no reference around, then it wouldn't be a problem, and if it were something simple, your Linux "cat" test would have done the job in reproducing it. Short of asking the VMWare people for help, there's not really any way I'm going to be able to get you closer to the problem then by eliminating what can't be causing the symptoms you are seeing. I guess let us know if the printf's lead nowhere. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message