lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALcN6mhDTtpphVx9=hYr7NkHqZpcQt3p_2ct=gKC98xWBhVbBQ@mail.gmail.com>
Date:   Fri, 13 Jan 2017 00:05:15 -0800
From:   David Carrillo-Cisneros <davidcc@...gle.com>
To:     "Liang, Kan" <kan.liang@...el.com>
Cc:     Mark Rutland <mark.rutland@....com>,
        Peter Zijlstra <peterz@...radead.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "x86@...nel.org" <x86@...nel.org>, Ingo Molnar <mingo@...hat.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Andi Kleen <ak@...ux.intel.com>, Borislav Petkov <bp@...e.de>,
        Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
        Dave Hansen <dave.hansen@...ux.intel.com>,
        Vikas Shivappa <vikas.shivappa@...ux.intel.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Vince Weaver <vince@...ter.net>, Paul Turner <pjt@...gle.com>,
        Stephane Eranian <eranian@...gle.com>
Subject: Re: [RFC 3/6] perf/core: use rb-tree to sched in event groups

On Thu, Jan 12, 2017 at 5:28 AM, Liang, Kan <kan.liang@...el.com> wrote:
>
>
>> On Wed, Jan 11, 2017 at 08:31:11PM +0000, Liang, Kan wrote:
>>
>> > > Kan, in your per-cpu event list patch you mentioned that you saw a
>> > > large overhead in perf_iterate_ctx() when skipping events for other
>> CPUs.
>> > > Which callers of perf_iterate_ctx() specifically was that
>> > > problematic for? Do those callers only care about the *active* events,
>> for example?
>> >
>> > Based on my test, the large overhead was observed in perf_iterate_sb.
>> > Yes, it only cares about the *active* events.
>>
>
> Oh Sorry, my bad. My brain must not be working yesterday...
> I just re-visited the code. The *inactive* also need to be checked.
>         if (event->state < PERF_EVENT_STATE_INACTIVE)
>                 continue;
> So the perf_iterate_sb iterates through all events (both STATE_ACTIVE
> and STATE_INACTIVE).
>
> I'm not sure if it is enough to only take care of *active* events.

The patch 6/6 in this series is the one that changes perf_iterate and
does iterate over active and
inactive events, so it only skips events in OFF and ERROR state.

> Peter may comments on it.
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ