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] [day] [month] [year] [list]
Date:   Fri, 18 Nov 2016 08:45:05 +0530
From:   Viresh Kumar <viresh.kumar@...aro.org>
To:     Stratos Karafotis <stratosk@...aphore.gr>
Cc:     "Rafael J. Wysocki" <rjw@...ysocki.net>,
        "Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
        "linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC][PATCH] cpufreq: governor: Change the calculation of load
 for deferred updates

On 17-11-16, 21:54, Stratos Karafotis wrote:
> Commit 18b46abd0009 ("cpufreq: governor: Be friendly towards latency-
> sensitive bursty workloads"), introduced a method to copy the calculated
> load from the previous sampling period in case of a deferred timer
> (update).
> 
> This helps on bursty workloads but generally coping the load for the
> previous measurement could be arbitrary, because of the possibly different
> nature of the new workload.
> 
> Instead of coping the load from the previous period we can calculate the
> load considering that between the two samples, the busy time is comparable
> to one sampling period. Thus:
> 
>  busy = time_elapsed - idle_time
> 
> and
> 
>  load = 100 * busy / sampling_rate;
> 
> Also, remove the 'unlikely' hint because it seems that a deferred update
> is a very common case on most modern systems.

You have any numbers to prove that this improves something ?

-- 
viresh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ