Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1600282ybk; Sat, 16 May 2020 17:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZiROBvoV5KlDD+9N72iPxYmC6C3H7Ysf5LRRGNYKQXksaBZM3UIrBgN8gFos4NbdktIli X-Received: by 2002:aa7:dd84:: with SMTP id g4mr8578661edv.257.1589673680568; Sat, 16 May 2020 17:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589673680; cv=none; d=google.com; s=arc-20160816; b=iBqrxG69SIjHFtOD0cgpEtKBxtWFKuAWEn50DNIKkj0S3bcryT+gZ4nHDZ0OAvL9p9 toFOOOHhCwN7A5ZoOalF3ab0SwpYH1DSczqUGnJF6kjAup94qNQXqMmXbabd5dagWVQV rPZQhzjo1IAQdP7SaQdxS8MfHrjMKcGiEGzzmh1qhEk5JjQ4xj2T2c2fP5Xl/L/RRUAe t8gel+oev3C2/IYFuxoFRctOCVhgdovi8ymNgBOzC99XSjEsRSIlqkK/oecIPlDUro2V 1N/YtAgFI92Ua5GdlS+MM2LZANGVs4COGD+ga/qlKkUmQuYzbJ0HgKXYh2qFjbTAx4rm Sftw== 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=nDEHZY/PsMR8qXioVOkwgQjNCpyRlOPlYpF92vL83Bo=; b=lWW/nRZn48DWZ+MJzedwGC/Uup0MyXl/xuhfNqrzBhqU0uGnHs6USbNZkuDLIaJ4FL yDkjkTx6hKjJ/W5tOWsSvOdiB+Yi8Yk1T+VXd/CRp7cbjuAl6jpFq60rs9lLGyjlI7ce Z0JKIRprsmEnBMd6u022jrrMFiUINgcBXdzbudgeyi58iHGRO64/2BYW2BVp60SYMUSl SjjvFkX7eyry6bkCMLg0h09K3BnFdoEfnbAx/+Xc9pId7jahvZvApJ5Znh+x19DbTH39 dVqlMySqJiY4CtOGY+4MXTkPP/I69RMqI5SHAebWjZKtV+4azwUe7hX9DVGanYBLJ1D9 A3CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P54OzxSp; 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 f30si3684716edj.524.2020.05.16.17.00.55; Sat, 16 May 2020 17:01:20 -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=P54OzxSp; 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 S1726880AbgEPX7f (ORCPT + 99 others); Sat, 16 May 2020 19:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbgEPX7f (ORCPT ); Sat, 16 May 2020 19:59:35 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09ACBC061A0C for ; Sat, 16 May 2020 16:59:35 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id h4so6027906ljg.12 for ; Sat, 16 May 2020 16:59:34 -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=nDEHZY/PsMR8qXioVOkwgQjNCpyRlOPlYpF92vL83Bo=; b=P54OzxSpbB00QNa1Vl9WFApqmqJ/4B0rUpbBMDMmPsI/C8A9uvrD4Ks0sH03/n/Ea8 TthdS9fKbtNSBKevVXQXJ0hQwN1Cr21r0DS9ympS50RYBG6qN73K0ac9Z2luaU+W0UJb Ib5zltG1UqMylh0kpknA01DYSc+lcNyz7Vo8L7ukwpSfgXHUT/ABT/xtEvzvHa6ZPO7f hVftgDHyQS+Qwumq/NzRXEypHe6LQAniqULJKgLzOb5VrJTE7ftIzqSwCXiVzZWL99Zg ckBhnhbDgCDabIapMZtrwe2jd11elo2NxMB1KnXMCzE2KXPlETdMkQs44AO7W4+LaHzv y5nQ== 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=nDEHZY/PsMR8qXioVOkwgQjNCpyRlOPlYpF92vL83Bo=; b=uB1RLB9IwQxCU7q4mpZkbM+mYPVUNaArQcbu1cNEm9hyPRXauYyAyeT0XTG1Ct0/lE jtjleLKiWmu9fT77BgRhBF0KGeytq0Ad00dxUuuJK0DTYOpn3LZ7kdEj1dae53u1ywWP FCcMcUY/kxDednF5dh8y5joLTfrTT2gyAvswwMo7dJjEzqYz9f+mFVoRZZLwBwN67mig wNCMZuUov9o2owNxyGE5RqjJMbaFprIrue95ptnwU7oLhdZpgp6CJK5X0lGTPxEngURN DJI0zBFRirjz1pgRlArgS/hn5toKeJeQ7TQUxq180qe194ZTVKN2t0KYXmit2RRaUhKQ fRGg== X-Gm-Message-State: AOAM531i4AATEDvd6OQU+qcb/Luuz4gdrZ/wrFAubky0XaSTTXBx76sa nhwIylbIzpBS3n3XArbs7WRBXEIgSftRpQlUY8DHSg== X-Received: by 2002:a2e:9d5:: with SMTP id 204mr5185058ljj.168.1589673572976; Sat, 16 May 2020 16:59:32 -0700 (PDT) MIME-Version: 1.0 References: <20200516021736.226222-1-shakeelb@google.com> <20200516.134018.1760282800329273820.davem@davemloft.net> <20200516.163927.1112911965183377217.davem@davemloft.net> In-Reply-To: <20200516.163927.1112911965183377217.davem@davemloft.net> From: Shakeel Butt Date: Sat, 16 May 2020 16:59:21 -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 4:39 PM David Miller wrote: > > From: Shakeel Butt > Date: Sat, 16 May 2020 15:35:46 -0700 > > > 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. > > Also not true. > > Page table allocation strategies and limits vary by architecture, they > may even need virtual mappings themselves. So they can fail in situations > where a non-zero GFP_KERNEL page allocator allocation would succeed. Thanks for the explanation. Do you think calling vzalloc only for non-zero order here has any value?