mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Baietto <jason.baietto@ccur.com>
To: linux-kernel@vger.kernel.org
Cc: nickpiggin@yahoo.com, mingo@elte.hu
Subject: nonlinear timeslice gap?
Date: Mon, 18 Apr 2005 11:17:12 -0400	[thread overview]
Message-ID: <1113837431.26528.39.camel@sprout> (raw)

ChangeSet 1.1832.6.22 (2004/08/24 11:10:51 mingo@elte.hu) introduced the
following time slice mapping for nice values:

   [ -20 ... 0 ... 19 ] => [800ms ... 100ms ... 5ms]

This met the goal of a 1:160 ratio for nice-20/nice+19, however it
introduced a 320ms gap between 0 and -1.  Was this gap intentional or
accidental, and is it really acceptable?

Here's the full mapping (verified by sched_rr_get_interval):

-20 => 800ms
-19 => 780ms
-18 => 760ms
-17 => 740ms
-16 => 720ms
-15 => 700ms
-14 => 680ms
-13 => 660ms
-12 => 640ms
-11 => 620ms
-10 => 600ms
 -9 => 580ms
 -8 => 560ms
 -7 => 540ms
 -6 => 520ms
 -5 => 500ms
 -4 => 480ms
 -3 => 460ms
 -2 => 440ms
 -1 => 420ms *** gap ***
  0 => 100ms
  1 => 95ms
  2 => 90ms
  3 => 85ms
  4 => 80ms
  5 => 75ms
  6 => 70ms
  7 => 65ms
  8 => 60ms
  9 => 55ms
 10 => 50ms
 11 => 45ms
 12 => 40ms
 13 => 35ms
 14 => 30ms
 15 => 25ms
 16 => 20ms
 17 => 15ms
 18 => 10ms
 19 => 5ms

Take care,
Jason
--
jason.baietto@ccur.com
http://www.ccur.com/oss


                 reply	other threads:[~2005-04-18 15:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1113837431.26528.39.camel@sprout \
    --to=jason.baietto@ccur.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nickpiggin@yahoo.com \
    /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

all inboxes | Powered by JetHome®