From: klamm@yandex-team.ru
To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org
Cc: stfomichev@yandex-team.ru, Roman Gushchin <klamm@yandex-team.ru>
Subject: [PATCH 15/19] smart: decrease default rt_period/rt_runtime values
Date: Thu, 4 Sep 2014 20:31:01 +0400 [thread overview]
Message-ID: <1409848265-17150-15-git-send-email-klamm@yandex-team.ru> (raw)
In-Reply-To: <1409848265-17150-1-git-send-email-klamm@yandex-team.ru>
From: Roman Gushchin <klamm@yandex-team.ru>
By default, rt_period is 1s and rt_runtime is 0.95s. These values
are to high to achieve acceptable system responsibility under high
rt load. Decrease it to 100ms and 99ms respectively.
Signed-off-by: Roman Gushchin <klamm@yandex-team.ru>
---
kernel/sched/core.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 0f25fe0..a1b116e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -282,19 +282,26 @@ const_debug unsigned int sysctl_sched_nr_migrate = 32;
*/
const_debug unsigned int sysctl_sched_time_avg = MSEC_PER_SEC;
+#ifdef CONFIG_SMART
+#define DEFAULT_SCHED_RT_PERIOD 100000
+#define DEFAULT_SCHED_RT_RUNTIME 99000
+
+#else
+#define DEFAULT_SCHED_RT_PERIOD 1000000
+#define DEFAULT_SCHED_RT_RUNTIME 950000
+#endif
+
/*
* period over which we measure -rt task cpu usage in us.
- * default: 1s
*/
-unsigned int sysctl_sched_rt_period = 1000000;
+unsigned int sysctl_sched_rt_period = DEFAULT_SCHED_RT_PERIOD;
__read_mostly int scheduler_running;
/*
* part of the period that we allow rt tasks to run in us.
- * default: 0.95s
*/
-int sysctl_sched_rt_runtime = 950000;
+int sysctl_sched_rt_runtime = DEFAULT_SCHED_RT_RUNTIME;
--
1.9.3
next prev parent reply other threads:[~2014-09-04 16:32 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-04 12:20 [RFC] smt-aware rt load balancer Roman Gushchin
2014-09-04 15:40 ` Peter Zijlstra
2014-09-04 16:30 ` [PATCH 01/19] smart: define and build per-core data structures klamm
2014-09-04 16:30 ` [PATCH 02/19] smart: add config option for SMART-related code klamm
2014-09-04 16:30 ` [PATCH 03/19] smart: introduce smart_enabled() klamm
2014-09-04 16:30 ` [PATCH 04/19] smart: helper functions for smart_data manipulations klamm
2014-09-04 16:30 ` [PATCH 05/19] smart: CPU selection logic klamm
2014-09-04 16:30 ` [PATCH 06/19] smart: use CPU selection logic if smart is enabled klamm
2014-09-21 17:31 ` Pavel Machek
2014-09-04 16:30 ` [PATCH 07/19] smart: balance load between nodes klamm
2014-09-04 16:30 ` [PATCH 08/19] smart: smart pull klamm
2014-09-04 16:30 ` [PATCH 09/19] smart: throttle CFS tasks by affinning to first SMT thread klamm
2014-09-04 16:30 ` [PATCH 10/19] smart: smart gathering klamm
2014-09-04 16:30 ` [PATCH 11/19] smart: smart debug klamm
2014-09-04 16:30 ` [PATCH 12/19] smart: cgroup interface for smart klamm
2014-09-04 16:30 ` [PATCH 13/19] smart: nosmart boot option klamm
2014-09-04 16:31 ` [PATCH 14/19] smart: smart-related sysctl's klamm
2014-09-04 16:31 ` klamm [this message]
2014-09-04 16:31 ` [PATCH 16/19] smart: change default RR timeslice to 5ms klamm
2014-09-04 16:31 ` [PATCH 17/19] smart: disable RT runtime sharing klamm
2014-09-04 16:31 ` [PATCH 18/19] hrtimers: calculate expires_next after all timers are executed klamm
2014-09-04 16:31 ` [PATCH 19/19] smart: add description to the README file klamm
2014-09-04 16:49 ` [RFC] smt-aware rt load balancer Peter Zijlstra
2014-09-04 17:06 ` Roman Gushchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409848265-17150-15-git-send-email-klamm@yandex-team.ru \
--to=klamm@yandex-team.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=stfomichev@yandex-team.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).