[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89i+wqVnfwOcpvnBwoF4ZvjZL-RcsqdT5khu-3CHpCcoKTQ@mail.gmail.com>
Date: Wed, 8 Jun 2022 21:03:31 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Muchun Song <songmuchun@...edance.com>
Cc: David Miller <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>, Willy Tarreau <w@....eu>
Subject: Re: [PATCH v2] tcp: use alloc_large_system_hash() to allocate table_perturb
On Tue, Jun 7, 2022 at 12:02 AM Muchun Song <songmuchun@...edance.com> wrote:
>
> In our server, there may be no high order (>= 6) memory since we reserve
> lots of HugeTLB pages when booting. Then the system panic. So use
> alloc_large_system_hash() to allocate table_perturb.
>
> Fixes: e9261476184b ("tcp: dynamically allocate the perturb table used by source ports")
> Signed-off-by: Muchun Song <songmuchun@...edance.com>
> ---
> v2:
> - Add Fixes tag and replace kvmalloc_array with alloc_large_system_hash suggested
> by Eric Dumazet.
>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Thanks.
Powered by blists - more mailing lists