atom feed10 messages in org.freebsd.freebsd-hackersa serious error in sched_ule.c?
FromSent OnAttachments
Bin RenMar 9, 2004 4:37 am 
Robert WatsonMar 9, 2004 8:42 am 
Wes PetersMar 9, 2004 12:01 pm 
Dag-Erling SmørgravMar 9, 2004 12:29 pm 
Wes PetersMar 14, 2004 9:16 pm 
Dag-Erling SmørgravMar 14, 2004 11:32 pm 
Colin PercivalMar 14, 2004 11:42 pm 
Wes PetersMar 14, 2004 11:56 pm 
Dag-Erling SmørgravMar 15, 2004 12:18 am 
Peter JeremyMar 15, 2004 9:42 pm 
Subject:a serious error in sched_ule.c?
From:Bin Ren (br2@cam.ac.uk)
Date:Mar 9, 2004 4:37:13 am
List:org.freebsd.freebsd-hackers

Hi, all:

I've been reading sched_ule.c and seem to find a serious error:

in 'sched_slice()':

* Rationale: * KSEs in interactive ksegs get the minimum slice so that we * quickly notice if it abuses its advantage.

Then, there is:

if (!SCHED_INTERACTIVE(kg)) { ..... ..... } else ke->ke_slice = SCHED_SLICE_INTERACTIVE;

Then, at the beginning of the file, there is:

#define SCHED_SLICE_INTERACTIVE (slice_max)

(slice_max) for interactive KSEs???? Either this is a serious mistake or I'm seriously missing sth here.

Thanks, Bin