Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1562532ybk; Sat, 16 May 2020 15:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG6Twa8k1qtAG0CTM1mF645lyhvbiYiATBu9+jr3ooGEb1wccaO5VQ1P2etLX2PRLGrvzx X-Received: by 2002:a50:9b58:: with SMTP id a24mr7622652edj.256.1589668713086; Sat, 16 May 2020 15:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589668713; cv=none; d=google.com; s=arc-20160816; b=ODhohaTUB6VSPhn/q1O7nBo/GXJWy+MbcVZ5+URA8C575+C3ZBu72cH3HHXIZ8YWVm gbxlO60qRKzemNOBrZq+XCurDjFFDd15J9TGTjIOKYOnJAhYZLryD44zxEBRQ9cEQS0x Zq0xx4IZWiCWgzB+vb1Kg/OAo1Pp3Q7ond7LhAU9vLpvrFuMG9qeSOi3chtNUlgX8oHw z2gJcEDQyyhBn+Z+ir3Fgr3g9Ps0AD9SgJRQnZkGG5Mb3GOtCRjh42sVHhmh2uuAWIGL MIbu5oS/YKbGF+HzPRwMQY7VuxG827FnJ+L+gdoLPgmUJZXH0pA9M61QTIFBoFj1UJhw xINQ== 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=ojEx/IuaCeSKl9dRzHTqbsmjCdnPX9Gd1n5eUMrsf6M=; b=G0KKJFUIqhZ68eRHxEvT6Zp/rMALWt1F+cdk+XJ+h1CrG96jRBVdtMTxU5YI/kZkK3 C25VCvil1w02tCRu9uzxZGQDY+olFSsOCJaG0/v767N2wqKYgSkDtFeB2MX4fSvJzog7 lqAMDFX3hBH+jcbEX5P0NMZBN3DI7ltoPvLmJmrqnpnARKvHkawc3SSwknMZTfjc/BTK wyldvWWIJMxZ5NQ+b+MtQqp+Y9fXJ/SM1EOWzGOPvzH/VfpaIfbbmMl4qikX6WFSkFJ1 z4y7/6JFBl6cvRVtPxp8lT9Au7YR1Ml4CJcZ/iRePsnZgbj6loNWul2bldM7ky9GvbV5 4ZXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JAjVbcAD; 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 oy14si1897412ejb.358.2020.05.16.15.37.58; Sat, 16 May 2020 15:38:33 -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=JAjVbcAD; 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 S1726731AbgEPWgA (ORCPT + 99 others); Sat, 16 May 2020 18:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726290AbgEPWgA (ORCPT ); Sat, 16 May 2020 18:36:00 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB95AC061A0C for ; Sat, 16 May 2020 15:35:59 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id h4so5940064ljg.12 for ; Sat, 16 May 2020 15:35:59 -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=ojEx/IuaCeSKl9dRzHTqbsmjCdnPX9Gd1n5eUMrsf6M=; b=JAjVbcADzxZkX/Q9hYkJyomMRdTOJf00a9W3t+vXoqLmEMBqDEC7mhW36NzNVaCP1b fOClknEqOrOMON9fxP6KqFVN6LaC0xmFLhaA/jkcXyZtggHuF3gQDyHCuOzZrkP5OHw/ Zf07d/YRPfmnlMdTYBcFLj1AreaT2nGSG90e942XyELtlrm57Wy1geeB+JYwT+LSi4AF ktCg9U466UEeAGkcu++Yo+YcrlViEBVBRSZkoa4pplU8dag4LG3Br2IeZjDVz7Y/3Pr+ RauQC0Sq1+9MypuJ0ayG38Gt0/+xjXawcGnpc1PYS2tklbxy1NWEQvCE92pCofiWJDgR SF/w== 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=ojEx/IuaCeSKl9dRzHTqbsmjCdnPX9Gd1n5eUMrsf6M=; b=shxC7E9OADV4exiyYGnJBda4GaSnMmsoUBEf9S18+Lu4/53XQ6rsoG8UTiQqDmJagM JcV1lqkf4HsBlyp3ihvQF8WudpU8RmJ0SSihrv64NnYJo34ZDdBFs118gDlfdVcQRpUd if3hKNFvkn3w8NHKFF6hiJgqpuj9LMxhoLH+2XjQWhs6q6II3z7vPTE7by+8ycUDQQUV RdHOflJXTuNGJdgF7cZsoTGgUzmxa6e6JEs4txmZbSUp+xA8poq0acrWU6jjEu0pmi5d 37Yj7Xi7cAG3pZmGK5lN9oW2eS1zGGNek5wbJjODhGzuKI3Z27jGUrUNfuKkLx03ikWY VT3A== X-Gm-Message-State: AOAM531rwvXHcJfzkm7cV0IJIFGwMK87MqS95ePWYcRyUNbFkl9HHx73 OyxBwcs42XV8o/WPObCCTcYv+OngrgnqMfKP5rU2TzM7 X-Received: by 2002:a2e:9795:: with SMTP id y21mr6097660lji.115.1589668557959; Sat, 16 May 2020 15:35:57 -0700 (PDT) MIME-Version: 1.0 References: <20200516021736.226222-1-shakeelb@google.com> <20200516.134018.1760282800329273820.davem@davemloft.net> In-Reply-To: <20200516.134018.1760282800329273820.davem@davemloft.net> From: Shakeel Butt Date: Sat, 16 May 2020 15:35:46 -0700 Message-ID: Subject: Re: [PATCH] net/packet: simply allocations in alloc_one_pg_vec_page To: David Miller Cc: Eric Dumazet , 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 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.