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]
Message-ID: <adb4042b-4fd9-4a64-5904-b00c4ae8d473@linux.vnet.ibm.com>
Date:   Tue, 31 Jan 2023 21:20:53 +0530
From:   shrikanth hegde <sshegde@...ux.vnet.ibm.com>
To:     Arjan van de Ven <arjan@...ux.intel.com>, tglx@...utronix.de
Cc:     peterz@...radead.org, mingo@...nel.org,
        Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
        svaidy@...ux.ibm.com, linux-kernel@...r.kernel.org,
        bigeasy@...utronix.de
Subject: Re: [RFC PATCH] hrtimer: interleave timers for improved single thread
 performance at low utilization



On 1/31/23 8:25 PM, Arjan van de Ven wrote:
> 
>>   kernel/time/hrtimer.c | 11 +++++++++++
>>   1 file changed, 11 insertions(+)
>>
>> diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
>> index 3ae661ab6260..d160f49f0cce 100644
>> --- a/kernel/time/hrtimer.c
>> +++ b/kernel/time/hrtimer.c
>> @@ -1055,6 +1055,17 @@ u64 hrtimer_forward(struct hrtimer *timer,
>> ktime_t now, ktime_t interval)
>>
>>           orun = ktime_divns(delta, incr);
>>           hrtimer_add_expires_ns(timer, incr * orun);
>> +        /*
>> +         * Avoid timer round-off, so that all cfs bandwidth timers
>> +         * don't start at the same time
> 
> so while I applaud the final objective, I am sort of wondering if
> hrtimer.c is the right place in the kernel to fix a CFS/cgroup issue...
> wouldn't it be better to solve such issues at the place we want this to
> happen, rather than for all timers in the whole system?
> 
Agree. It was an initial approach to the problem. This can be fixed in scheduler 
code itself as suggested by Ingo. Will send out that patch soon. 
> (also while for performance it might be better to spread out a bit, for
> power consumption it's obviously the other way around)
> 
This would be performance vs power comparison. Would get both the 
numbers next time for fairer comparison. 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ