From: Jens Axboe <jens.axboe@oracle.com>
To: Miquel van Smoorenburg <mikevs@xs4all.net>
Cc: Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: Re: disk statistics issue in 2.6.27
Date: Mon, 20 Oct 2008 19:12:48 +0200 [thread overview]
Message-ID: <20081020171248.GE19428@kernel.dk> (raw)
In-Reply-To: <20081019113102.GA18440@xs4all.net>
On Sun, Oct 19 2008, Miquel van Smoorenburg wrote:
> I just upgraded one of our servers in the nntp cluster to 2.6.27.1 -
> most of the others are running 2.6.26.something.
>
> I noticed that the "iostat -k -x 2" output does't make any sense.
> The number of reads/sec and number of writes/sec are about what I
> would expect, and so are the other fields, but rkB/sec and wkB/sec
> are completely off-scale: gigabytes read/written per second.
>
> To be sure it wasn't a bug in iostat I wrote a small perl script
> to process /sys/block/sda/stats, and it shows the same problem.
>
> Note that the stats in /proc/diskstats and /sys/block/<dev>/stats
> are the same.
>
> I've tried both the cfq and deadline I/O scheduler - no difference.
>
> $ perl mystat.pl
> Device: r/s w/s rkB/s wkB/s
> sda 141 53 2301120 1795200
>
> Device: r/s w/s rkB/s wkB/s
> sda 145 7 2366400 3394560
>
> I compiled a 2.6.26.6 kernel with the exact same .config and it
> doesn't show the problem.
>
> I've been staring at include/linux/genhd.h and block/genhd.c
> for a while but I just don't see it.
>
> The mystat.pl perl script and my .config are below.
> The machine is a dual xeon 2.2 Ghz, 32 bit, 4 GB mem, /dev/sda
> is a 3-scsi-disk RAID5 array on an adaptec 2005S controller.
>
> Any idea what could be causing this ?
Weird, I cannot reproduce this at all, iostat works fine for me in .26,
.27 and current -git as well. So it's just a plain SCSI drive from
linux, no software raid or dm?
Are the reported values in iostat any sort of multiple of the real
throughtput, or is is just insanely large?
--
Jens Axboe
next prev parent reply other threads:[~2008-10-20 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-19 11:31 disk statistics issue in 2.6.27 Miquel van Smoorenburg
2008-10-20 17:12 ` Jens Axboe [this message]
2008-10-22 14:37 ` Miquel van Smoorenburg
2008-10-22 17:17 ` Jens Axboe
2008-10-23 16:05 ` Miquel van Smoorenburg
2008-10-31 12:47 ` Jens Axboe
2008-11-03 21:39 ` Miquel van Smoorenburg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081020171248.GE19428@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikevs@xs4all.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox