From nobody@FreeBSD.org  Sun Jun 21 09:27:52 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8B5F71065675
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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.my.trociny@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: memstat_kvm_malloc broken in 7.2-STABLE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135882
>Category:       kern
>Synopsis:       MFc reminder: memstat_kvm_malloc broken in 7.2-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 21 09:30:05 UTC 2009
>Closed-Date:    Mon Jun 22 13:47:12 UTC 2009
>Last-Modified:  Mon Jun 22 13:47:12 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Jun 21 09:41:08 UTC 2009 
Responsible-Changed-Why:  
reassign to John as MFC reminder 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135882 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Mon Jun 22 13:47:02 UTC 2009 
State-Changed-Why:  
Merged to 7, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135882 
>Unformatted:
