Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp52185ybg; Mon, 27 Jul 2020 23:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXs3c+qe3tifZ0zIvSuOGL/aZhYEyvJ+rDvbP1AaYY2eIMcGWihB7VWK8htqWmi02pPdYd X-Received: by 2002:a50:8305:: with SMTP id 5mr13439186edh.174.1595916630613; Mon, 27 Jul 2020 23:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595916630; cv=none; d=google.com; s=arc-20160816; b=bnocV1K37Pt9uIErGnFiLtKwLcrjwFSZzieW687iIFwQQSeeoYKxK0B2Ujkkm+35S4 gjwg9RZ4Arqy5svPxfqg6q/6Z/0ZTuM/ndKlRBEOyJ5OeT3Bpx3YdpcIhAhrwBY5NuQ6 itT0R/fUywrGzMfGqgYQsKdsCaqo1vTe64c+my0lA/TQZtRSb2zS8ULE8SlUqyh4bUk/ JO0MfHCvjGLS3LxYJ0nOV/9RAHCRLzpfJ4LoZaIbmjSCwWUhHeS0dgWvhgynRwSkS+mz LGCMBdhiFC5WHqKpEDjbcxC/rsaftnBqk0rzLpYyoKKJRHIfgznV8tN7GAXrTmTInVMU /fqw== 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=yxCID3w4uSY/X2DD2GHKAyRoLJ0CfPIN7trHBjhDJLY=; b=zt74oXFR6vCPjx/sr/3OVRlND8bTqNfEPTaC8T840dZxj/nBS8NW31Jraedfo9mINI zuWKhAAGr3WfJf0Hq2gTOtHJ6xulPlzRGV/4OGwWVLdrru4HBgv/fjCC0iMRB2naaf2i 035hEAI59dl1eVDGdM+JX0c0cis9qZnwLfd5Af9lw5eXZ68SZcdSEK8mWjCg2cW0DfRf 5LMKNgDCpX1hT+nYrQI9oSOfl6XvOdKsjLW3agtXUgO2IdUebzEqG0KKkHhOoOARFONw Fgilc3jL9ptdcIkt+GwOVuJE4E6qNigv3DWWXN2jIb1Aetxo2xpFn+gd1b8PsmUaiR8S 77Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neTudZrD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si5920910ejx.438.2020.07.27.23.10.08; Mon, 27 Jul 2020 23:10:30 -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=@gmail.com header.s=20161025 header.b=neTudZrD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgG1GJz (ORCPT + 99 others); Tue, 28 Jul 2020 02:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726407AbgG1GJz (ORCPT ); Tue, 28 Jul 2020 02:09:55 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A728C061794; Mon, 27 Jul 2020 23:09:55 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id d27so14092291qtg.4; Mon, 27 Jul 2020 23:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yxCID3w4uSY/X2DD2GHKAyRoLJ0CfPIN7trHBjhDJLY=; b=neTudZrDwa0UCrpO5vA+9WvC/rc0aKwY6FWm4dE2mOq7JSQOyihPOzQBe/CxIcMqjr gZmIwlzE7vx5EYh3pc25vcszDXzp2R7KmCzYBt8hSmRvat4gseUsx0HMMUKPUKwEgJBr r44ypVcMWlqPkTUq2PSyUQnITsDB4k3Nz63FdEbswmVUipLwfKswlAap/I3mkW0ldVv7 Sf3zBRf+rS8cPqL456w4ys08mDZwaY/U5bxOPyop42epNugtz9k3UOTzJQ+txNLQQTWd +W5lqsy1P8LM2IVqi49i/7Zdqe4pponE1zzw5XMR8ECH/HmzbBgf1gjtjK6bJ1xZoHPj n/Ag== 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=yxCID3w4uSY/X2DD2GHKAyRoLJ0CfPIN7trHBjhDJLY=; b=UZk4A9ziMkpi2SBKK4P1L+GcWY7s2Y7EFKSSCM3t2vQF9BITrNNgS+du4nqRapCwSL cKC+B9oOrsliA3H2v+Te9fEdFUFFVrI8aU+Q/zZYpmnXhhfBNXP7hM1yHLZ631V1pOnD TKQXYMnChlD72D0xNozYX//S3QBBz5Pa3PTmXy01MO7lKQ0HoWcXnCxxK6ZCKU5Joj56 UyP0PlK1ESfQI2OGXbTMx3CTwz+De85Z+VkKVq4fjq4JTyryceBAoycHjIqjV0SDborv 6/2lt8KFgjwyjAkoZy3osAwuPkkA7+i0XkmGeRZa3d8vlKvOMUWaSdjPMfKkSFNUghrd DQnA== X-Gm-Message-State: AOAM532Ah3b1cqroYZdg2r6zA7wmF83QiINBLI7GiH/1XZQkL2exaxk/ 8exQwoyfnKRA7NGgTh6LoIxGJPNGa/GGinLyB7M= X-Received: by 2002:ac8:4511:: with SMTP id q17mr18384092qtn.117.1595916594441; Mon, 27 Jul 2020 23:09:54 -0700 (PDT) MIME-Version: 1.0 References: <20200727184506.2279656-1-guro@fb.com> <20200727184506.2279656-36-guro@fb.com> In-Reply-To: <20200727184506.2279656-36-guro@fb.com> From: Andrii Nakryiko Date: Mon, 27 Jul 2020 23:09:43 -0700 Message-ID: Subject: Re: [PATCH bpf-next v2 35/35] perf: don't touch RLIMIT_MEMLOCK To: Roman Gushchin , Arnaldo Carvalho de Melo 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:21 PM Roman Gushchin wrote: > > Since bpf stopped using memlock rlimit to limit the memory usage, > there is no more reason for perf to alter its own limit. > > Signed-off-by: Roman Gushchin > --- Cc'd Armaldo, but I'm guessing it's a similar situation that latest perf might be running on older kernel and should keep working. > tools/perf/builtin-trace.c | 10 ---------- > tools/perf/tests/builtin-test.c | 6 ------ > tools/perf/util/Build | 1 - > tools/perf/util/rlimit.c | 29 ----------------------------- > tools/perf/util/rlimit.h | 6 ------ > 5 files changed, 52 deletions(-) > delete mode 100644 tools/perf/util/rlimit.c > delete mode 100644 tools/perf/util/rlimit.h > [...]