git: 43521b46fc78 - main - Correcting comment about "sched_interact_score".

Warner Losh imp at FreeBSD.org
Thu Jun 3 03:51:04 UTC 2021


The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=43521b46fc788096648dfa89650dfe394dc0d455

commit 43521b46fc788096648dfa89650dfe394dc0d455
Author:     wiklam <wiktorpilar99 at gmail.com>
AuthorDate: 2020-05-19 01:55:08 +0000
Commit:     Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-06-03 03:50:57 +0000

    Correcting comment about "sched_interact_score".
    
    Reviewed by:    jrtc@, imp@
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/431
    
    Sponsored by:           Netflix
---
 sys/kern/sched_ule.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 49bf3328f3d9..094a3fffef8c 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1516,7 +1516,7 @@ sched_initticks(void *dummy)
  * When a thread's sleep time is greater than its run time the
  * calculation is:
  *
- *                           scaling factor 
+ *                           scaling factor
  * interactivity score =  ---------------------
  *                        sleep time / run time
  *
@@ -1524,9 +1524,9 @@ sched_initticks(void *dummy)
  * When a thread's run time is greater than its sleep time the
  * calculation is:
  *
- *                           scaling factor 
- * interactivity score =  ---------------------    + scaling factor
- *                        run time / sleep time
+ *                                                 scaling factor
+ * interactivity score = 2 * scaling factor  -  ---------------------
+ *                                              run time / sleep time
  */
 static int
 sched_interact_score(struct thread *td)


More information about the dev-commits-src-all mailing list