All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about high CPU load during iperf ethernet testing
@ 2014-09-22 13:01 Iurii Konovalenko
  2014-09-23 16:41 ` Stefano Stabellini
  2014-09-23 16:48 ` Ian Campbell
  0 siblings, 2 replies; 10+ messages in thread
From: Iurii Konovalenko @ 2014-09-22 13:01 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Ian Campbell, Stefano Stabellini


[-- Attachment #1.1: Type: text/plain, Size: 1569 bytes --]

Hello, all!

I am running iperf ethernet tests on DRA7XX_EVM board (OMAP5).
Xen version is 4.4.
I run only Linux (kernel 3.8) as Dom0, no other active domains (For clear
tests results I decided not to start DomU).
iperf server is started on host, iperf client is started on board with
command line "*iperf -c 192.168.2.10 -w 256k -m -f M -d -t 60*".

During test I studied CPU load with top tool on Dom0, and saw, that one
VCPU is totally loaded, spending about 50% in software IRQs, and 50% in
system.
Running the same test on clear Linux without Xen, I saw that CPU load is
about 2-4%.

I decided to debug a bit, so I used "*({register uint64_t _r; asm
volatile("mrrc " "p15, 0, %0, %H0, c14" ";" : "=r" (_r)); _r; })*" command
to read timer counter before and after operations I want to test.

In such way I've found, that most time of CPU is spent in functions
*enable_irq/disable_irq_nosync* and
*spin_lock_irqsave/spin_unlock_irqrestore* (mostly in "*mrs    %0, cpsr
@ arch_local_irq_save*"/*"msr    cpsr_c, %0    @ local_irq_restore"*). When
running without Xen it should not take so much time.

So, could anyone explain me some questions:
1. Is it normal behaviour?
2. Does hypervisor trap cpsr register? I suppose, that hypervisor trap
access to cpsr register, that leads to additional overhead, but I can't
find place in sources where it happens.

Thank you in advance.
Best regards.

Iurii Konovalenko | Senior Software Engineer
GlobalLogic
P +3.8044.492.9695 M +38.099.932.2909
S yufuntik
www.globallogic.com
http://www.globallogic.com/email_disclaimer.txt

[-- Attachment #1.2: Type: text/html, Size: 4046 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-09-27 11:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-22 13:01 Question about high CPU load during iperf ethernet testing Iurii Konovalenko
2014-09-23 16:41 ` Stefano Stabellini
2014-09-24 16:37   ` Iurii Konovalenko
2014-09-24 17:57     ` Stefano Stabellini
2014-09-25 14:12       ` Iurii Konovalenko
2014-09-25 15:10         ` Ian Campbell
2014-09-27 11:20           ` Iurii Konovalenko
2014-09-23 16:48 ` Ian Campbell
2014-09-24 17:01   ` Iurii Konovalenko
2014-09-24 17:51     ` Stefano Stabellini

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.