linux-mips
[Top] [All Lists]

PSCHED_JSCALE

To: <linux-mips@linux-mips.org>
Subject: PSCHED_JSCALE
From: "Hdei Nunoe" <nunoe@co-nss.co.jp>
Date: Tue, 22 Mar 2005 09:47:31 +0900
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi there,

Has anyone known about the background information about
the following change?
 The PSCHED_JSCALE in the net/sched/sch_api.c is defined in the
 include/net/pkt_sched.h.  If I set HZ to 1000 - PSCHED_JSCALE
 is 0 - what would happen?

 #if HZ == 100
 #define PSCHED_JSCALE 13
 #elif HZ == 1024
 #define PSCHED_JSCALE 10
 #else
 #define PSCHED_JSCALE 0
 #endif
 
 The code is updated in 2.4.27 as follows.
 The PSCHED_JSCALE becomes 10 in this case.
 What problems would it fix?  Or what behaivior would change?

 #if HZ < 96
 #define PSCHED_JSCALE 14
 #elif HZ >= 96 && HZ < 192
 #define PSCHED_JSCALE 13
 #elif HZ >= 192 && HZ < 384
 #define PSCHED_JSCALE 12
 #elif HZ >= 384 && HZ < 768
 #define PSCHED_JSCALE 11
 #elif HZ >= 768
 #define PSCHED_JSCALE 10
 #endif


---
Hdei Nunoe


<Prev in Thread] Current Thread [Next in Thread>
  • PSCHED_JSCALE, Hdei Nunoe <=