From owner-freebsd-stable@freebsd.org Tue Apr 17 07:10:28 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31F40F869DE for ; Tue, 17 Apr 2018 07:10:28 +0000 (UTC) (envelope-from rumrunner@terraplane.org) Received: from nmsh7.e.nsc.no (nmsh7.e.nsc.no [148.123.160.201]) by mx1.freebsd.org (Postfix) with ESMTP id 923D16F77E for ; Tue, 17 Apr 2018 07:10:27 +0000 (UTC) (envelope-from rumrunner@terraplane.org) Received: from terraplane.org (ti0027a400-1628.bb.online.no [88.88.102.102]) by nmsh7.nsc.no (8.15.2/8.15.2) with ESMTPS id w3H6qlxI026474 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 17 Apr 2018 08:52:51 +0200 Received: from terraplane.org (localhost [127.0.0.1]) by terraplane.org (8.14.5/8.14.5) with ESMTP id w3H6uIrg095879; Tue, 17 Apr 2018 08:56:18 +0200 (CEST) (envelope-from rumrunner@terraplane.org) Received: (from rumrunner@localhost) by terraplane.org (8.14.5/8.13.8/Submit) id w3H6uIGw095878; Tue, 17 Apr 2018 08:56:18 +0200 (CEST) (envelope-from rumrunner) Date: Tue, 17 Apr 2018 08:56:18 +0200 From: Eivind Nicolay Evensen To: George Mitchell Cc: freebsd-stable@freebsd.org Subject: Re: kern.sched.quantum: Creepy, sadistic scheduler Message-ID: <20180417065617.GA95646@klump.hjerdalen.lokalnett> References: <9FDC510B-49D0-4722-B695-6CD38CA20D4A@gmail.com> <8cfdb8a3-86a0-17ba-1e41-ff1912a30ee9@m5p.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cfdb8a3-86a0-17ba-1e41-ff1912a30ee9@m5p.com> X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 07:10:28 -0000 On Wed, Apr 04, 2018 at 09:32:58AM -0400, George Mitchell wrote: > On 04/04/18 06:39, Alban Hertroys wrote: > > [...] > > That said, SCHED_ULE (the default scheduler for quite a while now) was designed with multi-CPU configurations in mind and there are claims that SCHED_4BSD works better for single-CPU configurations. You may give that a try, if you're not already on SCHED_4BSD. > > [...] > > A small, disgruntled community of FreeBSD users who have never seen > proof that SCHED_ULE is better than SCHED_4BSD in any environment > continue to regularly recompile with SCHED_4BSD. I dread the day when > that becomes impossible, but at least it isn't here yet. -- George Indeed 4bsd is better in my case aswell. While for some unknown to me reason ule performed a bit better in the 10.x series than before, in 11.x it again is in my case not usable. Mouse freezes for around half a second with even frequency by just moving it around in x11. Using 4bsd instead makes the problem go away. I'm actually very happy that ule became worse again because going back to 4bsd yet again also gave improved performance from other dreadfully slow but (to me) still useful programs, like darktable. With 4bsd, when adjusting shadows and highlights it is possible to see what I do when moving sliders. With ule it has never been better than waiting 10-20-30 seconds to see where it was able to read a slider position and update display, when working on images around 10500x10500 greyscale. It's not single cpu/single core either: CPU: AMD FX(tm)-6300 Six-Core Processor (3817.45-MHz K8-class CPU) -- Eivind