From nobody@FreeBSD.org  Mon Mar 13 18:04:18 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C19EF16A420
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 18:04:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF9B43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 18:04:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2DI4Ifx019145
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Mar 2006 18:04:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2DI4IxO019137;
	Mon, 13 Mar 2006 18:04:18 GMT
	(envelope-from nobody)
Message-Id: <200603131804.k2DI4IxO019137@www.freebsd.org>
Date: Mon, 13 Mar 2006 18:04:18 GMT
From: Dieter <freebsd@sopwith.solgatos.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: systat(1) reports incorrect data for CD/DVD drive
X-Send-Pr-Version: www-2.3

>Number:         94415
>Category:       bin
>Synopsis:       systat(1) reports incorrect data for CD/DVD drive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 13 18:11:05 GMT 2006
>Closed-Date:    Mon Jun 12 10:35:13 GMT 2006
>Last-Modified:  Mon Jun 12 10:35:13 GMT 2006
>Originator:     Dieter
>Release:        6.0
>Organization:
>Environment:
6.0-RELEASE amd64
>Description:
Kernel is GENERIC with addition of:

device          atapicam        # needed to burn dvd

AMD64  nforce4-ultra  PATA CD/DVD drive

acd0: DVDR <HL-DT-ST DVDRAM GSA-4160B/A301> at ata0-master UDMA66
cd0 at ata0 bus 0 target 0 lun 0
cd0: <HL-DT-ST DVDRAM GSA-4160B A301> Removable CD-ROM SCSI-0 device 
cd0: 66.000MB/s transfers
cd0: cd present [2295104 x 2048 byte records]

"systat -vmstat" reports MB/s for cd0 that is 2x the actual rate.

>How-To-Repeat:
This is with UFS/FFS on a DVD+RW, but I doubt the bug depends on that.

Run "systat -vmstat" and generate some IO on the dvd drive.

Example 1:  cmp /foo/bigfile /dvd/bigfile
systat will report that cd0 has twice the MB/s of the hard drive.

Example 2: dd if=/dvd/bigfile of=/dev/null bs=1m
systat will report twice the MB/s that dd does.

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Mon Jun 12 10:34:41 UTC 2006 
State-Changed-Why:  
Duplicate of kern/95707 (already fixed). 

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