Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
From: Michael Mueller <hidden> Date: 2014-05-13 15:07:41
On Tue, 13 May 2014 16:29:58 +0200
Romain Francoise [off-list ref] wrote:
"Michael S. Tsirkin" [off-list ref] writes:
quoted
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
From: "Michael S. Tsirkin" <mst@redhat.com> Date: 2014-05-13 15:17:06
On Tue, May 13, 2014 at 04:29:58PM +0200, Romain Francoise wrote:
"Michael S. Tsirkin" [off-list ref] writes:
quoted
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
Hmm true, and Dave thought the structure's too large.
I'll have to do some benchmarks to see what the effect
of Michael's patch is, performance-wise.
If it's too expensive I can pick up your patch, no need to
repost.
--
MST
From: Michael Mueller <hidden> Date: 2014-05-14 08:11:33
On Tue, 13 May 2014 18:15:27 +0300
"Michael S. Tsirkin" [off-list ref] wrote:
On Tue, May 13, 2014 at 04:29:58PM +0200, Romain Francoise wrote:
quoted
"Michael S. Tsirkin" [off-list ref] writes:
quoted
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
Hmm true, and Dave thought the structure's too large.
I'll have to do some benchmarks to see what the effect
of Michael's patch is, performance-wise.
If it's too expensive I can pick up your patch, no need to
repost.
From: Michael Mueller <hidden> Date: 2014-06-13 11:57:18
On Tue, 13 May 2014 18:15:27 +0300
"Michael S. Tsirkin" [off-list ref] wrote:
On Tue, May 13, 2014 at 04:29:58PM +0200, Romain Francoise wrote:
quoted
"Michael S. Tsirkin" [off-list ref] writes:
quoted
Please dont' do this, extra indirection hurts performance.
Instead, please change vhost_net_open and scsi to allocate the whole
structure with vmalloc if kmalloc fails, along the lines of
74d332c13b2148ae934ea94dac1745ae92efe8e5
Hmm true, and Dave thought the structure's too large.
I'll have to do some benchmarks to see what the effect
of Michael's patch is, performance-wise.
If it's too expensive I can pick up your patch, no need to
repost.
Hi Michael,
do you have any update in this case for us?
Michael