From owner-freebsd-smp Thu Sep 12 5:21:37 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 DE57137B400 for ; Thu, 12 Sep 2002 05:21:34 -0700 (PDT) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8614843E3B for ; Thu, 12 Sep 2002 05:21:34 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0003.cvx40-bradley.dialup.earthlink.net ([216.244.42.3] helo=mindspring.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17pSyQ-0001Ud-00; Thu, 12 Sep 2002 05:21:30 -0700 Message-ID: <3D80868C.C8867398@mindspring.com> Date: Thu, 12 Sep 2002 05:20:28 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Luigi Rizzo Cc: Bruce Evans , smp@FreeBSD.ORG Subject: Re: wakeup handling on SMP boxes References: <20020911172143.H93521@iguana.icir.org> <20020912204245.I5891-100000@gamplex.bde.org> <20020912043148.B98062@iguana.icir.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Luigi Rizzo 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). Because iterative operations are bound by latency. Consider your own work in the network stack to increase throughput. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message