Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1379057pxu; Sat, 24 Oct 2020 08:51:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztD/ugB7E6+G/Ga8J5kz6zzekjvQFUe5CIUwMePdSRtiwZy2d5s6W2NGjA0nMDxeqCgGsd X-Received: by 2002:a17:907:7292:: with SMTP id dt18mr6855186ejc.265.1603554678920; Sat, 24 Oct 2020 08:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603554678; cv=none; d=google.com; s=arc-20160816; b=Qy4bnOyBgoconsLoK2kZgrZ3bZSurnsIeT1VAdtHGgtaKxA4MaCakbJx0QMnedaJWm eG7Sid5igxMUlMGzdyLymG17qpoMQutosbhUOAqozFbQFSz+koalkc+qiIjQHnKg2pQ6 bBHAQJDWPvxV8XUyJaHsHCtk4NfiaVv/8kXTn8QlJ8KwmlJXD7Y5qEFsRov3fcDanjtO gYP6ysZr59BjvALxL/zstazxal+WpCOB+gN9R08L91Nm7nII9DVhqzY3sKmuykIZJS8d XN2m4EW4g6o5xVgPqtikp/Y75PoCojr8z1tMdcLvY9DSfZRyuzShY5vFHMwTpJo7URIb aM3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mI5GbpgU1NnbT11QNPGPODS/+cPzVZHr6APt9Y3KhDg=; b=Vt/6tyNNfXfJDAOt++hB+YRe+tmxYN/JLCT3pWLBWdRXSMgtybn59WjnfYUjtgT0vk 3B0ak3TURGQPCX1zAuwC+hDc7qDnL2ANB1fHIe78kOdrud8jKuY5vqI/hF/0CEr2djLS 6syZ1f/2LB9yn7hbi44I+KeTYJd80qwibku9G1w5LidgHkPbD1VVl3pTBBpquQD5Xst8 RxZDfhiNpJqKpSwRWCBUsCZG7WPIwOKzMJHbanPO9o4DZvYG/bNU2ZRUXl3hgVKThyEQ AoDFrpL9BaCtbieugcWuqzViC6GvXM6PsNV5bAYpQMylUyo8FW/qrp1gAfsuEWkduC87 8BCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eCNsbyUj; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh7si3327690ejb.57.2020.10.24.08.50.56; Sat, 24 Oct 2020 08:51:18 -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=@redhat.com header.s=mimecast20190719 header.b=eCNsbyUj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760945AbgJXPod (ORCPT + 99 others); Sat, 24 Oct 2020 11:44:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:41078 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756857AbgJXPoc (ORCPT ); Sat, 24 Oct 2020 11:44:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603554271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mI5GbpgU1NnbT11QNPGPODS/+cPzVZHr6APt9Y3KhDg=; b=eCNsbyUjTIuTlGMOZQ997GycZJ66fukQbD6nUUjpd6311ziaS0Gh6WBMTBjbZGudK81hK7 vTvaUGL/tzsIbMkhjrAismkRj6CeihBwqgoexBCOgVjKzWtrr/obzgPbwAISrsMTaJAcu5 h7SmxjIia5rBGOnqkHymtGzQIggnavw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-386-tKtnOXtrNjSuwb_Lp1DUuQ-1; Sat, 24 Oct 2020 11:44:27 -0400 X-MC-Unique: tKtnOXtrNjSuwb_Lp1DUuQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E693C804B6A; Sat, 24 Oct 2020 15:44:25 +0000 (UTC) Received: from krava (unknown [10.40.192.80]) by smtp.corp.redhat.com (Postfix) with SMTP id 0DA4860CD0; Sat, 24 Oct 2020 15:44:23 +0000 (UTC) Date: Sat, 24 Oct 2020 17:44:23 +0200 From: Jiri Olsa To: Alexey Budankov Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Adrian Hunter , Andi Kleen , Peter Zijlstra , Ingo Molnar , linux-kernel Subject: Re: [PATCH v2 08/15] perf record: write trace data into mmap trace files Message-ID: <20201024154423.GG2589351@krava> References: <1ec29ed6-0047-d22f-630b-a7f5ccee96b4@linux.intel.com> <1202e665-6321-28d4-eca3-b21693364467@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1202e665-6321-28d4-eca3-b21693364467@linux.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 07:02:56PM +0300, Alexey Budankov wrote: SNIP > > record__synthesize(rec, true); > - /* this will be recalculated during process_buildids() */ > - rec->samples = 0; > > if (!err) { > if (!rec->timestamp_filename) { > @@ -2680,9 +2709,12 @@ int cmd_record(int argc, const char **argv) > > } > > - if (rec->opts.kcore) > + if (rec->opts.kcore || record__threads_enabled(rec)) > rec->data.is_dir = true; > > + if (record__threads_enabled(rec)) > + rec->opts.affinity = PERF_AFFINITY_CPU; so all the threads will pin to cpu and back before reading? it makes sense for one thread, but why not pin every thread at the start? jirka