All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Hight Processor time of Socket communciation
@ 2017-04-18 16:19 Jiahuan Zhang
  2017-04-18 16:26 ` Peter Maydell
  0 siblings, 1 reply; 10+ messages in thread
From: Jiahuan Zhang @ 2017-04-18 16:19 UTC (permalink / raw)
  To: QEMU Developers

[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

Dear QEMU developers,
I am measuring the processor time for guest-host communication via socket.
The guest app is to write a 5M image to a serial device.
The serial deivce is redirected to the socket in the command line.
The host app is to receive the data via socket until the peer closes the
connection.
Please find in the attachment the Processor time graph generated by Windows
Performance Monitor.

The graph shows the processor time is almost 100% while communicating.
Surprising me! My expectation is 1%.

I wonder if this is the right performance for QEMU socket communciation? Or
this high processor time is caused by the serial device? If so, any
optimization I can do?

Here is the QEMU command-line i used.
$ qemu/build/arm-softmmu/qemu-system-arm.exe -M vexpress-a9 -kernel
zImage_vexpress_4-10 -dtb vexpress-v2p-ca9.dtb -initrd rootfs.img.gz
-append "console=ttyAMA0 root=/dev/ram rdinit=linuxrc" -chardev
socket,host=localhost,port=27015,server,nowait,id=char1 -serial
telnet:localhost:5555,server,nowait -serial stdio -serial stdio -serial
chardev:char1 -monitor telnet:localhost:4444,server,nowait -sd test.img
-nographic

Please correct me if something is wrong.

Best rergards,

Huan

[-- Attachment #2: socket_guest.png --]
[-- Type: image/png, Size: 74842 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-04-19 20:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 16:19 [Qemu-devel] Hight Processor time of Socket communciation Jiahuan Zhang
2017-04-18 16:26 ` Peter Maydell
2017-04-19  8:56   ` Jiahuan Zhang
2017-04-19  9:15     ` Peter Maydell
2017-04-19  9:25       ` Jiahuan Zhang
2017-04-19  9:55         ` Peter Maydell
2017-04-19 10:04           ` Jiahuan Zhang
2017-04-19 10:09             ` Peter Maydell
2017-04-19 13:34               ` Jiahuan Zhang
2017-04-19 20:03                 ` Peter Maydell

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.