From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 05:49:06 2012 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 BB95D1065673; Fri, 16 Mar 2012 05:49:06 +0000 (UTC) (envelope-from maninya@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF908FC14; Fri, 16 Mar 2012 05:49:05 +0000 (UTC) Received: by yhgm50 with SMTP id m50so4688548yhg.13 for ; Thu, 15 Mar 2012 22:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=16G+WqxRtP1LHUbTz8tjvldmLBes43tpm/8CiPhNBVE=; b=uRYmCGJJ/HOq4XoraTE8Vek1RnALBYNyDGGwfL6DFIOT8W+mFVU0BWwf31D5hl+Dr/ oYWbzeCgsFHHB5Q8dmIGIs9s6t3TN0ducYQ0UNXjIqK78w16WaGgWgo4cRwCHzM97GJf Ad5NXMPIq+S6IDOxhsnxwBmBlc1XkljcnFAm0gBMZssc7NY0DQI26pkTFM7coPI7IaQ/ jWTvov4FSN5ielFJOQCRV8CAynzAlgsu7fx2tp0ClrE+bFsMiC92HxKCeF/5Mem9fyiU hALnElhxT6/l1y68zHID4aT1u8Og4Gexh++8iz1WSa0/M4f9f8HlD1rI1mn1DnS7rg+8 tpEw== MIME-Version: 1.0 Received: by 10.236.124.3 with SMTP id w3mr1317996yhh.101.1331876945659; Thu, 15 Mar 2012 22:49:05 -0700 (PDT) Received: by 10.147.24.14 with HTTP; Thu, 15 Mar 2012 22:49:05 -0700 (PDT) In-Reply-To: <4F60FF28.8010104@freebsd.org> References: <4F60FF28.8010104@freebsd.org> Date: Fri, 16 Mar 2012 11:19:05 +0530 Message-ID: From: Maninya M To: Julian Elischer , Artem Belevich Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Capture states of all processes at the same time 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: Fri, 16 Mar 2012 05:49:06 -0000 I am unable to enter DDB. I used the command from this link: http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-online-ddb.html where it says: ------ The second scenario is to drop to the debugger once the system has booted. There are two simple ways to accomplish this. If you would like to break to the debugger from the command prompt, simply type the command: # sysctl debug.kdb.enter=1 ------ But when I type that the computer hangs! What do I do? My primary aim is to get the process states of all processes running at a particular time, save them and be able to retrieve them when needed so I can run the processes from those states. Also how can I know in which CPU (I am using an intel i5 multicore system) core each process is running? On 15 March 2012 01:57, Julian Elischer wrote: > On 3/14/12 12:02 PM, Artem Belevich wrote: > >> On Wed, Mar 14, 2012 at 11:25 AM, Maninya M wrote: >> >>> Then typed this to force a panic: >>> >>> sysctl debug.kdb.panic=1 >>> >>> The computer just hung after this, and after waiting for a while I >>> pressed >>> the reboot button. >>> It said "no core dumps found" while rebooting. >>> >> First, make sure you have swap space configured. If minidump is not >> enabled (check sysctl debug.minidump) you will need to make sure you >> have more swap space than physical memory. >> Then make sure that dump device is set up correctly. See dumpdev in >> rc.conf(5) >> >> If that didn't work, you may be running into the issue in PR kern/155421: >> http://www.freebsd.org/cgi/**query-pr.cgi?pr=kern%2F155421&**cat= >> >> Alas, I don't know what to do about that. >> > > or just do "ps" from ddb and then continue. > > you can set things up in 9 (and maybe 8, I don't know) to capture the ddb > output.. > > > --Artem >> ______________________________**_________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@** >> freebsd.org " >> >> > -- Maninya