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 605A7C433FE for ; Fri, 10 Dec 2021 18:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245152AbhLJSpi (ORCPT ); Fri, 10 Dec 2021 13:45:38 -0500 Received: from mail-lf1-f54.google.com ([209.85.167.54]:44928 "EHLO mail-lf1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242028AbhLJSph (ORCPT ); Fri, 10 Dec 2021 13:45:37 -0500 Received: by mail-lf1-f54.google.com with SMTP id z7so19599455lfi.11; Fri, 10 Dec 2021 10:42:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7/vZFfyyGbtD8bnHKJffHn0egoSdbRjyGjsJBHQqKr8=; b=4t3D4KnQtNe0e8m2yj+Ke9lWji8fQ6sEIbq1hsHiHw7dQDDrphsWCUVCZMGsZ0Z8E4 cBqkLGV6xNjeIauAgfB5ARa5EefabYKsPEuuRd5gidnQyV2x84/pfBF1jyyBXCafPJu0 ZhBXOtRcCUqdG33+GDuhOsoTLKx32+f+iSdD59hrfrx0CHPvSLc5mm9pzhMANUQCDKhF G09OGFFMMiLdjyMjuwAmJxBgo56GkSZ5k/GEZIUjgv8rzuqJziIghzHVri3/cyPXufqF 3tsKlcbAF6C9bKQAfpMx0iZfWL4+tv9/H13qG/AOZ5A9Fzwf93XBSgouNtpUp9/r4Ekc g1WA== X-Gm-Message-State: AOAM531ijSZAGikZvOdi+Nwcndj3Uwq3YGm+T/jPejA2xxPdWZtUepIV gpT8wiP9ZfRVfIHYDQyCt0vWeg/1qNwt9jmfdu4= X-Google-Smtp-Source: ABdhPJzSirnbrYv9rYoyj9m7S/o4CrKa5bGDf0xNi1iC5x1U8HaTeAfyjlyTD8zPTC5izteDBuj/fwXR4s7T4JgWNNo= X-Received: by 2002:a05:6512:3d09:: with SMTP id d9mr14452961lfv.481.1639161720961; Fri, 10 Dec 2021 10:42:00 -0800 (PST) MIME-Version: 1.0 References: <20211209200425.303561-1-jolsa@kernel.org> In-Reply-To: From: Namhyung Kim Date: Fri, 10 Dec 2021 10:41:49 -0800 Message-ID: Subject: Re: [RFC] perf record: Disable debuginfod by default To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Ian Rogers , linux-perf-users , "Frank Ch. Eigler" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 10, 2021 at 4:23 AM Jiri Olsa wrote: > > On Thu, Dec 09, 2021 at 03:39:20PM -0800, Namhyung Kim wrote: > > Hi Jiri, > > > > On Thu, Dec 9, 2021 at 12:04 PM Jiri Olsa wrote: > > > > > > hi, > > > after migrating to fedora 35 I found perf record hanging on exit > > > and it's because fedora 35 sets DEBUGINFOD_URLS that triggers > > > debuginfod query which might take long time to process. > > > > > > I discussed this briefly with Frank and I'm sending the change > > > to disable debuginfod by default in perf record. > > > > > > Frank had other idea we could discuss here to fork or just spawn > > > "/usr/bin/debuginfod-find ...." into background after perf record. > > > > > > Perhaps there are other ways as well, hence this is RFC ;-) > > > > I thought the debuginfod was for perf report, not record. > > Maybe I'm missing something but how about moving it to > > report? We can talk to debuginfod after checking the local > > build-id cache and binary on the system. > > at the end of the perf record we populate buildid cache > with profiled binaries for the current perf.data > > **IF** there's DEBUGINFOD_URLS defined, that code will > also ask debuginfod for binaries it could not find on > the system Yeah, I know what you're doing. But I guess debuginfod contains binaries for the distro and they'd be available for a while. Then I think we don't need to do it at perf record. Thanks, Namhyung