From owner-freebsd-hackers Wed Feb 13 12:48:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (adsl-64-173-25-69.dsl.sntc01.pacbell.net [64.173.25.69]) by hub.freebsd.org (Postfix) with ESMTP id AD3AB37B402 for ; Wed, 13 Feb 2002 12:48:33 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.6) with ESMTP id g1DKluc00423; Wed, 13 Feb 2002 12:47:56 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200202132047.g1DKluc00423@mass.dis.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Andy Sporner Cc: freebsd-hackers@freebsd.org Subject: Re: Porting a device driver from NetBSD to FreeBSD In-reply-to: Your message of "Wed, 13 Feb 2002 15:39:26 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 13 Feb 2002 12:47:55 -0800 From: Michael Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Hello Everyone, > > I have been trying to port a driver I had written on NetBSD to FreeBSD. > On NetBSD the driver functions without incident, On FreeBSD, after a time > the whole system locks up. Sounds like resource starvation of some sort. > I hope somebody can give me a hint of where I should look. It seems that > the PCI performance on FreeBSD is much faster in talking to this particular > devic. Start by checking whether you're leaking memory or mbufs; netstat -m and vmstat -m while you're running some network activity. It's also concievable that you're just doing Something Wrong and lockup up yourself. Can you break to the debugger when the machine is hung? (alt-ctl-esc). -- To announce that there must be no criticism of the president or that we are to stand by the president right or wrong is not only unpatriotic and servile, but is morally treasonable to the American public. - Theodore Roosevelt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message