Skip to contentSkip to conversation

CFS: comment update: default latency and granularity

PATCH In review Takuya Yoshikawa 1 participant 2 messages Oct 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CFS: comment update: default latency and granularity

Hi, Ingo

Please update the comments about default values of CFS parameters.

Thanks,
Takuya

===
Targeted preemption latency and minimal preemption granularity for CPU-bound tasks have already changed.

This patch updates the comments about these values.

---
 kernel/sched_fair.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/sched_fair.c +2 -2
index db3f674..4183f41 100644
@@ -25,7 +25,7 @@
 
 /*
  * Targeted preemption latency for CPU-bound tasks:
- * (default: 5ms * (1 + ilog(ncpus)), units: nanoseconds)
+ * (default: 6ms * (1 + ilog(ncpus)), units: nanoseconds)
  *
  * NOTE: this latency value is not the same as the concept of
  * 'timeslice length' - timeslices in CFS are of variable length
@@ -52,7 +52,7 @@ enum sched_tunable_scaling sysctl_sched_tunable_scaling
 
 /*
  * Minimal preemption granularity for CPU-bound tasks:
- * (default: 2 msec * (1 + ilog(ncpus)), units: nanoseconds)
+ * (default: 0.75 msec * (1 + ilog(ncpus)), units: nanoseconds)
  */
 unsigned int sysctl_sched_min_granularity = 750000ULL;
 unsigned int normalized_sysctl_sched_min_granularity = 750000ULL;
Signature · 1 line
1.7.0.4
#1 lore raw

[tip:sched/core] sched: Comment updates: fix default latency and granularity numbers

Commit-ID:  864616ee6785d9fac7a2cd80c01a2da89579f2e4
Gitweb:     http://git.kernel.org/tip/864616ee6785d9fac7a2cd80c01a2da89579f2e4
Author:     Takuya Yoshikawa <[email protected]>
AuthorDate: Thu, 14 Oct 2010 16:09:13 +0900
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 14 Oct 2010 09:13:35 +0200

sched: Comment updates: fix default latency and granularity numbers

Targeted preemption latency and minimal preemption granularity for CPU-bound tasks have been changed.

This patch updates the comments about these values.

Cc Peter Zijlstra <[email protected]>
Cc Mike Galbraith <[email protected]>

LKML-Reference: <[email protected]>

---
 kernel/sched_fair.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/sched_fair.c +2 -2
index 623e9ac..bf87192 100644
@@ -25,7 +25,7 @@
 
 /*
  * Targeted preemption latency for CPU-bound tasks:
- * (default: 5ms * (1 + ilog(ncpus)), units: nanoseconds)
+ * (default: 6ms * (1 + ilog(ncpus)), units: nanoseconds)
  *
  * NOTE: this latency value is not the same as the concept of
  * 'timeslice length' - timeslices in CFS are of variable length
@@ -52,7 +52,7 @@ enum sched_tunable_scaling sysctl_sched_tunable_scaling
 
 /*
  * Minimal preemption granularity for CPU-bound tasks:
- * (default: 2 msec * (1 + ilog(ncpus)), units: nanoseconds)
+ * (default: 0.75 msec * (1 + ilog(ncpus)), units: nanoseconds)
  */
 unsigned int sysctl_sched_min_granularity = 750000ULL;
 unsigned int normalized_sysctl_sched_min_granularity = 750000ULL;