Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp621531iof; Mon, 6 Jun 2022 09:31:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKGmX3xoeYoInd+J9B9Ft/EMrylUEDi0KWC1iIimixkiRRaXc2wxMMJvNfNLE2avf7dKNX X-Received: by 2002:a65:4506:0:b0:3db:48b1:9ff5 with SMTP id n6-20020a654506000000b003db48b19ff5mr22294776pgq.89.1654533089040; Mon, 06 Jun 2022 09:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654533089; cv=none; d=google.com; s=arc-20160816; b=ynZ3jnZiC9FBitkF8EJigM1XG8kY58Rv4A3PBQRF+nERM1LTIFRLzrsPgoGh24JHT/ FMAqIVq9fKtQ3nRzGxCQkTFrgwUZjUwsfcxnVdUYslx/VE5SQGHjYrdbv7g97ocLtVKB YKmX3PJw5PNEoBCFIZnmsDH6YQ2/P+/I3x3CnkZhfK2ZvBLsbpwYWWGuZuPhZeeCYlhl XeFPEMfcfwWiYcZD981TlqroaUpRd156a23C4oF0zHtO3A2q8K4lKZa4WyKNgBsSSawe m8G5EpJDayti+1sZg43DH6CT1zVTa7hb4nTuqWQhgZflN2878BsJSQZX53DWtiI2I5vN CPxg== 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=vhMMjLzIwmcQWz+cd8hY1LS5SBvPZoNu1vdCQciJzuo=; b=HkpXVKFS+bPWUuOWhNSeOREfbrBNE0iYdGDjoGxcpz2VfuOLCWEUr1b1P9tnHSFLeV JoltM8mWSfBHMYultMG8FwNCQcuCN6utRPA72/xGGHS62/gJPxeOsePISKBwu7rT8yr1 ad2MB2fAXXaNdyA4cDEvF2eQGWVOOpV+cY0fDV2+NSCu2+Ee1XHDKs4SmPv7cIvaCPZp TuzCoP/VW3DPr5meCRpJem8o40mvwKYBccXEw04RNlFc5NwkXJYm2anSwtjScKIQ5jxu pi54UADissOp3iv0cgDRYlTuUaCZWjv6DnX23Ref+pBTyz+p6MGuNaniU6g0VBzqk7pT BqsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BwTLKaOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s22-20020a17090aad9600b001e3524a0a09si21611244pjq.108.2022.06.06.09.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BwTLKaOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F9AD158F0B; Mon, 6 Jun 2022 09:14:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241658AbiFFQNx (ORCPT + 99 others); Mon, 6 Jun 2022 12:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241645AbiFFQNv (ORCPT ); Mon, 6 Jun 2022 12:13:51 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2662C12E81D for ; Mon, 6 Jun 2022 09:13:50 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id w2so26537273ybi.7 for ; Mon, 06 Jun 2022 09:13:49 -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=vhMMjLzIwmcQWz+cd8hY1LS5SBvPZoNu1vdCQciJzuo=; b=BwTLKaOg1/1dfwnsB9C1ceKn3rjxgUh6zZzwudOhSCI/8LUJAlldzl67X+50ehAm+M /YXqPYWB40pSF7lyeVcP+k4cOhMwtzU4TXT3kuCgfNw0/enGvprVCLsmmfHLculQfzHG aHoMtQnecuGhfKl47bdKilOaSD+lqRcKUPUb61tfborArvtNd6HmHfT1+uK1T8OHj3/0 M9tybThMQIhL2uxXBRYYSSpYta19b80YeVlpvujCzOVYYzKx4zMqLN4ohU52pX/7sfIt uTa76ldvVcZwq6OK8bFJIROD/yqUjhdoi8Zjnb8a+s8mm37MYZVrc/RqsEqOgZ+h49it oPgw== 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=vhMMjLzIwmcQWz+cd8hY1LS5SBvPZoNu1vdCQciJzuo=; b=nkTywkZBnSe4IwshbMUgMLVFlwsVhBXui1gjiy8WM5idZaD/mlZKVHKI2edkHKEdqC B0ZY6L0b+EdSCsc/pQNCcMlADiqLSJWo9j5RIoKrA26od1aEQq0vuQaaph7zdqIRII/B yqCRrZBbM4JNn0xwTU6QUf82uFKsVOV6fek+Tne4DzW0SauIQlSBKPWBathrQF4iGlr0 0BNjsaGlBg7RJid24hH8+ubSY0cAYziis+RREje7eFwwvk7skmao3H/Lswfw7dEenqvP eo2XX2tq+wD4EQ9Ckm7LDv/seYIvxEwH2aewKfvf82IcnPbZWHbuPcOXX2yNxJOi9KMQ MQTw== X-Gm-Message-State: AOAM533psMcemwBjcs5W1dIxSMvpr4soaOgI165Ms4GkELeUsG2fBvBY L3xaeTH2Gf3AqWpCd4EhJ/8R21Rk7zF27bTSvCzBxQ== X-Received: by 2002:a25:aa32:0:b0:65c:af6a:3502 with SMTP id s47-20020a25aa32000000b0065caf6a3502mr25747583ybi.598.1654532028789; Mon, 06 Jun 2022 09:13:48 -0700 (PDT) MIME-Version: 1.0 References: <20220606070804.40268-1-songmuchun@bytedance.com> In-Reply-To: From: Eric Dumazet Date: Mon, 6 Jun 2022 09:13:37 -0700 Message-ID: Subject: Re: [PATCH] tcp: use kvmalloc_array() to allocate table_perturb To: Muchun Song Cc: David Miller , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Paolo Abeni , netdev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Mon, Jun 6, 2022 at 9:05 AM Eric Dumazet wrote: > > On Mon, Jun 6, 2022 at 12:08 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 > > kvmalloc_array() to allocate table_perturb. > > > > Signed-off-by: Muchun Song > > Please add a Fixes: tag and CC original author ? > > Thanks. Also using alloc_large_system_hash() might be a better option anyway, spreading pages on multiple nodes on NUMA hosts.