Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp87884iol; Wed, 8 Jun 2022 22:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7BzRcUO9/cPf+V6PKGb2TmvQT70gSI9cD2/QGc3PzvKCIOr17u3iDgYOMf3w5NAPNOfS8 X-Received: by 2002:a17:902:e34b:b0:166:342f:82c6 with SMTP id p11-20020a170902e34b00b00166342f82c6mr37009231plc.29.1654753666008; Wed, 08 Jun 2022 22:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654753666; cv=none; d=google.com; s=arc-20160816; b=upoLRRw9FkvgV1UmED6Ih1mHlZe2tubYEn5NTrROw3rlw4qGG18nuHYH/WhQ6Fm2fR layv2kr1Em8MneE9AN5gCnVhpJAVOl+65reLDIZ3b1ijddAv7/0DrCiipaGpSpatPHYi 6EjqXZWN7OhDtFeIr2atm97ds3gwEQqa9+qia5TTI4Uf3wlYVubb3xTuAXOKFY0V0i93 9cXcdN6yRJzzUUvZlXuAjH2tjMrAjg0zgOi2ssetefw0TgT3UfXIrpM0VJ1dv2Fjhc4d H7GeQIF+Lg8DF2WGEi47f4OprNPHcsmCAWxWCkHX+IzjRu6WIHqdS7eU2usa5kLKLuy8 25nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bhGauVid88M2xfzqgH6+LgDOjyyWjact/QPhQzDbR78=; b=BCdiqE2C5/djAU6ZR9oI9aQO972arq3s+uyZBmTY9ZlL2gZniNdOhjqOQhfw7K+RoD LNyCtIxDx39FGzqsd773/9c/4TsTKwRpz4QaV1WmXDLVXoNrQli6XvMYEDAo4yXbblco g0m8ppfsPsEAmg+wTXckBice6i6I3X8XBn0MfLWeZlZ4TCjSFpOjtQxPgXsBILdrTFYf rlFuBp1yr8Wlmn/gaeq927ENcJ7CodqlveYcuT+F6XryNmpYarsriyBfXW14TT3s+/vK 27Rd9Surv+V+9B2xHycRfe+iHq35U8kA8cNeMg7XnGtvGwP9WGrNG7PAe/uTOgkI9SAZ 6Znw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="tV/gAoUo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a656bc7000000b003fdc8b4d872si16910889pgw.602.2022.06.08.22.47.32; Wed, 08 Jun 2022 22:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="tV/gAoUo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbiFIEDr (ORCPT + 99 others); Thu, 9 Jun 2022 00:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiFIEDo (ORCPT ); Thu, 9 Jun 2022 00:03:44 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A3C7CDE1 for ; Wed, 8 Jun 2022 21:03:43 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2ff7b90e635so228961817b3.5 for ; Wed, 08 Jun 2022 21:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bhGauVid88M2xfzqgH6+LgDOjyyWjact/QPhQzDbR78=; b=tV/gAoUoowgLPEjzHoq4Upm0xFu3ArE2deAaoABjpx5ze3SNxLcMV+K4/bnZX4/B0u m5j6yUQRocdDqWrnUUvQK+to5PTCe8UyNcLPhGGj6jyPR65lT9DdRbaZb3q3RFW+DbJt PQnPNHEquFsN2Kmux+Lh4eRBR04amv/NRnIbra7cUhtoU4VImvtlahQ90gjMtFIV/6FM X0lufO+vycL9++U34MppjoJHDNAG6aPP3PrOcBOEMJQr38bi4vihQ/ivpj5a0Ab2N/rg lCslEiVifNPekaX4WmWLPpFjBPhqX/hRsGhTjxwWbGnQgByPE9KMOvNoi6AYgXFBUd8+ 9jHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bhGauVid88M2xfzqgH6+LgDOjyyWjact/QPhQzDbR78=; b=DT3gRKTuuYCizbzLGH44DEcXFUl/MZDu70BprSocx/vc40y2mLFhvP9WiQecYrjZZ4 ViT2jpG6pMLkmJxMqhQDpKiVl+5OUYXWNQ0lOnyB/NbjCKG97GdE3FUXGo/5NM99DzhO 45rw+K/sfW7r5R+3wtUTL6iG7OIaq+h1tQFTi5aHDdDXFxsOik9XDnRnpQ0LwsNvO3he 0Mp6DKAzAn2Y7bkrVuypzPPXFBmR/zGob3zS3hVsxnFkLHJR956XzX76nPdcuAiV0jEr nXdhiewQgzSdf7GQ4i2Yp2txB1MZBC54KNPmiY5TZEbyaAWTGYLTFYkieNbkfeb67gDM 2S0w== X-Gm-Message-State: AOAM533/sWSkV669aoP2ktNBUabYo8RBnmsPwuWjbMq8cg2KUhD5cjNn V5NxIfHXl/2MFgxegnDncs9fIUmiVC8DZcebp8FPQA== X-Received: by 2002:a0d:d997:0:b0:30c:962e:7aa6 with SMTP id b145-20020a0dd997000000b0030c962e7aa6mr42075679ywe.278.1654747422845; Wed, 08 Jun 2022 21:03:42 -0700 (PDT) MIME-Version: 1.0 References: <20220607070214.94443-1-songmuchun@bytedance.com> In-Reply-To: <20220607070214.94443-1-songmuchun@bytedance.com> From: Eric Dumazet Date: Wed, 8 Jun 2022 21:03:31 -0700 Message-ID: Subject: Re: [PATCH v2] tcp: use alloc_large_system_hash() to allocate table_perturb To: Muchun Song Cc: David Miller , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , netdev , LKML , Willy Tarreau Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 7, 2022 at 12:02 AM Muchun Song 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 > --- > v2: > - Add Fixes tag and replace kvmalloc_array with alloc_large_system_hash suggested > by Eric Dumazet. > Reviewed-by: Eric Dumazet Thanks.