Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-27 Thread Andrei Vagin
On Tue, Feb 27, 2018 at 11:27:31AM +0300, Andrey Ryabinin wrote: > > > On 02/27/2018 01:27 AM, Andrei Vagin wrote: > > On Mon, Feb 26, 2018 at 03:29:51PM +0300, Oleg Babin wrote: > >> Currently we allocate more than eight pages of memory in > >> vhost_net_set_ubuf_info() function and we do not ne

Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-27 Thread Andrey Ryabinin
On 02/27/2018 11:12 AM, Oleg Babin wrote: > Currently we allocate more than eight pages of memory in > vhost_net_set_ubuf_info() function and we do not need > them to be physically contiguous, so it is feasible to > replace a call to kmalloc() with a call to kvmalloc(). > > https://jira.sw.ru/brow

Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-27 Thread Andrey Ryabinin
On 02/27/2018 01:27 AM, Andrei Vagin wrote: > On Mon, Feb 26, 2018 at 03:29:51PM +0300, Oleg Babin wrote: >> Currently we allocate more than eight pages of memory in >> vhost_net_set_ubuf_info() function and we do not need >> them to be physically contiguous, so it is feasible to >> replace a cal

[Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-27 Thread Oleg Babin
Currently we allocate more than eight pages of memory in vhost_net_set_ubuf_info() function and we do not need them to be physically contiguous, so it is feasible to replace a call to kmalloc() with a call to kvmalloc(). https://jira.sw.ru/browse/PSBM-81803 Signed-off-by: Oleg Babin --- drivers/

Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-26 Thread Andrei Vagin
On Mon, Feb 26, 2018 at 03:29:51PM +0300, Oleg Babin wrote: > Currently we allocate more than eight pages of memory in > vhost_net_set_ubuf_info() function and we do not need > them to be physically contiguous, so it is feasible to > replace a call to kmalloc() with a call to kvmalloc(). I see onl

Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-26 Thread Oleg Babin
Definitely yes, my fault. Thanks! From: Vasiliy Averin Sent: Monday, February 26, 2018 3:50:54 PM To: Oleg Babin; Andrey Ryabinin Cc: devel@openvz.org Subject: Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3 is it probably kf

Re: [Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-26 Thread Vasily Averin
is it probably kfree -> kvfree required too ? On 2018-02-26 15:29, Oleg Babin wrote: > [This sender failed our fraud detection checks and may not be who they appear > to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] > > Currently we allocate more than eight pages of memory in > v

[Devel] [PATCH vz7] net/vhost: Replace kmalloc with kvmalloc for order>=3

2018-02-26 Thread Oleg Babin
Currently we allocate more than eight pages of memory in vhost_net_set_ubuf_info() function and we do not need them to be physically contiguous, so it is feasible to replace a call to kmalloc() with a call to kvmalloc(). https://jira.sw.ru/browse/PSBM-81803 Signed-off-by: Oleg Babin --- drivers/