Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread Jason Wang
On 2018/11/5 下午3:43, jiangyiwen wrote: Now vsock only support send/receive small packet, it can't achieve high performance. As previous discussed with Jason Wang, I revisit the idea of vhost-net about mergeable rx buffer and implement the mergeable rx buffer in vhost-vsock, it can allow big

[PATCH 4/5] VSOCK: modify default rx buf size to improve performance

2018-11-05 Thread jiangyiwen
Since VSOCK already support mergeable rx buffer, so it can implement the balance with performance and guest memory, we can increase the default rx buffer size to improve performance. Signed-off-by: Yiwen Jiang --- include/linux/virtio_vsock.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 0/1] vhost: add vhost_blk driver

2018-11-05 Thread Christian Borntraeger
On 11/02/2018 07:26 PM, Michael S. Tsirkin wrote: > On Fri, Nov 02, 2018 at 06:21:22PM +, Vitaly Mayatskikh wrote: >> vhost_blk is a host-side kernel mode accelerator for virtio-blk. The >> driver allows VM to reach a near bare-metal disk performance. See IOPS >> numbers below (fio

Re: [PATCH 0/1] vhost: add vhost_blk driver

2018-11-05 Thread Christian Borntraeger
On 11/05/2018 04:00 AM, Jason Wang wrote: > > On 2018/11/3 上午2:21, Vitaly Mayatskikh wrote: >> vhost_blk is a host-side kernel mode accelerator for virtio-blk. The >> driver allows VM to reach a near bare-metal disk performance. See IOPS >> numbers below (fio --rw=randread --bs=4k). >> >> This

Re: [PATCH v4 3/4] drm/virtio: add in/out fence support for explicit synchronization

2018-11-05 Thread Emil Velikov
On Mon, 5 Nov 2018 at 11:42, Robert Foss wrote: > > When the execbuf call receives an in-fence it will get the dma_fence > related to that fence fd and wait on it before submitting the draw call. > > On the out-fence side we get fence returned by the submitted draw call > and attach it to a

Re: [PATCH 1/5] VSOCK: support fill mergeable rx buffer in guest

2018-11-05 Thread Jason Wang
On 2018/11/5 下午3:45, jiangyiwen wrote: In driver probing, if virtio has VIRTIO_VSOCK_F_MRG_RXBUF feature, it will fill mergeable rx buffer, support for host send mergeable rx buffer. It will fill a page everytime to compact with small packet and big packet. Signed-off-by: Yiwen Jiang ---

Re: [PATCH 3/5] VSOCK: support receive mergeable rx buffer in guest

2018-11-05 Thread Jason Wang
On 2018/11/5 下午3:47, jiangyiwen wrote: Guest receive mergeable rx buffer, it can merge scatter rx buffer into a big buffer and then copy to user space. Signed-off-by: Yiwen Jiang --- include/linux/virtio_vsock.h| 9 net/vmw_vsock/virtio_transport.c| 75

Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread jiangyiwen
On 2018/11/5 17:21, Jason Wang wrote: > > On 2018/11/5 下午3:43, jiangyiwen wrote: >> Now vsock only support send/receive small packet, it can't achieve >> high performance. As previous discussed with Jason Wang, I revisit the >> idea of vhost-net about mergeable rx buffer and implement the

Re: [PATCH 1/1] vhost: add per-vq worker thread

2018-11-05 Thread Jason Wang
On 2018/11/5 上午11:28, Vitaly Mayatskih wrote: On Sun, Nov 4, 2018 at 9:53 PM Jason Wang wrote: I wonder whether or not it's better to allow the device to specific the worker here instead of forcing a per vq worker model. Then we can keep the behavior of exist implementation and do

Re: [PATCH 0/1] vhost: add vhost_blk driver

2018-11-05 Thread Jason Wang
On 2018/11/5 上午11:23, Vitaly Mayatskih wrote: On Sun, Nov 4, 2018 at 10:00 PM Jason Wang wrote: # fio num-jobs # A: bare metal over block # B: bare metal over file # C: virtio-blk over block # D: virtio-blk over file # E: vhost-blk bio over block # F: vhost-blk kiocb over block # G:

Re: [PATCH 2/5] VSOCK: support fill data to mergeable rx buffer in host

2018-11-05 Thread Jason Wang
On 2018/11/5 下午3:45, jiangyiwen wrote: When vhost support VIRTIO_VSOCK_F_MRG_RXBUF feature, it will merge big packet into rx vq. Signed-off-by: Yiwen Jiang --- drivers/vhost/vsock.c | 117 +++--- include/linux/virtio_vsock.h | 1 +

Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread Jason Wang
On 2018/11/6 上午10:17, jiangyiwen wrote: On 2018/11/5 17:21, Jason Wang wrote: On 2018/11/5 下午3:43, jiangyiwen wrote: Now vsock only support send/receive small packet, it can't achieve high performance. As previous discussed with Jason Wang, I revisit the idea of vhost-net about mergeable rx

Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread jiangyiwen
On 2018/11/6 10:41, Jason Wang wrote: > > On 2018/11/6 上午10:17, jiangyiwen wrote: >> On 2018/11/5 17:21, Jason Wang wrote: >>> On 2018/11/5 下午3:43, jiangyiwen wrote: Now vsock only support send/receive small packet, it can't achieve high performance. As previous discussed with Jason

Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread Jason Wang
On 2018/11/6 上午11:17, jiangyiwen wrote: On 2018/11/6 10:41, Jason Wang wrote: On 2018/11/6 上午10:17, jiangyiwen wrote: On 2018/11/5 17:21, Jason Wang wrote: On 2018/11/5 下午3:43, jiangyiwen wrote: Now vsock only support send/receive small packet, it can't achieve high performance. As previous

Re: [PATCH 0/5] VSOCK: support mergeable rx buffer in vhost-vsock

2018-11-05 Thread jiangyiwen
On 2018/11/6 11:32, Jason Wang wrote: > > On 2018/11/6 上午11:17, jiangyiwen wrote: >> On 2018/11/6 10:41, Jason Wang wrote: >>> On 2018/11/6 上午10:17, jiangyiwen wrote: On 2018/11/5 17:21, Jason Wang wrote: > On 2018/11/5 下午3:43, jiangyiwen wrote: >> Now vsock only support send/receive

Re: [PATCH 1/5] VSOCK: support fill mergeable rx buffer in guest

2018-11-05 Thread jiangyiwen
On 2018/11/6 11:38, Jason Wang wrote: > > On 2018/11/5 下午3:45, jiangyiwen wrote: >> In driver probing, if virtio has VIRTIO_VSOCK_F_MRG_RXBUF feature, >> it will fill mergeable rx buffer, support for host send mergeable >> rx buffer. It will fill a page everytime to compact with small >> packet

Re: [PATCH v15 23/26] sched: early boot clock

2018-11-05 Thread Dominique Martinet
(added various kvm/virtualization lists in Cc as well as qemu as I don't know who's "wrong" here) Pavel Tatashin wrote on Thu, Jul 19, 2018: > Allow sched_clock() to be used before schec_clock_init() is called. > This provides with a way to get early boot timestamps on machines with > unstable

Re: [PATCH 2/5] VSOCK: support fill data to mergeable rx buffer in host

2018-11-05 Thread jiangyiwen
On 2018/11/6 11:43, Jason Wang wrote: > > On 2018/11/5 下午3:45, jiangyiwen wrote: >> When vhost support VIRTIO_VSOCK_F_MRG_RXBUF feature, >> it will merge big packet into rx vq. >> >> Signed-off-by: Yiwen Jiang >> --- >> drivers/vhost/vsock.c | 117 >>

Re: [PATCH 3/5] VSOCK: support receive mergeable rx buffer in guest

2018-11-05 Thread jiangyiwen
On 2018/11/6 12:00, Jason Wang wrote: > > On 2018/11/5 下午3:47, jiangyiwen wrote: >> Guest receive mergeable rx buffer, it can merge >> scatter rx buffer into a big buffer and then copy >> to user space. >> >> Signed-off-by: Yiwen Jiang >> --- >> include/linux/virtio_vsock.h| 9