From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D055FC43334 for ; Sun, 10 Jul 2022 07:32:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbiGJHcS (ORCPT ); Sun, 10 Jul 2022 03:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiGJHcR (ORCPT ); Sun, 10 Jul 2022 03:32:17 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987D1192B5 for ; Sun, 10 Jul 2022 00:32:16 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id y4-20020a25b9c4000000b0066e573fb0fcso1819227ybj.21 for ; Sun, 10 Jul 2022 00:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=t63gxYnqY/rj0/phOitCSls/u6CQ33pwzplOgpHsAMw=; b=cTG7s5oMvKi7QSlGJ2IX8pYkdKBeptl+8VdN7wNuA3+aH37jAtdCIPOF48MzVQviLx lBpu7xwlCKFit1y/WqWGsCvR9Iq3kz5GH5ZU8OQp/zzqJp8j7oEA9HuThJXpeDzhA30z sBZ06gix0dShKw/MmJCd9ViXt5YdX6FwstXF0a9j3/B0LBa/J6ZNlvo3061PQkAhM29Q ghRpgj6ASJsG2mFwwkr2EPVjOs1hP+eedV1hSI33dNE0TscWNp/5lkibmchC9LZt+D7S p+M7qePv1h7A1vdjg4G8FZJLCzRKNdbN+p7Wv0TDnzrbr5zvWIyS9/eBhSDHtyoWpefC ghvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=t63gxYnqY/rj0/phOitCSls/u6CQ33pwzplOgpHsAMw=; b=nfPT1UXrZXhoyTRzkXqPZWxcNRJYRHaQbSbADjibIEIV1rel5QzBFUjRm9soFMcPnS vcCih1Ryvogddsqk5T93DQrqR3Mkx3YliERmYPMv5ZMsDYIdidqAs5HCbKMGJc6YNC3k U3q2VvjVzj4RYJspphUtosiGclRFzZOopqYXKbvOLeOXi6WdhPD6YTrvlcnqZ+WbQajA ufnkXgq0ALkX6oAvIvKUpKjmxXyyVCzLbdZprnh3uM3z3zUBpuadzrnCNrZnPLMl+y6J nZih7uJ65mYRxzncbVX5t83BF+oBiLwhzsoOWnFy1vVz5yWMNTneLnDRb9HvgZLUAI8m uO3g== X-Gm-Message-State: AJIora+Q7YZN6iEMxCDouiTq5BfFeFv2UMRkUtTnr0BTSlsBqOdOZXPc j22sNwwXrkj3MLXAwtH3jNruBeysXeTybw== X-Google-Smtp-Source: AGRyM1ueExjOAIzVciXYEJOOM29pcwMojuHNMU+0gy8kDJxdOmyE4lDkeXYQrZDpOfOH7E1BKHqmu7ycpy2t0A== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:28b]) (user=shakeelb job=sendgmr) by 2002:a25:3bd3:0:b0:66e:2e5c:5415 with SMTP id i202-20020a253bd3000000b0066e2e5c5415mr11899313yba.76.1657438335879; Sun, 10 Jul 2022 00:32:15 -0700 (PDT) Date: Sun, 10 Jul 2022 07:32:13 +0000 In-Reply-To: Message-Id: <20220710073213.bkkdweiqrlnr35sv@google.com> Mime-Version: 1.0 References: <20220623003230.37497-1-alexei.starovoitov@gmail.com> <20220706175034.y4hw5gfbswxya36z@MacBook-Pro-3.local> <20220706180525.ozkxnbifgd4vzxym@MacBook-Pro-3.local.dhcp.thefacebook.com> <20220708174858.6gl2ag3asmoimpoe@macbook-pro-3.dhcp.thefacebook.com> <20220708215536.pqclxdqvtrfll2y4@google.com> Subject: Re: [PATCH bpf-next 0/5] bpf: BPF specific memory allocator. From: Shakeel Butt To: Alexei Starovoitov Cc: Michal Hocko , Matthew Wilcox , Christoph Hellwig , "David S. Miller" , Daniel Borkmann , Andrii Nakryiko , Tejun Heo , Martin KaFai Lau , bpf , Kernel Team , linux-mm , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Sat, Jul 09, 2022 at 10:26:23PM -0700, Alexei Starovoitov wrote: > On Fri, Jul 8, 2022 at 2:55 PM Shakeel Butt wrote: [...] > > > > Most probably Michal's comment was on free objects sitting in the caches > > (also pointed out by Yosry). Should we drain them on memory pressure / > > OOM or should we ignore them as the amount of memory is not significant? > > Are you suggesting to design a shrinker for 0.01% of the memory > consumed by bpf? No, just claim that the memory sitting on such caches is insignificant.