DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vhost: virtio-net rx-ring stop work after work many hours, bug?
@ 2015-01-27  7:57 Linhaifeng
  2015-01-27  9:37 ` Michael S. Tsirkin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Linhaifeng @ 2015-01-27  7:57 UTC (permalink / raw)
  To: dpd >> dev@dpdk.org, ms >> Michael S. Tsirkin; +Cc: liuyongan

Hi,all

I use vhost-user to send data to VM at first it cant work well but after many hours VM can not receive data but can send data.

(gdb)p avail_idx
$4 = 2668
(gdb)p free_entries
$5 = 0
(gdb)l
        /* check that we have enough buffers */
        if (unlikely(count > free_entries))
            count = free_entries;

        if (count == 0){
            int b=0;
            if(b) { // when set b=1 to notify guest rx_ring will restart to work
                if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT)) {

                    eventfd_write(vq->callfd, 1);
                }
            }
            return 0;
        }

some info i print in guest:

net eth3:vi->num=199
net eth3:rvq info: num_free=57, used->idx=2668, avail->idx=2668
net eth3:svq info: num_free=254, used->idx=1644, avail->idx=1644

net eth3:vi->num=199
net eth3:rvq info: num_free=57, used->idx=2668, avail->idx=2668
net eth3:svq info: num_free=254, used->idx=1645, avail->idx=1645

net eth3:vi->num=199
net eth3:rvq info: num_free=57, used->idx=2668, avail->idx=2668
net eth3:svq info: num_free=254, used->idx=1646, avail->idx=1646

# free
             total       used       free     shared    buffers     cached
Mem:      3924100      337252    3586848          0      95984     138060
-/+ buffers/cache:     103208    3820892
Swap:       970748          0     970748

I have two questions:
1.Should we need to notify guest when there is no buffer in vq->avail?
2.Why virtio_net stop to fill avail?






-- 
Regards,
Haifeng

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

end of thread, other threads:[~2015-02-03 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27  7:57 [dpdk-dev] vhost: virtio-net rx-ring stop work after work many hours, bug? Linhaifeng
2015-01-27  9:37 ` Michael S. Tsirkin
2015-02-03 12:38   ` Linhaifeng
2015-01-28  9:51 ` Xie, Huawei
2015-02-03 12:48   ` Linhaifeng
2015-02-03  7:35 ` Linhaifeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).