[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130625.161910.683324374150724465.davem@davemloft.net>
Date: Tue, 25 Jun 2013 16:19:10 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: or.gerlitz@...il.com
Cc: eric.dumazet@...il.com, amirv@...lanox.com, netdev@...r.kernel.org,
ogerlitz@...lanox.com, yevgenyp@...lanox.com
Subject: Re: [PATCH net-next] mlx4: allow order-0 memory allocations in RX
path
From: Or Gerlitz <or.gerlitz@...il.com>
Date: Tue, 25 Jun 2013 11:53:50 +0300
> On Sun, Jun 23, 2013 at 6:17 PM, Eric Dumazet <eric.dumazet@...il.com> wrote:
>> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>>
>> mlx4 exclusively uses order-2 allocations in RX path, which are
>> likely to fail under memory pressure.
>>
>> We therefore drop frames more than needed.
>>
>> This patch tries order-3, order-2, order-1 and finally order-0
>> allocations to keep good performance, yet allow allocations if/when
>> memory gets fragmented.
>>
>> By using larger pages, and avoiding unnecessary get_page()/put_page()
>> on compound pages, this patch improves performance as well, lowering
>> false sharing on struct page.
>>
>> Also use GFP_KERNEL allocations in initialization path, as allocating 12
>> MB (390 order-3 pages) can easily fail with GFP_ATOMIC.
>>
>> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>
> Amir is OOO and I am covering for him, so:
>
> Acked-by: Or Gerlitz <ogerlitz@...lanox.com>
>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists