From owner-freebsd-arch Tue Jul 31 17:41:21 2001 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id C951137B403 for ; Tue, 31 Jul 2001 17:41:18 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id UAA18580; Tue, 31 Jul 2001 20:40:34 -0400 (EDT) Date: Tue, 31 Jul 2001 20:40:34 -0400 (EDT) From: Daniel Eischen To: Julian Elischer Cc: arch@FreeBSD.ORG Subject: Re: thread scheduling question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 31 Jul 2001, Julian Elischer wrote: > hmmm, ok.. so, as a redux: > > KSE's in the original KSEG are affected (the original KSEG is > affected. New KSEGs created after this, are affected (by default) > exisiting other KSEGs are not affected.. Hmm, after reading more carefully, I don't think that _subsequent_ KSEGs created for _system_ scope threads should inherit the same scheduling parameters. Read this part a little more carefully: > > The underlying kernel scheduled entities for the process > > contention scope threads will have their scheduling parame- > > ters changed to the value specified in param. Kernel > > scheduled entities for use by process contention scope ^^^^^^^^^^^^^^^^^^^^^^^^^ > > threads that are created after this call completes inherit > > their scheduling policy and associated scheduling parameters > > from the process. It doesn't say that KSEs (yes, nice terminology ;-)) created for _system_ scope threads inherit the scheduling policy/parameters. Since we (currently) don't create more than one KSEG for process scope threads, this degenerates into just affecting the original KSEG. I suppose that if the threads library ever wanted to create more than 1 KSEG for process scope threads, we could just pass a flags word with KSEG_SCHED_INHERIT set on kseg_create(). -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message