From owner-freebsd-hackers@freebsd.org Wed Aug 5 00:04:30 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 056E79B37CD for ; Wed, 5 Aug 2015 00:04:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D89A61127 for ; Wed, 5 Aug 2015 00:04:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (75-48-78-19.lightspeed.cncrca.sbcglobal.net [75.48.78.19]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EE098B9A9; Tue, 4 Aug 2015 20:04:28 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Cc: Dieter BSD Subject: Re: Realtime process CPU starvation Date: Tue, 04 Aug 2015 12:55:47 -0700 Message-ID: <3169076.CIxh6P9lj2@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 04 Aug 2015 20:04:29 -0400 (EDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 00:04:30 -0000 On Saturday, June 20, 2015 11:20:38 AM Dieter BSD wrote: > For those who care, I'm running > kern.sched.name: ULE > > My (feeble) understanding is that the scheduler mostly looks at cpu > time, and processes doing i/o actually get a bump *up* in priority, > since because of the way hardware worked in the late 1970s-early 1980s > (PDP-11, VAX, ...) the i/o got useful work done while using very little > cpu time. As a result, jobs that do a lot of i/o can receive more > than their fair share of cpu time. And nice(1) (even rtprio and idprio) > may not have much effect on jobs that are i/o bound. Some form of > ionice is sorely needed. Realtime priorities in 8. and later are higher than the I/O bump. Only ithreads are higher than realtime in modern versions. -- John Baldwin