Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread Jason Wang
On 2018/10/18 上午9:22, jiangyiwen wrote: On 2018/10/17 20:31, Jason Wang wrote: On 2018/10/17 下午7:41, jiangyiwen wrote: On 2018/10/17 17:51, Jason Wang wrote: On 2018/10/17 下午5:39, Jason Wang wrote: Hi Jason and Stefan, Maybe I find the reason of bad performance. I found pkt_len is limited

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread jiangyiwen
On 2018/10/17 20:31, Jason Wang wrote: > > On 2018/10/17 下午7:41, jiangyiwen wrote: >> On 2018/10/17 17:51, Jason Wang wrote: >>> On 2018/10/17 下午5:39, Jason Wang wrote: > Hi Jason and Stefan, > > Maybe I find the reason of bad performance. > > I found pkt_len is limited to

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread Jason Wang
On 2018/10/17 下午7:41, jiangyiwen wrote: On 2018/10/17 17:51, Jason Wang wrote: On 2018/10/17 下午5:39, Jason Wang wrote: Hi Jason and Stefan, Maybe I find the reason of bad performance. I found pkt_len is limited to VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE(4K), it will cause the bandwidth is limited

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread jiangyiwen
On 2018/10/17 17:51, Jason Wang wrote: > > On 2018/10/17 下午5:39, Jason Wang wrote: >>> Hi Jason and Stefan, >>> >>> Maybe I find the reason of bad performance. >>> >>> I found pkt_len is limited to VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE(4K), >>> it will cause the bandwidth is limited to

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread jiangyiwen
On 2018/10/17 17:39, Jason Wang wrote: > > On 2018/10/17 下午5:27, jiangyiwen wrote: >> On 2018/10/15 14:12, jiangyiwen wrote: >>> On 2018/10/15 10:33, Jason Wang wrote: On 2018年10月15日 09:43, jiangyiwen wrote: > Hi Stefan & All: > > Now I find vhost-vsock has two performance

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread Jason Wang
On 2018/10/17 下午5:39, Jason Wang wrote: Hi Jason and Stefan, Maybe I find the reason of bad performance. I found pkt_len is limited to VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE(4K), it will cause the bandwidth is limited to 500~600MB/s. And once I increase to 64k, it can improve about 3

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread Jason Wang
On 2018/10/17 下午5:27, jiangyiwen wrote: On 2018/10/15 14:12, jiangyiwen wrote: On 2018/10/15 10:33, Jason Wang wrote: On 2018年10月15日 09:43, jiangyiwen wrote: Hi Stefan & All: Now I find vhost-vsock has two performance problems even if it is not designed for performance. First, I think

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-17 Thread jiangyiwen
On 2018/10/15 14:12, jiangyiwen wrote: > On 2018/10/15 10:33, Jason Wang wrote: >> >> >> On 2018年10月15日 09:43, jiangyiwen wrote: >>> Hi Stefan & All: >>> >>> Now I find vhost-vsock has two performance problems even if it >>> is not designed for performance. >>> >>> First, I think vhost-vsock

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-15 Thread jiangyiwen
On 2018/10/15 10:33, Jason Wang wrote: > > > On 2018年10月15日 09:43, jiangyiwen wrote: >> Hi Stefan & All: >> >> Now I find vhost-vsock has two performance problems even if it >> is not designed for performance. >> >> First, I think vhost-vsock should faster than vhost-net because it >> is no

Re: [RFC] VSOCK: The performance problem of vhost_vsock.

2018-10-14 Thread Jason Wang
On 2018年10月15日 09:43, jiangyiwen wrote: Hi Stefan & All: Now I find vhost-vsock has two performance problems even if it is not designed for performance. First, I think vhost-vsock should faster than vhost-net because it is no TCP/IP stack, but the real test result vhost-net is 5~10 times