From owner-freebsd-smp Thu Sep 12 4:32: 9 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECA0537B400 for ; Thu, 12 Sep 2002 04:32:06 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3938743E65 for ; Thu, 12 Sep 2002 04:31:51 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: from iguana.icir.org (localhost [127.0.0.1]) by iguana.icir.org (8.12.3/8.11.3) with ESMTP id g8CBVmIb098486; Thu, 12 Sep 2002 04:31:48 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.12.3/8.12.3/Submit) id g8CBVmLt098485; Thu, 12 Sep 2002 04:31:48 -0700 (PDT) (envelope-from rizzo) Date: Thu, 12 Sep 2002 04:31:48 -0700 From: Luigi Rizzo To: Bruce Evans Cc: smp@FreeBSD.ORG Subject: Re: wakeup handling on SMP boxes Message-ID: <20020912043148.B98062@iguana.icir.org> References: <20020911172143.H93521@iguana.icir.org> <20020912204245.I5891-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020912204245.I5891-100000@gamplex.bde.org>; from bde@zeta.org.au on Thu, Sep 12, 2002 at 09:05:45PM +1000 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Sep 12, 2002 at 09:05:45PM +1000, Bruce Evans wrote: ... > > now, this is another debatable thing -- why do processes sleep at > > high priority at all given that they are not holding any locks while > > sleeping ? > > So that they get run soon after they wake up. The priority doesn't matter > while they are asleep, but the system needs to know what priority to use > when it wakes them. ok but why they need to run soon ? again, they are not holding any resource, so they could as well keep their priority and be scheduled according to it (which is something that will happen anyways when they do an usrret). cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message