lkml.org 
[lkml]   [2020]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 08/15] perf record: write trace data into mmap trace files
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

\
 
 \ /
  Last update: 2020-10-24 17:45    [W:0.365 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site