Skip to content

Commit 030bdc3

Browse files
antonblanchardozbenh
authored andcommitted
powerpc/defconfigs: Set HZ=100 on pseries and ppc64 defconfigs
Now we have high res timers there is less of a reason for a high HZ value. Furthermore I think there a few reasons we should reduce HZ to 100: - Timer interrupt overhead. While this overhead is small, there are applications that are very sensitive to jitter (eg some HPC apps). - Issues with the timer wheel code. When coming out of NO_HZ idle we work our way through the timer code one tick at a time. If we have been idle a long time, this adds up - I sometimes see milliseconds of time spent in that loop. Long term we should fix the timer wheel algorithm, but for now if we reduce HZ then we reduce the amount of work the timer code has to do when coming out of idle. Signed-off-by: Anton Blanchard <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 55f2fa1 commit 030bdc3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

arch/powerpc/configs/ppc64_defconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ CONFIG_TICK_ONESHOT=y
304304
CONFIG_NO_HZ=y
305305
CONFIG_HIGH_RES_TIMERS=y
306306
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
307-
# CONFIG_HZ_100 is not set
308-
CONFIG_HZ_250=y
307+
CONFIG_HZ_100=y
308+
# CONFIG_HZ_250 is not set
309309
# CONFIG_HZ_300 is not set
310310
# CONFIG_HZ_1000 is not set
311-
CONFIG_HZ=250
311+
CONFIG_HZ=100
312312
CONFIG_SCHED_HRTICK=y
313313
CONFIG_PREEMPT_NONE=y
314314
# CONFIG_PREEMPT_VOLUNTARY is not set

arch/powerpc/configs/pseries_defconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,11 @@ CONFIG_TICK_ONESHOT=y
230230
CONFIG_NO_HZ=y
231231
CONFIG_HIGH_RES_TIMERS=y
232232
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
233-
# CONFIG_HZ_100 is not set
234-
CONFIG_HZ_250=y
233+
CONFIG_HZ_100=y
234+
# CONFIG_HZ_250 is not set
235235
# CONFIG_HZ_300 is not set
236236
# CONFIG_HZ_1000 is not set
237-
CONFIG_HZ=250
237+
CONFIG_HZ=100
238238
CONFIG_SCHED_HRTICK=y
239239
CONFIG_PREEMPT_NONE=y
240240
# CONFIG_PREEMPT_VOLUNTARY is not set

0 commit comments

Comments
 (0)