Thread (10 messages) 10 messages, 3 authors, 2016-09-04

Re: [PATCH] vhost: Add polling mode

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2014-08-17 12:57:47
Also in: kvm, lkml, netdev

Possibly related (same subject, not in this thread)

On Sun, Aug 17, 2014 at 03:35:39PM +0300, Razya Ladelsky wrote:
quoted
quoted
Hi Michael,

Sorry for the delay, had some problems with my mailbox, and I realized 
quoted
quoted
just now that 
my reply wasn't sent.
The vm indeed ALWAYS utilized 100% cpu, whether polling was enabled or 
quoted
quoted
not.
The vhost thread utilized less than 100% (of the other cpu) when 
polling 
quoted
quoted
was disabled.
Enabling polling increased its utilization to 100% (in which case both 
quoted
quoted
cpus were 100% utilized). 
Hmm this means the testing wasn't successful then, as you said:

   The idea was to get it 100% loaded, so we can see that the polling is
   getting it to produce higher throughput.

in fact here you are producing more throughput but spending more power
to produce it, which can have any number of explanations besides polling
improving the efficiency. For example, increasing system load might
disable host power management.
Hi Michael,
I re-ran the tests, this time with the  "turbo mode" and  "C-states" 
features off.
No Polling:
1 VM running netperf (msg size 64B): 1107 Mbits/sec
 Polling:
1 VM running netperf (msg size 64B): 1572 Mbits/sec







As you can see from the new results, the numbers are lower, 
but relatively (polling on/off) there's no change.
Thank you,
Razya
That was just one example. There many other possibilities.  Either
actually make the systems load all host CPUs equally, or divide
throughput by host CPU.
 


 
quoted
quoted
quoted
-- 
MST
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help