From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 26 22:09:32 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 022F4FB7; Tue, 26 Feb 2013 22:09:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id D488F346; Tue, 26 Feb 2013 22:09:31 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3603DB976; Tue, 26 Feb 2013 17:09:31 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: why no per-thread scheduling niceness? Date: Tue, 26 Feb 2013 15:30:37 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <1361560374.1185.85.camel@revolution.hippie.lan> In-Reply-To: <1361560374.1185.85.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302261530.37936.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 26 Feb 2013 17:09:31 -0500 (EST) Cc: Ian Lepore X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 22:09:32 -0000 On Friday, February 22, 2013 2:12:54 pm Ian Lepore wrote: > I'm curious why the concept of scheduling niceness applies only to an > entire process, and it's not possible to have nice threads within a > process. Is there any fundamental reason why it couldn't be supported > with some extra bookkeeping to track niceness per thread? Only that the existing 'nice' command only works on processes and nice is traditionally a process concept. Also see things like renice. Individual threads can already alter their priority somewhat (e.g. to set an individual thread to an idle or real-time priority). -- John Baldwin