From nobody@FreeBSD.org  Tue May  7 05:04:22 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id AE13CBC3
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 May 2013 05:04:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id A0E93EC9
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 May 2013 05:04:22 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4754MO8062825
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 May 2013 05:04:22 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4754Lhs062824;
	Tue, 7 May 2013 05:04:21 GMT
	(envelope-from nobody)
Message-Id: <201305070504.r4754Lhs062824@oldred.FreeBSD.org>
Date: Tue, 7 May 2013 05:04:21 GMT
From: Adam Nowacki <nowak@tepeserwery.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'ktrace -t f' (page faults) generates gigabytes of unused data
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178385
>Category:       bin
>Synopsis:       ktrace(1): 'ktrace -t f' (page faults) generates gigabytes of unused data
>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:   Tue May 07 05:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue May 07 05:12:27 UTC 2013
>Originator:     Adam Nowacki
>Release:        9.1-STABLE
>Organization:
>Environment:
FreeBSD storage 9.1-STABLE FreeBSD 9.1-STABLE #2 r250290M: Mon May  6 16:46:02 UTC 2013     root@storage:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Tracing page faults with ktrace seems to produce disproportionate amount of data in ktrace.out.
>How-To-Repeat:
$ echo "int main() { return 0; }" | clang -x c -o test -
$ ktrace -t f ./test
-- WARNING: this will take a few minutes and generate ~76GB ktrace.out file
$ kdump
-- outputs a few lines, most of ktrace.out ignored?
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
