From: Yuehai Xu <yuehaixu@gmail.com>
To: xen-devel@lists.xensource.com
Cc: yuehai.xu@gmail.com, yhxu@wayne.edu
Subject: questions about the number of pending requests that the host system can detect
Date: Wed, 11 Aug 2010 23:42:41 -0400 [thread overview]
Message-ID: <AANLkTi=3d=+J2WNbBM5rLu_MfpjA_3OXhm8qOkCf_sLg@mail.gmail.com> (raw)
Hi all,
I know the default I/O scheduler for DomU is noop. Without considering
XEN, suppose the I/O scheduler for hard disk is noop, 10 processes run
currently and each process does stride read, in this case, the number
of pending requests which need to be dispatched to the hard disk
should be at around 8~9, here I suppose the hard disk can handle at
most 2 requests concurrently. this makes sense.
Now, suppose there is only one VM, and the ten processes are now
running in the guest system. The disk mode is tap2:aio, which means a
process called tapdisk2 is running in the host system and it handles
all the requests from the domU, dispatches them to the real hard disk.
In such case, from the view of the host, the number of pending
requests should always be at around 8~9 because tapdisk2 is using
asynchronous way to handle requests.
However, the result turns out that my assumption is wrong. The number
of pending requests, according to the trace of blktrace, is changing
like this way: 9 8 7 6 5 4 3 2 1 1 1 2 3 4 5 4 3 2 1 1 1 2 3 4 5 6 7 8
8 8..., just like a curve.
I am puzzled about this weird result. Can anybody explain what has
happened between domU and dom0 for this result? Does this result make
sense? or I did something wrong to get this result.
I am using Xen-4.0.0-rc5, kernel version in the host is 2.6.31.13, the
kernel in the guest system is 2.6.18
Thanks,
Yuehai
next reply other threads:[~2010-08-12 3:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 3:42 Yuehai Xu [this message]
2010-08-12 18:04 ` questions about the number of pending requests that the host system can detect Jeremy Fitzhardinge
2010-08-12 18:16 ` Yuehai Xu
2010-08-12 18:18 ` Yuehai Xu
2010-08-12 18:21 ` Jeremy Fitzhardinge
2010-08-12 18:36 ` Yuehai Xu
2010-08-15 20:12 ` Daniel Stodden
2010-08-16 2:41 ` Yuehai Xu
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='AANLkTi=3d=+J2WNbBM5rLu_MfpjA_3OXhm8qOkCf_sLg@mail.gmail.com' \
--to=yuehaixu@gmail.com \
--cc=xen-devel@lists.xensource.com \
--cc=yhxu@wayne.edu \
--cc=yuehai.xu@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).