Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1597214ybk; Sat, 16 May 2020 16:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrExWU9emyKs0LGwQRCmgwcRCa8TERiUCLcYtvXYS0AeffTvcn2El+RxgEtsrkVv3lE8tb X-Received: by 2002:a17:906:34c7:: with SMTP id h7mr8876929ejb.300.1589673287928; Sat, 16 May 2020 16:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589673287; cv=none; d=google.com; s=arc-20160816; b=UHdGojzYvlrfXK5WghDp9z2YLdlCAt0ARs6jCUeU/XuzaI7gHC3I5TgCZiwGYF3H4n 60BBgI1H5C63MWH1XqvnKvfcfOFNyiP5vUtTQI6yjaj1pvQ9u+mR+AbMlWKx47hktP6w Ff7UFQXd7GIU5Oqtp0xNIeUUtsy6ZGgXG1gy9myH0lii6psrMbhljW2xzWYiPLo7shjq 5l+KbQ9RDO1/iNZbbhF5soCCkuVlEGKD+ENHjrUesQNUexpnBiFCQqg/FPCKn1nP7EuW 28jq4D40VvoLOaxP2UFQkyffELJynKDRVDeG5xHVNkYFXQxhV3drO6aNFb4kP8lyTKdq gUrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aTOjg3LRKrOjZRaH+MBDwrWQ5QHycpS6ns5xrDhIPQU=; b=xpMzIT3/Jvt9KrtRrgreoruVCZTWqituqZXNjKEE8ca/OJpnDXGJ1UiX24fmx4Lm47 fwtlTRDtlnf4JJXOMQC81Jh5GKjuEZdJU+Om1g+EKr0zPr907zHY1L3dapLp+X+n5TIS aNWXEu0a1fzH2yk3iQn5BGXE4AppzimkXj4TUvZm8y055zfHShpT0uVvUvsP3/PYVRWu TotUpYGjN2GYbkn4YQrHGAkoqS9oqxPZiO8/athDWSL69xndBXWHlKD/Zzo1WQFfVN+z BBAYOkfUgkzvvWdEWBMoEFpXXEnpWsqPgWvxhElDglStjQBO8ODad1x0g7u+SHkOMvKa zk6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=U1Hw8S8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si3385288edn.52.2020.05.16.16.54.23; Sat, 16 May 2020 16:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=U1Hw8S8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbgEPXxF (ORCPT + 99 others); Sat, 16 May 2020 19:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbgEPXxE (ORCPT ); Sat, 16 May 2020 19:53:04 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6198FC061A0C for ; Sat, 16 May 2020 16:53:04 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id e125so4104557lfd.1 for ; Sat, 16 May 2020 16:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aTOjg3LRKrOjZRaH+MBDwrWQ5QHycpS6ns5xrDhIPQU=; b=U1Hw8S8Ez1s26H+C7pGO1kjxeK+sPTVI/z5nX39rct4L2PiislzUljGXwNawxrIVc1 CAerMm7TVyp+RbCU7OUnur9kefVzVsdlo0TouI8ATDIG0vk+6K+t1N1cZ7IUoVlOUALN sUKapGdU8n+9LV7zek6BnrmwjdtQGTHfbcpdt33B14UNMGDo8pwPim+6coFHxhNmJ6UK azckhOkGBYnfTGNpVTASqLiqCf23MUkWeNI8Hn6WBFnH7p305/ZNH1wlkZuGejL8fEBi U7yFY9xUoIgP/ywCN1FIfVvYe/MICTHZh1sJKEjF4GC/QZvbBdeG9gGgnBpOp0dbuB+n RchA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aTOjg3LRKrOjZRaH+MBDwrWQ5QHycpS6ns5xrDhIPQU=; b=sqdnvEhXm+Au1Ink0VdgXoJKGRlJGZ+OdYYiAn7FaL4PPXw79fhNmBn2ranB/145LJ tQjjm0H/htkVIlWXAuH80E2TYPsKkRaNUjQrmrbLz9EHJa830VMNqL0K6qNpGMZ5seVi ATCGolqwu48XzEzOmg2lQB4Nar8FlKCeZR34NjkeY5Cc0jk0OguDRf8iEgK1lbcM+2/y JWxkKL2t/WV/fP9mIZbQpjCBiAdTYDiWfqids40kMXtLBhPb1dKYT8IzJCIyIIf48yj6 RZa09sSWqANDcoM3uY3xG5b56NtD/I9Fn9p81ny0uwdKeJP2qPRDTzVBLZ22AZJwOUrP pBsQ== X-Gm-Message-State: AOAM5321uEiOwu7deZYAEPYlMCy/6SqzNmkna/uQbk1TnfasgshbU6WN jaFyOFe+3qivPbRme9XtygAszkV+L9w/kgVGxarJmg== X-Received: by 2002:a19:d52:: with SMTP id 79mr5914680lfn.125.1589673182415; Sat, 16 May 2020 16:53:02 -0700 (PDT) MIME-Version: 1.0 References: <20200516021736.226222-1-shakeelb@google.com> <20200516.134018.1760282800329273820.davem@davemloft.net> In-Reply-To: From: Shakeel Butt Date: Sat, 16 May 2020 16:52:51 -0700 Message-ID: Subject: Re: [PATCH] net/packet: simply allocations in alloc_one_pg_vec_page To: Eric Dumazet Cc: David Miller , Willem de Bruijn , Jakub Kicinski , netdev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 16, 2020 at 3:45 PM Eric Dumazet wrote: > > On Sat, May 16, 2020 at 3:35 PM Shakeel Butt wrote: > > > > On Sat, May 16, 2020 at 1:40 PM David Miller wrote: > > > > > > From: Shakeel Butt > > > Date: Fri, 15 May 2020 19:17:36 -0700 > > > > > > > and thus there is no need to have any fallback after vzalloc. > > > > > > This statement is false. > > > > > > The virtual mapping allocation or the page table allocations can fail. > > > > > > A fallback is therefore indeed necessary. > > > > I am assuming that you at least agree that vzalloc should only be > > called for non-zero order allocations. So, my argument is if non-zero > > order vzalloc has failed (allocations internal to vzalloc, including > > virtual mapping allocation and page table allocations, are order 0 and > > use GFP_KERNEL i.e. triggering reclaim and oom-killer) then the next > > non-zero order page allocation has very low chance of succeeding. > > > 32bit kernels might have exhausted their vmalloc space, yet they can > still allocate order-0 pages. Oh ok it makes sense.