From: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
qemu-devel@nongnu.org, Borislav Petkov <bp@amd64.org>,
linux-kernel@vger.kernel.org,
Herbert Xu <herbert@gondor.hengli.com.au>,
"Franch Ch. Eigler" <fche@redhat.com>,
Ingo Molnar <mingo@redhat.com>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Steven Rostedt <rostedt@goodmis.org>,
Anthony Liguori <anthony@codemonkey.ws>,
yrl.pp-manager.tt@hitachi.com,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
virtualization@lists.linux-foundation.org
Subject: Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace
Date: Fri, 27 Jul 2012 17:55:11 +0900 [thread overview]
Message-ID: <5012576F.7040500@hitachi.com> (raw)
In-Reply-To: <20120726113537.GH9473@amit.redhat.com>
Hi Amit,
Thank you for commenting on our work.
(2012/07/26 20:35), Amit Shah wrote:
> On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote:
[...]
>>
>> Therefore, we propose a new system "virtio-trace", which uses enhanced
>> virtio-serial and existing ring-buffer of ftrace, for collecting guest kernel
>> tracing data. In this system, there are 5 main components:
>> (1) Ring-buffer of ftrace in a guest
>> - When trace agent reads ring-buffer, a page is removed from ring-buffer.
>> (2) Trace agent in the guest
>> - Splice the page of ring-buffer to read_pipe using splice() without
>> memory copying. Then, the page is spliced from write_pipe to virtio
>> without memory copying.
>
> I really like the splicing idea.
Thanks. We will improve this patch set.
>> (3) Virtio-console driver in the guest
>> - Pass the page to virtio-ring
>> (4) Virtio-serial bus in QEMU
>> - Copy the page to kernel pipe
>> (5) Reader in the host
>> - Read guest tracing data via FIFO(named pipe)
>
> So will this be useful only if guest and host run the same kernel?
>
> I'd like to see the host kernel not being used at all -- collect all
> relevant info from the guest and send it out to qemu, where it can be
> consumed directly by apps driving the tracing.
No, this patch set is used only for guest kernels, so guest and host
don't need to run the same kernel.
>> ***Evaluation***
>> When a host collects tracing data of a guest, the performance of using
>> virtio-trace is compared with that of using native(just running ftrace),
>> IVRing, and virtio-serial(normal method of read/write).
>
> Why is tracing performance-sensitive? i.e. why try to optimise this
> at all?
To minimize effects for applications on guests when a host collects
tracing data of guests.
For example, we assume the situation where guests A and B are running
on a host sharing I/O device. An I/O delay problem occur in guest A,
but it doesn't for the requirement in guest B. In this case, we need to
collect tracing data of guests A and B, but a usual method using
network takes high load for applications of guest B even if guest B is
normally running. Therefore, we try to decrease the load on guests.
We also use this feature for performance analysis on production
virtualization systems.
[...]
>>
>> ***Just enhancement ideas***
>> - Support for trace-cmd
>> - Support for 9pfs protocol
>> - Support for non-blocking mode in QEMU
>
> There were patches long back (by me) to make chardevs non-blocking but
> they didn't make it upstream. Fedora carries them, if you want to try
> out. Though we want to converge on a reasonable solution that's
> acceptable upstream as well. Just that no one's working on it
> currently. Any help here will be appreciated.
Thanks! In this case, since a guest will stop to run when host reads
trace data of the guest, char device is needed to add a non-blocking
mode. I'll read your patch series. Is the latest version 8?
http://lists.gnu.org/archive/html/qemu-devel/2010-12/msg00035.html
>> - Make "vhost-serial"
>
> I need to understand a) why it's perf-critical, and b) why should the
> host be involved at all, to comment on these.
a) To make collecting overhead decrease for application on a guest.
(see above)
b) Trace data of host kernel is not involved even if we introduce this
patch set.
Thank you,
--
Yoshihiro YUNOMAE
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: yoshihiro.yunomae.ez@hitachi.com
WARNING: multiple messages have this Message-ID (diff)
From: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Herbert Xu <herbert@gondor.hengli.com.au>,
Arnd Bergmann <arnd@arndb.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
yrl.pp-manager.tt@hitachi.com, qemu-devel@nongnu.org,
Borislav Petkov <bp@amd64.org>,
virtualization@lists.linux-foundation.org,
"Franch Ch. Eigler" <fche@redhat.com>,
Ingo Molnar <mingo@redhat.com>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Steven Rostedt <rostedt@goodmis.org>,
Anthony Liguori <anthony@codemonkey.ws>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Subject: Re: Re: [RFC PATCH 0/6] virtio-trace: Support virtio-trace
Date: Fri, 27 Jul 2012 17:55:11 +0900 [thread overview]
Message-ID: <5012576F.7040500@hitachi.com> (raw)
In-Reply-To: <20120726113537.GH9473@amit.redhat.com>
Hi Amit,
Thank you for commenting on our work.
(2012/07/26 20:35), Amit Shah wrote:
> On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote:
[...]
>>
>> Therefore, we propose a new system "virtio-trace", which uses enhanced
>> virtio-serial and existing ring-buffer of ftrace, for collecting guest kernel
>> tracing data. In this system, there are 5 main components:
>> (1) Ring-buffer of ftrace in a guest
>> - When trace agent reads ring-buffer, a page is removed from ring-buffer.
>> (2) Trace agent in the guest
>> - Splice the page of ring-buffer to read_pipe using splice() without
>> memory copying. Then, the page is spliced from write_pipe to virtio
>> without memory copying.
>
> I really like the splicing idea.
Thanks. We will improve this patch set.
>> (3) Virtio-console driver in the guest
>> - Pass the page to virtio-ring
>> (4) Virtio-serial bus in QEMU
>> - Copy the page to kernel pipe
>> (5) Reader in the host
>> - Read guest tracing data via FIFO(named pipe)
>
> So will this be useful only if guest and host run the same kernel?
>
> I'd like to see the host kernel not being used at all -- collect all
> relevant info from the guest and send it out to qemu, where it can be
> consumed directly by apps driving the tracing.
No, this patch set is used only for guest kernels, so guest and host
don't need to run the same kernel.
>> ***Evaluation***
>> When a host collects tracing data of a guest, the performance of using
>> virtio-trace is compared with that of using native(just running ftrace),
>> IVRing, and virtio-serial(normal method of read/write).
>
> Why is tracing performance-sensitive? i.e. why try to optimise this
> at all?
To minimize effects for applications on guests when a host collects
tracing data of guests.
For example, we assume the situation where guests A and B are running
on a host sharing I/O device. An I/O delay problem occur in guest A,
but it doesn't for the requirement in guest B. In this case, we need to
collect tracing data of guests A and B, but a usual method using
network takes high load for applications of guest B even if guest B is
normally running. Therefore, we try to decrease the load on guests.
We also use this feature for performance analysis on production
virtualization systems.
[...]
>>
>> ***Just enhancement ideas***
>> - Support for trace-cmd
>> - Support for 9pfs protocol
>> - Support for non-blocking mode in QEMU
>
> There were patches long back (by me) to make chardevs non-blocking but
> they didn't make it upstream. Fedora carries them, if you want to try
> out. Though we want to converge on a reasonable solution that's
> acceptable upstream as well. Just that no one's working on it
> currently. Any help here will be appreciated.
Thanks! In this case, since a guest will stop to run when host reads
trace data of the guest, char device is needed to add a non-blocking
mode. I'll read your patch series. Is the latest version 8?
http://lists.gnu.org/archive/html/qemu-devel/2010-12/msg00035.html
>> - Make "vhost-serial"
>
> I need to understand a) why it's perf-critical, and b) why should the
> host be involved at all, to comment on these.
a) To make collecting overhead decrease for application on a guest.
(see above)
b) Trace data of host kernel is not involved even if we introduce this
patch set.
Thank you,
--
Yoshihiro YUNOMAE
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: yoshihiro.yunomae.ez@hitachi.com
WARNING: multiple messages have this Message-ID (diff)
From: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
qemu-devel@nongnu.org, Borislav Petkov <bp@amd64.org>,
linux-kernel@vger.kernel.org,
Herbert Xu <herbert@gondor.hengli.com.au>,
"Franch Ch. Eigler" <fche@redhat.com>,
Ingo Molnar <mingo@redhat.com>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Steven Rostedt <rostedt@goodmis.org>,
Anthony Liguori <anthony@codemonkey.ws>,
yrl.pp-manager.tt@hitachi.com,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
virtualization@lists.linux-foundation.org
Subject: Re: [Qemu-devel] [RFC PATCH 0/6] virtio-trace: Support virtio-trace
Date: Fri, 27 Jul 2012 17:55:11 +0900 [thread overview]
Message-ID: <5012576F.7040500@hitachi.com> (raw)
In-Reply-To: <20120726113537.GH9473@amit.redhat.com>
Hi Amit,
Thank you for commenting on our work.
(2012/07/26 20:35), Amit Shah wrote:
> On (Tue) 24 Jul 2012 [11:36:57], Yoshihiro YUNOMAE wrote:
[...]
>>
>> Therefore, we propose a new system "virtio-trace", which uses enhanced
>> virtio-serial and existing ring-buffer of ftrace, for collecting guest kernel
>> tracing data. In this system, there are 5 main components:
>> (1) Ring-buffer of ftrace in a guest
>> - When trace agent reads ring-buffer, a page is removed from ring-buffer.
>> (2) Trace agent in the guest
>> - Splice the page of ring-buffer to read_pipe using splice() without
>> memory copying. Then, the page is spliced from write_pipe to virtio
>> without memory copying.
>
> I really like the splicing idea.
Thanks. We will improve this patch set.
>> (3) Virtio-console driver in the guest
>> - Pass the page to virtio-ring
>> (4) Virtio-serial bus in QEMU
>> - Copy the page to kernel pipe
>> (5) Reader in the host
>> - Read guest tracing data via FIFO(named pipe)
>
> So will this be useful only if guest and host run the same kernel?
>
> I'd like to see the host kernel not being used at all -- collect all
> relevant info from the guest and send it out to qemu, where it can be
> consumed directly by apps driving the tracing.
No, this patch set is used only for guest kernels, so guest and host
don't need to run the same kernel.
>> ***Evaluation***
>> When a host collects tracing data of a guest, the performance of using
>> virtio-trace is compared with that of using native(just running ftrace),
>> IVRing, and virtio-serial(normal method of read/write).
>
> Why is tracing performance-sensitive? i.e. why try to optimise this
> at all?
To minimize effects for applications on guests when a host collects
tracing data of guests.
For example, we assume the situation where guests A and B are running
on a host sharing I/O device. An I/O delay problem occur in guest A,
but it doesn't for the requirement in guest B. In this case, we need to
collect tracing data of guests A and B, but a usual method using
network takes high load for applications of guest B even if guest B is
normally running. Therefore, we try to decrease the load on guests.
We also use this feature for performance analysis on production
virtualization systems.
[...]
>>
>> ***Just enhancement ideas***
>> - Support for trace-cmd
>> - Support for 9pfs protocol
>> - Support for non-blocking mode in QEMU
>
> There were patches long back (by me) to make chardevs non-blocking but
> they didn't make it upstream. Fedora carries them, if you want to try
> out. Though we want to converge on a reasonable solution that's
> acceptable upstream as well. Just that no one's working on it
> currently. Any help here will be appreciated.
Thanks! In this case, since a guest will stop to run when host reads
trace data of the guest, char device is needed to add a non-blocking
mode. I'll read your patch series. Is the latest version 8?
http://lists.gnu.org/archive/html/qemu-devel/2010-12/msg00035.html
>> - Make "vhost-serial"
>
> I need to understand a) why it's perf-critical, and b) why should the
> host be involved at all, to comment on these.
a) To make collecting overhead decrease for application on a guest.
(see above)
b) Trace data of host kernel is not involved even if we introduce this
patch set.
Thank you,
--
Yoshihiro YUNOMAE
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: yoshihiro.yunomae.ez@hitachi.com
next prev parent reply other threads:[~2012-07-27 8:55 UTC|newest]
Thread overview: 104+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-24 2:36 [RFC PATCH 0/6] virtio-trace: Support virtio-trace Yoshihiro YUNOMAE
2012-07-24 2:36 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:36 ` Yoshihiro YUNOMAE
2012-07-24 2:37 ` [RFC PATCH 1/6] virtio/console: Add splice_write support Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-08-09 9:00 ` Amit Shah
2012-08-09 9:00 ` [Qemu-devel] " Amit Shah
2012-08-09 9:00 ` Amit Shah
2012-08-09 9:12 ` Masami Hiramatsu
2012-08-09 9:12 ` [Qemu-devel] " Masami Hiramatsu
2012-08-09 9:12 ` Masami Hiramatsu
2012-07-24 2:37 ` [RFC PATCH 2/6] virtio/console: Add a failback for unstealable pipe buffer Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-08-09 9:03 ` Amit Shah
2012-08-09 9:03 ` [Qemu-devel] " Amit Shah
2012-08-09 9:03 ` Amit Shah
2012-08-09 9:24 ` Borislav Petkov
2012-08-09 9:24 ` [Qemu-devel] " Borislav Petkov
2012-08-09 9:24 ` Borislav Petkov
2012-08-09 9:24 ` Masami Hiramatsu
2012-08-09 9:24 ` [Qemu-devel] " Masami Hiramatsu
2012-08-09 9:24 ` Masami Hiramatsu
2012-08-09 9:55 ` Amit Shah
2012-08-09 9:55 ` [Qemu-devel] " Amit Shah
2012-08-09 9:55 ` Amit Shah
2012-08-09 9:58 ` Avi Kivity
2012-08-09 9:58 ` [Qemu-devel] " Avi Kivity
2012-08-09 9:58 ` Avi Kivity
2012-08-09 10:14 ` Amit Shah
2012-08-09 10:14 ` [Qemu-devel] " Amit Shah
2012-08-09 10:14 ` Amit Shah
2012-08-09 12:35 ` Steven Rostedt
2012-08-09 12:35 ` [Qemu-devel] " Steven Rostedt
2012-08-09 12:35 ` Steven Rostedt
2012-07-24 2:37 ` [RFC PATCH 3/6] virtio/console: Wait until the port is ready on splice Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-07-24 2:37 ` [RFC PATCH 4/6] ftrace: Allow stealing pages from pipe buffer Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-07-30 22:12 ` Steven Rostedt
2012-07-30 22:12 ` [Qemu-devel] " Steven Rostedt
2012-07-30 22:12 ` Steven Rostedt
2012-07-24 2:37 ` [RFC PATCH 5/6] virtio/console: Allocate scatterlist according to the current pipe size Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-07-24 2:37 ` [RFC PATCH 6/6] tools: Add guest trace agent as a user tool Yoshihiro YUNOMAE
2012-07-24 2:37 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 2:37 ` Yoshihiro YUNOMAE
2012-07-24 3:27 ` [RFC PATCH 0/6] virtio-trace: Support virtio-trace Masami Hiramatsu
2012-07-24 3:27 ` Masami Hiramatsu
2012-07-24 3:27 ` [Qemu-devel] " Masami Hiramatsu
2012-07-24 10:02 ` Stefan Hajnoczi
2012-07-24 10:02 ` [Qemu-devel] " Stefan Hajnoczi
2012-07-24 10:02 ` Stefan Hajnoczi
2012-07-24 11:03 ` Masami Hiramatsu
2012-07-24 11:03 ` Masami Hiramatsu
2012-07-24 11:03 ` [Qemu-devel] " Masami Hiramatsu
2012-07-24 11:19 ` Yoshihiro YUNOMAE
2012-07-24 11:19 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-24 11:19 ` Yoshihiro YUNOMAE
2012-07-24 13:41 ` Stefan Hajnoczi
2012-07-24 13:41 ` [Qemu-devel] " Stefan Hajnoczi
2012-07-24 13:41 ` Stefan Hajnoczi
2012-07-25 9:13 ` Yoshihiro YUNOMAE
2012-07-25 9:13 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-25 9:13 ` Re: " Yoshihiro YUNOMAE
2012-07-26 10:52 ` Stefan Hajnoczi
2012-07-26 10:52 ` [Qemu-devel] " Stefan Hajnoczi
2012-07-26 10:52 ` Re: " Stefan Hajnoczi
2012-07-24 13:43 ` Stefan Hajnoczi
2012-07-24 13:43 ` [Qemu-devel] " Stefan Hajnoczi
2012-07-24 13:43 ` Stefan Hajnoczi
2012-07-24 20:26 ` [Qemu-devel] " Blue Swirl
2012-07-24 20:26 ` Blue Swirl
2012-07-25 8:15 ` Masami Hiramatsu
2012-07-25 8:15 ` Masami Hiramatsu
2012-07-25 8:15 ` Masami Hiramatsu
2012-07-27 18:58 ` Blue Swirl
2012-07-27 18:58 ` Blue Swirl
2012-07-27 18:58 ` Blue Swirl
2012-07-26 11:35 ` Amit Shah
2012-07-26 11:35 ` [Qemu-devel] " Amit Shah
2012-07-26 11:35 ` Amit Shah
2012-07-27 8:55 ` Yoshihiro YUNOMAE [this message]
2012-07-27 8:55 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-27 8:55 ` Yoshihiro YUNOMAE
2012-07-27 9:43 ` Amit Shah
2012-07-27 9:43 ` [Qemu-devel] " Amit Shah
2012-07-27 9:43 ` Amit Shah
2012-07-31 0:52 ` Yoshihiro YUNOMAE
2012-07-31 0:52 ` [Qemu-devel] " Yoshihiro YUNOMAE
2012-07-31 0:52 ` Re: " Yoshihiro YUNOMAE
2012-08-09 10:16 ` Amit Shah
2012-08-09 10:16 ` [Qemu-devel] " Amit Shah
2012-08-09 10:16 ` Amit Shah
2012-08-21 2:17 ` Rusty Russell
2012-08-21 2:17 ` [Qemu-devel] " Rusty Russell
2012-08-21 2:17 ` Rusty Russell
2012-08-21 5:09 ` Amit Shah
2012-08-21 5:09 ` [Qemu-devel] " Amit Shah
2012-08-21 5:09 ` Amit Shah
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=5012576F.7040500@hitachi.com \
--to=yoshihiro.yunomae.ez@hitachi.com \
--cc=amit.shah@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=arnd@arndb.de \
--cc=bp@amd64.org \
--cc=fche@redhat.com \
--cc=fweisbec@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=herbert@gondor.hengli.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rostedt@goodmis.org \
--cc=virtualization@lists.linux-foundation.org \
--cc=yrl.pp-manager.tt@hitachi.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 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.