From owner-cvs-all@FreeBSD.ORG Wed Jun 15 22:07:51 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0597316A41F; Wed, 15 Jun 2005 22:07:51 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0F1143D49; Wed, 15 Jun 2005 22:07:50 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5FM7m5s020476; Wed, 15 Jun 2005 22:07:49 GMT (envelope-from davidxu@freebsd.org) Message-ID: <42B0A6AA.6050501@freebsd.org> Date: Thu, 16 Jun 2005 06:07:38 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.8) Gecko/20050605 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jiawei Ye References: <200506151521.j5FFLA0A003330@repoman.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Robert Watson , cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libthr libthr.3 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2005 22:07:51 -0000 Jiawei Ye wrote: >On 6/15/05, Robert Watson wrote: > > >>rwatson 2005-06-15 15:21:10 UTC >> >> FreeBSD src repository >> >> Modified files: >> lib/libthr libthr.3 >> Log: >> Remove incorrect BUGS entry: libthr does support process-scope thread >> scheduling. >> >> >> >We still have this sysctl in -current: kern.threads.thr_scope. >According to Dan, this is only available to libthr, but in your commit >you mentioned that libthr does not support process-scope scheduling, >then what does the sysctl control in reality? The -d option displays >"sys or proc scope scheduling". > >Jiawei > > > libthr does support process scope and system scope thread, it is controllable by user code, the pthread_attr_setscope() can tune the scope, however kernel has a sysctl can override user setting, if thr_scope is zero, the thread scheduling scope is set by user code, if it is 1, kernel will force all threads to be process scope, if it is 2, all threads will be system scope, ignore user setting, I use it only for debugging purpose. David Xu