Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp41218ybg; Mon, 27 Jul 2020 22:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsB8rXb6QUCGFEOQaET5LhrZzDH+x16LqjOlSKcxHr4MzyUNCK1E8UwB8+nWVg6k+U4DCB X-Received: by 2002:aa7:c655:: with SMTP id z21mr24649542edr.330.1595915286581; Mon, 27 Jul 2020 22:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595915286; cv=none; d=google.com; s=arc-20160816; b=FeiGQFILXjmOuyy17Rl6a2Yjzxe56UZL/yzYE6WxGFyaSZlxQJ0eFW8bo9PuTERiBm Fi5hrlzKaNEh8HLTVovlL+Jc0HljcAvU7/xsRFbVlp603DY2PUwFTPa338Gk8FsX24Pb 4570bJ3Pvj+spDXTcVHYE4+fvC3Y/nA/nNM1PJIio258gIUQY2xlf298qXbbAljHnQHV rNDDr5M9/FjyKTrK8JaODyBLYPQDxAbh3xCGWgIEtgR06kU5PrdIaqwxmMbsAFyjJQYd j5wCBaQNWLP5TzDlkOZLWDLZ+sEHAwkz5bqU8FOB+Fw412JvwZAajvCHB7LevnNSJqge h4xw== 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=AdJw8NvkEEDFQp7ZQjS3NLGvVLl+p/7oo80FrXBcn4s=; b=Sf+BRXWm2Dsh5IwCR9XnYpkOhf8ugny8qHF8SRL/8m5inUDuWVc58KKhoJwBYkrg2W 90Awl6st3KN4BtQNwjEtziA8kcJkDX2zANLr3wSy4vf6HBgq9U35FX26cPTdmy8syCCC y6Xy8wn6RBbapGsE6RdMkSrW6WNgOJG7Ai5JAvucQu12V6KNC/dRyiWaL95llRuzQjN/ +9G4Ca4HO7Z7jmr8pw6vfjguE64s1zV3ZoB5YkYEOX8OBRjX5Crb58V8LA/umvHia7Xc mOEnwvU6Vw+DZXuqDhz7Y+U1YMdBbEGIgPmLiQgv0M5KOj089rlV3cIxl+4PvGTA1aa6 Ki3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JPKCPuBH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si6928331edu.151.2020.07.27.22.47.44; Mon, 27 Jul 2020 22:48:06 -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=@kernel.org header.s=default header.b=JPKCPuBH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgG1FrR (ORCPT + 99 others); Tue, 28 Jul 2020 01:47:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgG1FrR (ORCPT ); Tue, 28 Jul 2020 01:47:17 -0400 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A144621D95; Tue, 28 Jul 2020 05:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595915237; bh=qaTaq8Zfiec/SysD6CW7W71Vn7qAmrNYsR1c7ErTEQE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JPKCPuBHT9PNSZDfSkpYSU1Lwcjb9YnYSPCQWLZXKaaadBPnd5gXtE0Y3ZocORvsC 6jHhHW/NxIDCbxyzaj9HQJUljlBEBp4o81YkqGH8FDd6zCq1hrJnyYe730aNHM0eRz dJQx5CfTmo0jaHF1uITDmG63afX4qQW+eY2fXx/c= Received: by mail-lj1-f177.google.com with SMTP id x9so19777224ljc.5; Mon, 27 Jul 2020 22:47:16 -0700 (PDT) X-Gm-Message-State: AOAM530HkDwj6Ww/kSjVx6Aslg5Ij0VR2o2+bJXzuGjPYw7cleh2b8ID GHrT3L8V27O8VlavlCAigQl9qqx5VyI8sE7yq6E= X-Received: by 2002:a2e:8707:: with SMTP id m7mr11093793lji.350.1595915234960; Mon, 27 Jul 2020 22:47:14 -0700 (PDT) MIME-Version: 1.0 References: <20200727184506.2279656-1-guro@fb.com> <20200727184506.2279656-28-guro@fb.com> In-Reply-To: <20200727184506.2279656-28-guro@fb.com> From: Song Liu Date: Mon, 27 Jul 2020 22:47:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf-next v2 27/35] bpf: eliminate rlimit-based memory accounting infra for bpf maps To: Roman Gushchin Cc: bpf , Networking , Alexei Starovoitov , Daniel Borkmann , Kernel Team , open list 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 Mon, Jul 27, 2020 at 12:26 PM Roman Gushchin wrote: > > Remove rlimit-based accounting infrastructure code, which is not used > anymore. > > Signed-off-by: Roman Gushchin [...] > > static void bpf_map_put_uref(struct bpf_map *map) > @@ -541,7 +484,7 @@ static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp) > "value_size:\t%u\n" > "max_entries:\t%u\n" > "map_flags:\t%#x\n" > - "memlock:\t%llu\n" > + "memlock:\t%llu\n" /* deprecated */ I am not sure whether we can deprecate this one.. How difficult is it to keep this statistics? Thanks, Song