* vhost_net module TX path is expensive?
@ 2013-04-10 13:46 Tushar Swain
0 siblings, 0 replies; 2+ messages in thread
From: Tushar Swain @ 2013-04-10 13:46 UTC (permalink / raw)
To: kvm
Hi,
I am running a VM in Linux-kvm (kernel 3.6.11-4 ) that uses vhost_net
driver for sending/receiving traffic in backend. VM has two ports and
the stack running in the VM functions like a simple router that
receives packet from one virtual port and simply routes it to other
virtual port. In the backend, vhost_net driver does the actual packet
handling for VM.
In my routing test, the vhost_net TX path seems to be twice expensive
than RX packet.
For a 1500 byte packet, "sendmsg" socket call in "handle_tx" routine in
"drivers/vhost/net.c" takes almost twice the time than "recvmsg"
socket call in "handle_rx" routine
sendmsg takes ~12000 cycles
recvmsg takes ~6000 cycles
Is there any thing wrong?
Is there any way to minimize the time taken in sendmsg call?
Thanks
TS
^ permalink raw reply [flat|nested] 2+ messages in thread
* vhost_net module TX path is expensive?
@ 2013-04-10 12:08 Tushar Swain
0 siblings, 0 replies; 2+ messages in thread
From: Tushar Swain @ 2013-04-10 12:08 UTC (permalink / raw)
To: kvm
Hi,
I am running a VM in Linux-kvm (kernel 3.6.11-4 ) that uses vhost_net
driver for sending/receiving traffic in backend. VM has two ports and
the stack running in the VM functions like a simple router that
receives packet from one virtual port and simply routes it to other
virtual port. In the backend, vhost_net driver does the actual packet
handling for VM.
In my routing test, the vhost_net TX path seems to be twice expensive
than RX packet.
The "sendmsg" socket call in "handle_tx" routine in
"drivers/vhost/net.c" takes almost twice the time than "recvmsg"
socket call in "handle_rx" routine
sendmsg takes ~12000 cycles
recvmsg takes ~6000 cycles
Is there any thing wrong?
Is there any way to minimize the time taken in sendmsg call?
Thanks
TS
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-10 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-10 13:46 vhost_net module TX path is expensive? Tushar Swain
-- strict thread matches above, loose matches on Subject: below --
2013-04-10 12:08 Tushar Swain
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.