[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250302120530.1e742e06@pumpkin>
Date: Sun, 2 Mar 2025 12:05:30 +0000
From: David Laight <david.laight.linux@...il.com>
To: Attila Fazekas <afazekas@...hat.com>
Cc: qyousef@...alina.io, dietmar.eggemann@....com, frederic@...nel.org,
jstultz@...gle.com, juri.lelli@...hat.com, linux-kernel@...r.kernel.org,
mingo@...nel.org, peterz@...radead.org, rostedt@...dmis.org,
saravanak@...gle.com, tglx@...utronix.de, vincent.guittot@...aro.org
Subject: Re: [PATCH] Kconfig.hz: Change default HZ to 1000
On Fri, 28 Feb 2025 11:33:04 +0100
Attila Fazekas <afazekas@...hat.com> wrote:
> The 250Hz was set as a middle ground.
>
> There are still workloads which sensitive to cache misses
> and to the time spent in ticks.
>
> You still can loose ~1% performance with higher Hz,
> It might not sound much, but if you are running thousands
> of servers 1% loss can be a high cost.
>
> There are many workloads out there where 100Hz is the better choice.
Are there are real issues with changing HZ to 1000, but adding an option
for the timer tick interval (in ms).
So 'jiffies' would always count milliseconds.
That would make is easy to make the actual 'clock tick' be boot time
selectable (or run-time if you get brave!).
The 'timer wheel' code would really need to work on actual ticks,
but I doubt nothing else cares.
That would allow HZ be the same for all architectures, even though
m68k might really want a 50Hz interrupt.
That is much better than any plan to make HZ a variable - which will
bloat code (and with divisions) and not be valid for static initialisers.
David
Powered by blists - more mailing lists