From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 8 20:03:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2981916A4CE for ; Tue, 8 Mar 2005 20:03:08 +0000 (GMT) Received: from mgw-x4.nokia.com (mgw-x4.nokia.com [131.228.20.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA2B843D3F for ; Tue, 8 Mar 2005 20:03:06 +0000 (GMT) (envelope-from Vijay.Singh@nokia.com) Received: from esdks003.ntc.nokia.com (esdks003.ntc.nokia.com [172.21.138.158])j28K3QA10020 for ; Tue, 8 Mar 2005 22:03:26 +0200 (EET) X-Scanned: Tue, 8 Mar 2005 22:02:55 +0200 Nokia Message Protector V1.3.34 2004121512 - RELEASE Received: (from root@localhost) by esdks003.ntc.nokia.com (8.12.9/8.12.9) id j28K2tIu032503 for ; Tue, 8 Mar 2005 22:02:55 +0200 Received: from mgw-int2.ntc.nokia.com (172.21.143.97) by esdks003.ntc.nokia.com 00MVZlU9; Tue, 08 Mar 2005 22:02:55 EET Received: from daebh002.NOE.Nokia.com (daebh002.americas.nokia.com [10.241.35.122])j28K2sU07962 for ; Tue, 8 Mar 2005 22:02:54 +0200 (EET) Received: from mvebe001.NOE.Nokia.com ([172.18.140.37]) by daebh002.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6881); Tue, 8 Mar 2005 14:02:53 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 8 Mar 2005 12:01:19 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: partial memory dump Thread-Index: AcUkGZhGyNt9jPrvSNePonOXAfmAdw== From: To: X-OriginalArrivalTime: 08 Mar 2005 20:02:53.0905 (UTC) FILETIME=[D065EC10:01C52419] Subject: partial memory dump X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 20:03:08 -0000 Hello all. I am trying to allow a FreeBSD based kernel to crash dump = even if configured swap is not enough to fill entire physical memory. = This is because there could be 2G RAM on the system. I assume that most = pages would not be mapped.=20 The algorithm to do this is to have a bitmask, with bits set for pages: = from 0 to Maxmem, and then adding pages from USRSTACK to = vm_map_max(kmem_map). This is done in scsi_da.c, dadump() routine. I am = able to get the dump, and after savecore collects it from swap I get the = kernel and core files. However I am not able to get the stack trace.=20 Anything in the design (pages) that I might have missed? nexthop[admin]# gdb -k kernel.2 vmcore.2 GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for = details. GDB 4.16 (i386-unknown-freebsd),=20 Copyright 1996 Free Software Foundation, Inc...(no debugging symbols = found)... IdlePTD 69f000 current pcb at 4dd794 panic: page fault #0 0xf6371ade in boot (cannot read proc at 0xca6c0400 ) (kgdb) bt #0 0xf6371ade in boot (cannot read proc at 0xca6c0400 ) cannot read proc at 0xca6c0400 br, vijay