"Michael S. Tsirkin" <mst@xxxxxxxxxx> wrote on 05/05/2011 03:42:29 PM: > > > > It shows that 2.9% of the time, the 1 jiffy was not enough > > > > to free up space in the txq. > > > > > > How common is it to free up space in *less than* 1 jiffy? > > > > True, > > Sorry, which statement do you say is true? That interrupt > after less than 1 jiffy is common? I meant to say that, 97% of the time, space was enough for the next xmit to succeed. This is keeping in mind that on average 43 slots were freed up, indicating that the guest was not waiting around for too long. Regarding whether interrupts in less than 1 jiffy is common, I think most of the time it should. But increasing the limit as to when to do the cb would increase to a jiffy. To confirm, I just put some counters in the original code and found that interrupts happen in less than a jiffy around 96.75% of the time, only 3.25% took 1 jiffy. But as expected, this is with the host interrupting immediately, which leads to many stop/start/interrupts due to very little free capacity. > > but the point is that the space freed is just > > enough for 43 entries, keeping it lower means a flood > > of (psuedo) stop's and restart's. > Better yet, here they are in git: > > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost- > net-next-event-idx-v1 > git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu-kvm.git > virtio-net-event-idx-v1 Great, I will pick up from here. thanks, - KK -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html