From owner-freebsd-current@FreeBSD.ORG Wed Jan 10 18:44:54 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2576E16A412 for ; Wed, 10 Jan 2007 18:44:54 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by mx1.freebsd.org (Postfix) with ESMTP id 02DEC13C428 for ; Wed, 10 Jan 2007 18:44:53 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-1.cisco.com with ESMTP; 10 Jan 2007 10:44:54 -0800 X-IronPort-AV: i="4.13,168,1167638400"; d="scan'208"; a="758821889:sNHT52956612" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id l0AIirrQ013417 for ; Wed, 10 Jan 2007 10:44:53 -0800 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l0AIirZH007624 for ; Wed, 10 Jan 2007 10:44:53 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 10 Jan 2007 10:44:53 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 10 Jan 2007 10:44:53 -0800 Message-ID: <45A533F6.7030405@cisco.com> Date: Wed, 10 Jan 2007 13:44:06 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jan 2007 18:44:53.0326 (UTC) FILETIME=[6A8FFEE0:01C734E7] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1459; t=1168454693; x=1169318693; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20how=20to=20find=20out=20what=20the=20other=20CPU=20is=20doing |Sender:=20; bh=lxIZYbV8d2MyhrC5nI7NKvVX9Z4wzSD2ogp2IJqOovA=; b=Mab1aKKF7IWJnjmuS28bMMPkrE7bvL3dDvpxzxAGyE1czStPWPkoyy8sVGYKWS1WIqpZDgpg jxj1qRnZSHtzFqS+ZZMHAKgE+RLbSamjZSZSmdY9NS/BQPCrPpvu3N+N; Authentication-Results: sj-dkim-4; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim4002 verified; ); Cc: Subject: how to find out what the other CPU is doing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 18:44:54 -0000 All: I have now pinpointed a problem.. or at least I know whats going on.. I have a dual-core machine.. CPU1 gets swi: net running on it.. I am sure it has received an SCTP packet since it has a lock on a TCB. the sw4: clock sio in fact gets hung up waiting for the locked TCB that swi:net holds. The other CPU, cpu0 is still free.. I can thus drop into DDB> I took a core of this.. but I could not gain much.. and it comes from my ignorance I think.. So my question is how do I find out what loop swi:net is trapped in.. If I have a kernel core, can I somehow look at this? I dumped the entire stack and poked around in it a bit.. looking at where its esp and ebp were set.. but I could not figure out how to follow this.. I tried using proc 'tid' (as John suggested to me) and when I try a bt it just gives me a ???? and an address.. Is there anyway I can get a hint out of the situation. If I do trace in DDB> it just showed me where I was on CPU0 with the keyboard interupt.. etc.. Any help in getting additional info would be wonderful... I need to at least get a hint as to how this thing is in a loop.. I currently have the machine cooking again.. it takes 3-4 days to get it to hit this state... So if someone has an idea of something to try I would apprecicate it :-) Thanks in advance R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)