From owner-freebsd-current Sat Dec 22 0: 6:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 468A937B405; Sat, 22 Dec 2001 00:06:42 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fBM86dq22709; Sat, 22 Dec 2001 00:06:39 -0800 (PST) (envelope-from rizzo) Date: Sat, 22 Dec 2001 00:06:39 -0800 From: Luigi Rizzo To: Bruce Evans Cc: John Baldwin , current@FreeBSD.org, Peter Wemm Subject: Re: vm_zeropage priority problems. Message-ID: <20011222000639.A22666@iguana.aciri.org> References: <20011221095058.A17968@iguana.aciri.org> <20011222183040.E7393-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011222183040.E7393-100000@gamplex.bde.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 22, 2001 at 06:48:26PM +1100, Bruce Evans wrote: > On Fri, 21 Dec 2001, Luigi Rizzo wrote: ... > > This would help removing the ugly property that priority-based > > have, which is that one process can starve the rest of the system. > > Only broken priority-based schedulers have that property. One of > my incomplete fixes uses weights: which makes it weight based, doesn't it :) > Most of the changes here are to fix style bugs. In the NEW_SCHED case, > the relative weights for each priority are determined by the niceweights[] > table. kg->kg_estcpu is limited only by INT_MAX and priorities are > assigned according to relative values of kg->kg_estcpu (code for this is > not shown). i guess the latter is the hard part... what kind of complexity does it have ? The nice feature of the scheduling code used in dummynet/Wf2Q+ is that it has O(log N) complexity where N is the number of active flows (processes in this case) and the basic scheduling operation is just one or two heap insert/delete, so it's really fast. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message