From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andy Burns <xen.lists@burns.me.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Fwd: xentop reporting zero written sectors
Date: Mon, 10 Oct 2011 12:31:29 -0400 [thread overview]
Message-ID: <20111010163129.GF28646@phenom.oracle.com> (raw)
In-Reply-To: <CAE1-PReA8E-kSif=BU=s-vzOqi-4F4LotxqofH7EEw+dYLtpUA@mail.gmail.com>
On Mon, Oct 10, 2011 at 04:16:04PM +0100, Andy Burns wrote:
> No response in xen-users, asking developers ....
>
> ---------- Forwarded message ----------
>
> Just moving a chunk of files from one filesysstem on xvba to another
> on xvdb, and was monitoring with xentop as it was taking longer than
> expected.
>
> The VBD_RD and VBD_WR counters were both clocking-up as expected, as
> was the VBD_RSECT counter, but the VBD_WSECT counter was stuck on
> zero, I toggled on the individual VBD device counters and these showed
> the same (with the RD and WR counters correctly split between my
> source and destination disks)
Huh. Imagine that!
>
> Is this a long standing "feature" that I've never noticed before or a
> problem that should be reported?
Must be a feature. We would never write code with bugs. Never :-)
I think this new "feature" below will fix it for you:
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index 0bd7143..3e2ca68 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -778,7 +778,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
if (operation == READ)
blkif->st_rd_sect += preq.nr_sects;
- else if (operation == WRITE || operation == WRITE_FLUSH)
+ else if (operation == WRITE_ODIRECT || operation == WRITE_FLUSH)
blkif->st_wr_sect += preq.nr_sects;
return 0;
Thanks for reporting it!
next prev parent reply other threads:[~2011-10-10 16:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAE1-PRdq9BWjTTHPPBPvESr-ULcdjHgPMTABcCO6+wCLJ1UYog@mail.gmail.com>
2011-10-10 15:16 ` Fwd: xentop reporting zero written sectors Andy Burns
2011-10-10 15:29 ` Ian Campbell
2011-10-10 18:02 ` Andy Burns
2011-10-10 19:26 ` Konrad Rzeszutek Wilk
2011-10-10 16:31 ` Konrad Rzeszutek Wilk [this message]
2011-10-11 7:49 ` Ian Campbell
2011-10-11 15:47 ` Konrad Rzeszutek Wilk
2011-10-13 21:10 ` Andy Burns
2011-10-14 0:20 ` Andy Burns
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=20111010163129.GF28646@phenom.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen.lists@burns.me.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.