From nobody Wed Jul 07 20:56:55 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 373DC11F0F06 for ; Wed, 7 Jul 2021 20:57:07 +0000 (UTC) (envelope-from SRS0=EUh4=L7=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GKsDf6tV2z3JmD for ; Wed, 7 Jul 2021 20:57:06 +0000 (UTC) (envelope-from SRS0=EUh4=L7=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id B552D28411; Wed, 7 Jul 2021 22:56:57 +0200 (CEST) Received: from illbsd.quip.test (ip-94-113-69-69.net.upcbroadband.cz [94.113.69.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C5BE928417; Wed, 7 Jul 2021 22:56:56 +0200 (CEST) Subject: Re: Periodic rant about SCHED_ULE To: gljennjohn@gmail.com, George Mitchell Cc: FreeBSD Hackers References: <13445948-7804-20b4-4ae6-aaac14d11e87@m5p.com> <20210707181835.75601d54@ernst.home> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <054b4735-7740-617d-6c61-c5b48ef1d85a@quip.cz> Date: Wed, 7 Jul 2021 22:56:55 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 In-Reply-To: <20210707181835.75601d54@ernst.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GKsDf6tV2z3JmD X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[freebsd]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 07/07/2021 20:18, Gary Jennejohn wrote: > On Wed, 7 Jul 2021 13:47:47 -0400 > George Mitchell wrote: [..] >> I've been ranting about this for years now, and I've had my say -- but >> no one has ever answered my question about what workload SCHED_ULE is >> best for, though numerous people have claimed that it's better than >> SCHED_4BSD for -- some rumored workload or other. -- George >> > > IIRC there was talk about making the scheduler loadable in the early > days. But that was years ago and I may be misrembering. > > I have a Ryzen 5 1600 with 6 cores, so older tech and "only" 3200MHz. > > I can do a clean buildworld on FreeBSD-14 using only 10 of the 12 SMTs > in about 40 minutes using SCHED_4BSD. While still browsing the > interwebs or watching a film etc. with no noticeable lags in > performance. > > So, for my normal desktop usage SCHED_4BSD is the only way to go. I had some performance problems with VirtualBox as hypervisor on somewhat older Intel Xeon with 4 cores 8 threads. So I tested 4BSD and ULE - SCHED_4BSD had slightly better results than SCHED_ULE. I am also curious why ULE is the default. Where are some real world performance results for comparing the two FreeBSD schedulers. Kind regards Miroslav Lachman