From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 21 09:30:06 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 444301065673 for ; Sun, 21 Jun 2009 09:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 057BA8FC19 for ; Sun, 21 Jun 2009 09:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5L9U54w093636 for ; Sun, 21 Jun 2009 09:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5L9U514093632; Sun, 21 Jun 2009 09:30:05 GMT (envelope-from gnats) Resent-Date: Sun, 21 Jun 2009 09:30:05 GMT Resent-Message-Id: <200906210930.n5L9U514093632@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikolaj Golub Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B5F71065675 for ; Sun, 21 Jun 2009 09:27:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 79ED28FC1B for ; Sun, 21 Jun 2009 09:27:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5L9RqBJ026535 for ; Sun, 21 Jun 2009 09:27:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n5L9RqNN026534; Sun, 21 Jun 2009 09:27:52 GMT (envelope-from nobody) Message-Id: <200906210927.n5L9RqNN026534@www.freebsd.org> Date: Sun, 21 Jun 2009 09:27:52 GMT From: Mikolaj Golub To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/135882: memstat_kvm_malloc broken in 7.2-STABLE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 09:30:06 -0000 >Number: 135882 >Category: kern >Synopsis: memstat_kvm_malloc broken in 7.2-STABLE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 21 09:30:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mikolaj Golub >Release: >Organization: >Environment: FreeBSD zhuzha.ua1 7.2-STABLE FreeBSD 7.2-STABLE #18: Wed Jun 3 14:28:49 EEST 2009 root@zhuzha.ua1:/usr/obj/usr/src/sys/DEBUG i386 >Description: memstat_kvm_malloc is broken in FreeBSD7. As a result vmstat -m does not work with crash dumps. It has already been fixed in HEAD: SVN rev 192148 on 2009-05-15 18:25:44Z by jhb Update the KVM backend for malloc stats to catch up to the internal structure BI change from the addition of DTrace malloc(9) probes. Submitted by: Ben Kelly ben of wanderview dot com I have tested this fix on 7.2-STABLE and it works well here too. So it would be nice to MFC this to FreeBSD7 as having kmalloc statistics form crashes is very useful sometimes. >How-To-Repeat: vmstat -m -M /dev/mem -N /boot/kernel/kernel and compare with the output of vmstat -m >Fix: >Release-Note: >Audit-Trail: >Unformatted: