Re: [PATCH 0/4] IB: decrease large contigous allocation

From: Jason Gunthorpe
Date: Tue Sep 18 2018 - 10:46:28 EST


On Tue, Sep 18, 2018 at 04:03:42PM +0300, Jan Dakinevich wrote:
> The size of mlx4_ib_device became too large to be allocated as whole contigous
> block of memory. Currently it takes about 55K. On architecture with 4K page it
> means 3rd order.
>
> This patch series makes an attempt to split mlx4_ib_device into several parts
> and allocate them with less expensive kvzalloc

Why split it up? Any reason not to just allocate the whole thing with
kvzalloc?

Jason