Re: [PATCH RFC] virtio: put last seen used index into ring itself

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Thursday, May 6, 2010 - 8:33 pm

On Thu, 6 May 2010 03:49:46 pm Michael S. Tsirkin wrote:

I couldn't see that in the patch?  I don't think it's necessary
though, since the write of depends last_used depends on the read of
used (and no platform we care about would reorder such a thing).

I'm reasonably happy, but we should write some convenient test for
missing interrupts.

I'm thinking of a sender which does a loop: blasts 1MB of UDP packets,
then prints the time and sleep(1).  The receiver would print the time
every 1MB of received data.  The two times should almost exactly correspond.

Assuming that the network doesn't overflow and lose stuff, this should
identify any missing wakeup/interrupts (depending on direction used).

Cheers,
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] virtio: put last seen used index into ring itself, Michael S. Tsirkin, (Wed May 5, 1:58 pm)
Re: [PATCH RFC] virtio: put last seen used index into ring ..., Michael S. Tsirkin, (Wed May 5, 11:19 pm)
Re: [PATCH RFC] virtio: put last seen used index into ring ..., Rusty Russell, (Thu May 6, 8:33 pm)
Re: [PATCH RFC] virtio: put last seen used index into ring ..., Michael S. Tsirkin, (Sun May 9, 2:06 pm)
Re: [PATCH RFC] virtio: put last seen used index into ring ..., Michael S. Tsirkin, (Tue May 11, 12:48 pm)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Tue May 11, 12:52 pm)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Wed May 19, 3:33 pm)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Thu May 20, 3:04 am)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Sun May 23, 8:31 am)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Sun May 23, 8:51 am)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Sun May 23, 8:56 am)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Sun May 23, 10:28 am)
Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used in ..., Michael S. Tsirkin, (Mon May 24, 1:05 am)